- To: Simon Bowden <simonb@xxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] Comuting CPU usage from /proc
- From: Carlo Sogono <cs83@xxxxxxxxxx>
- Date: Mon, 27 Sep 2004 11:53:49 +1000
- Cc: slug@xxxxxxxxxxx
>You probably want /proc/loadavg, numbers documented ass
mentioned earlier
>in man 5 proc.
The values of load average refers to the average number of
CPUs running for the past 1, 5 and 15 mins and yes, I have
looked at man 5 proc before. Polling the loadavg for the past
min is not so flexible as polling, say, every 1 second so you
can switch states quickly on demand. Your 1 min load *average*
might be <1 but your average for the past few seconds might be
a lot higher and the cpufreq daemon might not be able to
switch immediately and would still have to wait 1 min until
the avg >1.
Carlo
--
Carlo Sogono
carlo.sogono@xxxxxxx