View previous topic :: View next topic |
Author |
Message |
Ghostryder Apprentice
Joined: 10 Dec 2003 Posts: 216
|
Posted: Tue Jul 13, 2004 9:53 am Post subject: Current CPU speed |
|
|
Hi,
does anybody know how to get the current frequency of the CPU? I already tried "cat /proc/cpuinfo" an "/proc/cpufreq" but that doesn't tell me the *current* speed of my CPU...
TIA |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Tue Jul 13, 2004 10:30 am Post subject: |
|
|
it should tell you the clockspeed of the cpu at the time you press enter. |
|
Back to top |
|
|
Ghostryder Apprentice
Joined: 10 Dec 2003 Posts: 216
|
Posted: Tue Jul 13, 2004 10:57 am Post subject: |
|
|
What do you mean with "it"?
And why do you say "should", isn't that for sure? |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Tue Jul 13, 2004 12:18 pm Post subject: |
|
|
hehe
ok, a rephrase:
the output of cat /proc/cpuinfo will tell you the current clock speed.
i wonder though - why would you doubt its accuracy? |
|
Back to top |
|
|
brodo Guru
Joined: 15 Apr 2003 Posts: 319
|
Posted: Tue Jul 13, 2004 2:57 pm Post subject: |
|
|
/proc/cpuinfo is very inaccurate, at least if the hardware+BIOS support frequency scaling, or they do frequency throttling and _you_ count that as chaning the clock speed.
But leaving that aspect aside, the "best" information on current CPU speed can be found at
Code: | /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_speed |
As it involves calls to hardware, this file is only availble to root. |
|
Back to top |
|
|
|