powerd / cpufreq question

Ian Smith smithi at nimnet.asn.au
Tue Apr 12 16:52:28 UTC 2011


On Tue, 12 Apr 2011, Daniel Gerzo wrote:
 > On 11.4.2011 6:08, Ian Smith wrote:
 > > 
 > > As you see, total of differences for each cpu is here 89 ticks, but I've
 > > no idea of the interval between your two readings, or your value of HZ?
 > 
 > the interval may have been around 1-2 seconds.
 > My value of HZ is default, 1000.

Ok, seems it depends on stathz, not HZ, so 89'd be less than 1 second if 
your stathz is 128 .. I gather that may be changed with the 9.x timers?

 > > Are those kern.cp_times values as they came, or did you remove trailing
 > > zeroes?  Reason I ask is that on my Thinkpad T23, single-core 1133/733
 > > MHz, sysctl kern.cp_time shows the usual 5 values, but kern.cp_times has
 > > the same 5 values for cpu0, but then 5 zeroes for each of cpu1 through
 > > cpu31, on 8.2-PRE about early January.  I need to update the script to
 > > remove surplus data for non-existing cpus, but wonder if the extra data
 > > also appeared on your 12 core box?
 > 
 > I haven't removed anything, it's a pure copy&paste.

Thanks.  I'll check the single-cpu case again after updating to 8.2-R

cheers, Ian


More information about the freebsd-stable mailing list