Skip to contentSkip to conversation

Incorrect CPU Frequency in /proc/cpuinfo

DISCUSSION Patrick 2 participants 2 messages Aug 28, 2005

lore
Share & tools
lore

Patrick

author
#0 lore raw

There is a problem with the display of CPU Frequency in /proc/cpuinfo.
It displays the CPU Frequency correctly... until you change the speed manually with the kernel's frequency scaling. Before I do this, my frequency displayed in /proc/cpuinfo is: "3208.757", This is correct. Then I: "||echo 600000 /sys/devices/cpu/cpu0/cpufreq/scaling_setspeed" The file "scaling_setspeed" shows 600000, which is correct. My CPU does change to that speed (I've run tests before and after, and temperature, etc), yet /proc/cpuinfo shows no change, no matter what clock speed I set it to.

I tried this on kernel 2.6.12-gentoo-r7, 2.6.13-rc6, 2.6.13-rc7, and it still happened. I have a Pentium 4 2.4C (Northwood) with Hyper-Threading. It is overclocked to 3.2GHz. I run Gentoo Base System version 1.6.13.

/proc/cpuinfo:
---
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz
stepping : 9
cpu MHz : 3208.757
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 6420.19

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz
stepping : 9
cpu MHz : 3208.757
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 6413.76
---

The modules that were modprobed at the time:

p4_clockmod
speedstep-lib
freq_table

Patrick M.
/* EOF */

Signature · 2 lines
Patrick M.
/* EOF */
#1 lore raw
Quoted 12 lines · Patrick

There is a problem with the display of CPU Frequency in /proc/cpuinfo.
It displays the CPU Frequency correctly... until you change the speed manually with the kernel's frequency scaling. Before I do this, my frequency displayed in /proc/cpuinfo is: "3208.757", This is correct. Then I: "||echo 600000 /sys/devices/cpu/cpu0/cpufreq/scaling_setspeed" The file "scaling_setspeed" shows 600000, which is correct. My CPU does change to that speed (I've run tests before and after, and temperature, etc), yet /proc/cpuinfo shows no change, no matter what clock speed I set it to.
....
The modules that were modprobed at the time:

Quoted 1 line

p4_clockmod

p4 clock modulation doesn't actually change the cpu frequency.

Quoted 1 line

speedstep-lib

This is a support library used by the other speedstep libs. (It's meant to be pulled in as a dependancy
rather than directly modprobed)

Your CPU isn't supported by the speedstep drivers, so loading this is pointless.

Quoted 1 line

freq_table

support lib for p4-clockmod.

Dave