Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Current processor frequency?

by misc (Pilgrim)
on Aug 02, 2007 at 00:55 UTC ( #630193=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Current processor frequency?
in thread Current processor frequency?

perhaps it's not as easy I thought..

to me it shows the current frequency, although I've got a smp kernel. (2.6.18)
Google said the same for most users.
e.g. http://docs.huihoo.com/gentoo/resources/document-listing/power-management-guide.html
So I'd guess it's dependent on the kernel version, I wasn't able to find something more specific in the kernel documentation.
A short research in the kernel sources didn't answer this, too.

What google also told me..

There is more info in the files
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq

cpuinfo_cur_freq is only readable by root on my system, so this could lead again into problems.

At least my question how the max frequency can be determined has been answered. :-)


Comment on Re^3: Current processor frequency?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://630193]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-12-20 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls