Vahe Avedissian wrote:
Hi Andreas,
Thank for your your insight. I did some tests on my machine and sure enough,
under heavier loads it shows
the CPU clock speeds as 2GHZ (as it should be).
What I did not realize earlier was that cpuinfo is not a static file but is in
fact updated by the system every 1 minute.
Thanks again.
Vahe
----- Original Message ----
From: Andreas Jaeger <[EMAIL PROTECTED]>
To: Vahe Avedissian <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Wednesday, September 26, 2007 10:29:46 AM
Subject: Re: [opensuse] opensuse 10.2 cpu info wrong
Vahe Avedissian <[EMAIL PROTECTED]> writes:
Folks,
I am not sure this is an opensuse 10.2, or motherboard, or bios bug, but when I
cat /proc/cpuinfo, I get two different speeds listed for two
identical cpus on in my system (look at the listed cpu MHz entries) :
more /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 33
model name : Dual Core AMD Opteron(tm) Processor 270
stepping : 2
cpu MHz : 1000.000
That is the frequency the cpu currently runs at. We power down the cpu
when it's idle. Give it some more to do and it will increase again.
The feature is called cpu frequency scaling, you can control it with the
powersave command.
Everything is working fine ;-)
Andreas
The "files" in /proc are not really files. Think of the /proc structure
as index keys for accessing actual kernel data structures. The read
system call actually returns the current data from the specified data
structure. You would have to scrounge through the kernel source to find
the update period. I don't remember if it is triggered by an interrupt,
or has a timer. I am pretty sure that it doesn't happen at every jiffy.
Bill Anderson
WW7BA
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]