On 2011/03/23 21:18, David Vasek wrote:
> Hello all.
> 
> As majority of current hardware use some form of dynamic CPU
> frequency scaling and it is frequently controlled by ampd, wouldn't
> it be good to have the current hw.cpuspeed displayed somewhere in the
> header lines of systat(1) and top(1)? Just to know the scale for
> other performace figures on the display.

This sysctl isn't always available, I don't think it's useful
to print a bogus figure when it fails:

load averages:  1.93,  1.49,  1.35 /    0 MHz                         kaffir.spa
41 processes:  1 running, 39 idle, 1 on processor
CPU states: 98.2% user,  0.0% nice,  1.8% system,  0.0% interrupt,  0.0% idle
Memory: Real: 147M/196M act/tot  Free: 49M  Swap: 12M/600M used/tot

And as Toby was alluding to, there may be systems where cores don't
all run at the same speed (or perhaps some aren't spun up at all); how
should this be handled? I imagine this will be an issue before having
to worry about the display formatting if CPUs exceed 9.999GHz.

Reply via email to