Fedora Linux Support Community & Resources Center
  #1  
Old 27th April 2012, 03:41 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
linuxfedorafirefox
cpuinfo current speed greater than max speed

In putting together a system with an Athlon quad core processor ( Family 21, model 1, according to cpuinfo), I find that /proc/cupinfo shows "max speed" is 3200 MHz and "current speed" is "3600 MHz". Is there something non-obvious about the definition of "max speed" ?
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #2  
Old 27th April 2012, 04:42 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: cpuinfo current speed greater than max speed

cpuinfo is a piece of crap as far as I am concerned.

It sees my processor that is running over 2.2Ghz as only able to run 1.8Ghz

Code:
[    0.000000] Detected 2257.442 MHz processor.

and clip from /proc/cpuinfo:

cpu MHz		: 1800.000
and unless I disable the performance/ondemand governeor I can't run at the full speed of the processor as it will only allow 1.8Ghz as the maximum setting.

Easiest way for me to force the full speed of the processer is to disable speedstep in the BIOS so the OS can't scale it back.
Reply With Quote
  #3  
Old 27th April 2012, 09:50 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: cpuinfo current speed greater than max speed

Please check the data sheet for your cpu. With turbo core it is probably allowed to run faster than "max" speed which is a bit misleading.

"Max" obviously refers to the fastest speed you or the kernel can select manually and then the cpu decides if it can run even faster than that ;-)

Try powertop to get a more detailed reading of cpu states.
Reply With Quote
  #4  
Old 27th April 2012, 03:02 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: cpuinfo current speed greater than max speed

My CPU doesn't have anything like "turbo core" it's a standard Dual Core Pentium 4, not even the core 2 duo.

My CPU runs at 2257.442 MHz and the kernel detects it properly. cpufreq (which sets the cpuinfo) detects it at 1800 MHz and will not allow anything to set the maximum CPU speed above 1800MHz. So if the CPU is ever scaled (with the ondemand governor, for example) then it will never get set back to it's maximum speed, since 1800 MHz is the maximum speed that is set by cpufreq. I have tried to manually set the max cpu speed, but it won't allow anything to set it above 1800 MHz.

cpufreq (and by result, cpuinfo) are totally useless (actually worse than useless since they cause problems) on my machine.
Reply With Quote
  #5  
Old 29th April 2012, 11:44 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: cpuinfo current speed greater than max speed

The original post was about some AMD quad core.

I'm not even sure if a Pentium 4 supports frequency scaling.

On a modern system you'll have to enable Intel Speedstep Technology (EIST) in your BIOS.
Reply With Quote
  #6  
Old 1st May 2012, 04:25 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
linuxopera
Re: cpuinfo current speed greater than max speed

I was incorrect to attribute the cpu speed info to /proc/cpuinfo. (I was looking at a file and I forgot what produced it). The speed info is output by the command dmidecode.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #7  
Old 1st May 2012, 04:40 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: cpuinfo current speed greater than max speed

the pertinent lines from dmidecode here:

Code:
	External Clock: 200 MHz
	Max Speed: 1800 MHz
	Current Speed: 2400 MHz
	Status: Populated, Enabled
	Upgrade: Socket LGA775
Notice that Max Speed is shown as much less than the Current Speed. If I enable any of the CPU scaling governors in cpufreq, then the fastest it will ever set the processor is to 1800MHz, and I have been unable to force the Max Speed to anything greater than 1800 MHz.
Reply With Quote
  #8  
Old 1st May 2012, 07:45 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
linuxopera
Re: cpuinfo current speed greater than max speed

That output illustrates my question. What is the meaning of "max speed" and "current speed"? If I interpret those phrases simplistically, current speed should never be more that max speed.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #9  
Old 1st May 2012, 07:52 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: cpuinfo current speed greater than max speed

Max speed is set by cpufreq when the system boots.

In my case, cpufreq sets Max Speed to 1800 MHz, even though the processor is running at 2400 MHz. The kernel detects it properly, but cpufreq doesn't.

Once cpufreq decides that 1800 MHz is the maximum speed, nothing I do can set it faster if it ever is scaled down. So, I have to disable EIST in the BIOS to prevent cpufreq from scaling the speed back if I want to be able to run the CPU at the proper speed instead of the slower 1800 MHz.
Reply With Quote
  #10  
Old 1st May 2012, 09:26 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: cpuinfo current speed greater than max speed

Interesting program

Code:
        Version: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
        Voltage: 0.0 V
        External Clock: 100 MHz
        Max Speed: 3800 MHz
        Current Speed: 1600 MHz
Now whatever I do the Current Speed stays at 1600 MHz which is rather silly.

Code:
$ cat /proc/cpuinfo | grep -i mhz
cpu MHz		: 3301.000
cpu MHz		: 3301.000
cpu MHz		: 3301.000
cpu MHz		: 3301.000
Only powertop shows the real turbo frequency of 3400 MHz for each core ;-)
Reply With Quote
  #11  
Old 1st May 2012, 01:14 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,708
linuxfirefox
Re: cpuinfo current speed greater than max speed

For Intel Core i3/5/7 processors, i7z is a handy tool for checking CPU speeds and behaviour: http://code.google.com/p/i7z/.

It won't be much use for other processors though.
Reply With Quote
Reply

Tags
cpuinfo, current, greater, max, speed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
real cpu speed: /proc/cpuinfo incoherent with /sys/device/system/cpu/cpu?/cpufreq Marcuccio Hardware & Laptops 1 25th April 2011 07:03 PM
Tweak the speed of broadband connection speed anishjp Using Fedora 2 11th February 2011 02:23 PM
Connection speed and download speed tech291083 Linux Chat 0 1st December 2008 09:17 AM
Help: network SENT speed only 1/2 of RECEIVING speed? fly2moon2 Servers & Networking 0 8th September 2006 03:45 AM
Problems running cpu at full-speed. (view: cpuinfo) fearism Hardware & Laptops 12 11th June 2005 08:07 AM


Current GMT-time: 10:04 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat