| Author |
Message |
tofu
Joined: 01 Jul 2006
Posts: 27
Location: Ghent, Belgium
|
| Posted: Wed Jan 02, 2008 1:38 pm Post subject: Less CPU usage |
|
|
A small thought:
On my Linode I have a couple of cronjobs. They have cleaning, statcounting, maintenance and back-up functions.
Now, sometimes my % CPU usage rises from 1 to 10% when a cron get executed. Especially when AWStats has to go through a lot of logs. And I even run AWStats every hour for each website, and each website has his own AWStats-hour. And I have small website..
Now I have set the cronjobs to minutes with oneven, not rounded, not logical minutes. Like .33, .17, .56, ..
Because I know a lot of other users on the same server wil have cron jobs set at .30, .00, .15, ..
So I think the CPU usage is always higher at the main hour xxh 00.
But if there was a page, where we could see the CPU % usage of the whole server, not only hour own linode, then we could chose an hour when the CPU usage is low. Also for daily crons, like a backup. I backup at 3pm, West European time, but I'm willing to change that if there is an another hour when the server is more idl.
With CPU graphs (or a script that gives us a minute or hour when the server had a low % in the last 7 days) the server peaks could be reduced a little bit, resulting in a more constant CPU usage.
What do you think? |
|
| Back to top |
|
tofu
Joined: 01 Jul 2006
Posts: 27
Location: Ghent, Belgium
|
| Posted: Sat Jan 05, 2008 8:06 am Post subject: |
|
|
| Nobody? |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 286
Location: Austin
|
| Posted: Sat Jan 05, 2008 10:03 am Post subject: |
|
|
| In the main logged-in screen, the "Host Summary" section tells you what the "Host Load" is. Is that what you're looking for? |
|
| Back to top |
|
tofu
Joined: 01 Jul 2006
Posts: 27
Location: Ghent, Belgium
|
| Posted: Sat Jan 05, 2008 10:57 am Post subject: |
|
|
| Xan wrote: In the main logged-in screen, the "Host Summary" section tells you what the "Host Load" is. Is that what you're looking for? Yes, but that's realtime, I'm searching for a historical graph of the Host Load. Like from the past 24hours. Then I can set my cronjobs on the times that the hostload is the lowest. |
|
| Back to top |
|
kbrantley
Joined: 21 Sep 2007
Posts: 18
|
| Posted: Sat Jan 05, 2008 2:33 pm Post subject: |
|
|
| I've got a small script that runs every 4-6 hours and records the stats that Linode provides. I'd recommend something similar in your case. |
|
| Back to top |
|
tofu
Joined: 01 Jul 2006
Posts: 27
Location: Ghent, Belgium
|
| Posted: Sat Jan 05, 2008 2:43 pm Post subject: |
|
|
| kbrantley wrote: I've got a small script that runs every 4-6 hours and records the stats that Linode provides. I'd recommend something similar in your case. Do you mean the stats from the CPU usage from you own Linode, or from the whole host? If from the whole host, where do you get the CPU usage information from? |
|
| Back to top |
|
kbrantley
Joined: 21 Sep 2007
Posts: 18
|
| Posted: Sat Jan 05, 2008 9:36 pm Post subject: |
|
|
Entire host.
http://www.linode.com/forums/viewtopic.php?t=1558
Quote: <?xml version="1.0" encoding="ISO-8859-1" ?>
<linData>
<host>
<host>host41.linode.com</host>
<hostLoad>low</hostLoad> |
|
| Back to top |
|
| |