Slower CPU frequency reported by the kernel
Hi,
I'm using a PC with AMD 64 3000+ cpu which is theoricaly running at 2Ghz. But when looking at /proc/cpuinfo, the kernel reports that it runs only at 1Ghz:
# cat /proc/cpuinfo
processor : 0vendor_id : AuthenticAMD
cpu family : 15
model : 12
model name : AMD Athlon(tm) 64 Processor 3000+
stepping : 0
cpu MHz : 1000.000
cache size : 512 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow ts fid vid ttp
bogomips : 2004.89
I tried with a 2.6.20-rc7 kernel and still have the same.
What's going wrong ?
thanks
Signature · 1 line
Francis
Quoted 29 lines · On Fri, 2 Feb 2007 12:11:25 +0100 "Francis Moreau" <[email protected]>…
Hi,
I'm using a PC with AMD 64 3000+ cpu which is theoricaly running at 2Ghz. But when looking at
/proc/cpuinfo, the kernel reports that it runs only at 1Ghz:# cat /proc/cpuinfoprocessor : 0
vendor_id: AuthenticAMD
cpu family : 15
model : 12
model name : AMD Athlon(tm) 64 Processor 3000+
stepping : 0
cpu MHz : 1000.000
cache size : 512 KBfdiv_bug: nohlt_bug: nof00f_bug: nocoma_bug: no
fpu : yesfpu_exception: yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow ts fid vid ttp
bogomips : 2004.89
Quoted 3 lines
I tried with a 2.6.20-rc7 kernel and still have the same.
What's going wrong ?
You are using frequency scaling(*) and "/proc/cpuinfo" reflects the current speed.
(*) =
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_TABLE=y CONFIG_CPU_FREQ_DEBUG=y CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=m CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
Read "Documentation/cpu-freq/user-guide.txt" for more info.
Signature · 2 lines
Paolo Ornati Linux 2.6.20-rc7 on x86_64
Quoted 9 lines · Paolo Ornati
Quoted 6 lines · On Fri, 2 Feb 2007 12:11:25 +0100 "Francis Moreau" <[email protected]>…
Hi,
I'm using a PC with AMD 64 3000+ cpu which is theoricaly running at 2Ghz. But when looking at
/proc/cpuinfo, the kernel reports that it runs only at 1Ghz:
I agree that that is the most logical explanation, but in theory it could also be that he has changed bios settings and underclocked the processor.
Signature · 3 lines
Jesper Juhl <[email protected]> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html
Hi
Quoted 4 lines · Jesper Juhl
I agree that that is the most logical explanation, but in theory it could also be that he has changed bios settings and underclocked the processor.
no I didn't
thanks
Signature · 1 line
Francis
Quoted 4 lines · Paolo Ornati
You are using frequency
scaling(*)and "/proc/cpuinfo" reflects the current speed.
ok, I didn't know about this.
Quoted 12 lines
(*) =
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_TABLE=yCONFIG_CPU_FREQ_DEBUG=yCONFIG_CPU_FREQ_STAT=mCONFIG_CPU_FREQ_STAT_DETAILS=y
#CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCEis not setCONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
it's seems that the cpu freq scaling depends on a user space tool. Could you tell me how I can find if there're such tools installed on my computer ?
thanks
Signature · 1 line
Francis
Quoted 4 lines
it's seems that the cpu freq scaling depends on a user space tool. Could you tell me how I can find if there're such tools installed on my computer ?
it may be userspace, or you may be using the "ondemand" governer. If you have the userspace tool it's often called "cpuspeed", but it depends on your distro.
Signature · 2 lines
if you want to mail me at work (you don't), use arjan (at) linux.intel.com Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org
Quoted 3 lines · Arjan van de Ven
it may be userspace, or you may be using the "ondemand" governer. If you have the userspace tool it's often called "cpuspeed", but it depends on your distro.
you're right, I actually use 'ondemand' governer. It seems to be the governer used by Fedora when the cpu is a AMD 64 3000+
thanks
Signature · 1 line
Francis
Quoted 1 line · On Fri, 2 Feb 2007 15:03:31 +0100 "Francis Moreau" <[email protected]>…
it's seems that the cpu freq scaling depends on a user space tool.
Yes, it depends on the selected governor.
In the case of "userspace" governor you (or a program) can set the speed writing to "/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed".
Usually a deamon monitor the CPU usage and increase the frequency when you need it.
Quoted 2 lines
Could you tell me how I can find if there're such tools installed on my computer ?
"ps -A" and look for something like "cpufreqd"
There are different deamon for this: cpufreqd, cpudyn...
Anyway it is started by an init script, so you should find it looking at "ls /etc/init.d/".
Signature · 2 lines
Paolo Ornati Linux 2.6.20-rc7 on x86_64
Quoted 3 lines · Paolo Ornati
Anyway it is started by an init script, so you should find it looking at "ls
/etc/init.d/".
thanks for these information. I'm using a Fedora distrib and it actually uses 'ondemand' governer with the cpu I use.
Signature · 1 line
Francis
Quoted 7 lines · Francis Moreau
Hi,
I'm using a PC with AMD 64 3000+ cpu which is theoricaly running at 2Ghz. But when looking at
/proc/cpuinfo, the kernel reports that it runs only at 1Ghz:
...
What's going wrong ?
Do you have feature called "Cool N' Quiet" enabled in BIOS? I had the same problem and disabling the feature the problem resolved.
maybe, you start a powersaved service, and enable the cpufreq module of kernel. You need run "powersave -f" for fix your CPU to highest frequency supported.
Quoted 18 lines · On Sat, 2007-02-03 at 12:19 +0000, [email protected] wrote:
Quoted 7 lines · Francis Moreau
Hi,
I'm using a PC with AMD 64 3000+ cpu which is theoricaly running at 2Ghz. But when looking at
/proc/cpuinfo, the kernel reports that it runs only at 1Ghz:
...
What's going wrong ?Do you have feature called "Cool N' Quiet" enabled in BIOS? I had the same problem and disabling the feature the problem resolved.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 8 lines
Quoted 5 lines
I'm using a PC with AMD 64 3000+ cpu which is theoricaly running at 2Ghz. But when looking at
/proc/cpuinfo, the kernel reports that it runs only at 1Ghz:
...
What's going wrong ?Do you have feature called "Cool N' Quiet" enabled in BIOS? I had the same problem and disabling the feature the problem resolved.
Linux reports the frequency the processor is currently running at. Cool N' Quiet is a feature that allows the processor to run at a lower frequency and voltage when it is idle, thereby saving you power and letting your fans run slower and quieter. Don't turn it off.
-Mark Langsdorf
AMD, Inc.
Quoted 2 lines · Francis Moreau
What's going wrong ?
Nothing. It's a feature that saves you enegery (=money) and noise when the computer doesn't have much to do.
-Andi