[NTLUG:Discuss] dmidecode... arghh!!

Chris Cox cjcox at acm.org
Thu Jun 25 15:11:20 CDT 2009


As a part of exploring your hardware, I mentioned dmidecode. Probably
the best thing on an RHEL box... but it's just totally messed up with
regards to CPU Max Speed and Current Speed ... neither are accurate or
trustworthy.... sigh.

On newer boxes with a good sysfs/acpi implementation, try:
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
and the other values in that same dir for min_freq and cur_freq.

hwinfo --cpu seems to accurately handle the max_freq as Clock.

/proc/cpuinfo only reports the cur_freq.

I have NO idea where dmidecode gets its data.... it's just wrong.

So order of check:

/sys/... sysfs
hwinfo
dmidecode
/proc/cpuinfo





More information about the Discuss mailing list