How to determine max CPU speed of a processor in Linux?

I have a few 2.6 Linux boxes, running mostly RHEL and SUSE. I know for certain the RHEL machines have power saving on via the cpu governor. When the ondemand governor kicks, /proc/cpuinfo is showing the current speed of the processor and no longer showing the maximum which limits its usefulness to me. Dmidecode shows the maximum speed, but requires root access or privilege (which is a burden in this environment).

Aside from those two options are there any ways to get this information without really need root access?

As an addendum, there exists /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq (for all cores) on the machines where I am seeing varying clock speeds for power savings. Does anyone know if this file does not exist then would /proc/cpuinfo be guaranteed to show the maximum speed?


If /sys/devices/.../cpuinfo_max_freq doesn't exist, that means the cpufreq driver isn't loaded - thus the CPU should be running at full speed. So yes, /proc/cpuinfo should be correct in that situation.


in addition to Marcin's comment: the second number in cpufreq-info -c 0 -l divided by 1000 gives you the max MHz