Trouble with CPU Clock !

A place to discuss topics related to Core Temp
Post Reply
gt510
Registered User
Registered User
Posts: 3
Joined: Sun Jan 16, 2011 7:04 pm

Trouble with CPU Clock !

Post by gt510 »

Hi!
Sorry for my english.
I don't know is the problem on Core Temp or Core Temp gadget.
It is displays different speed than Everest, CPU-Z.
Why?

Screenshot
Image

Video:
http://www.megaupload.com/?d=SHW1NEDX

hathor
Registered User
Registered User
Posts: 31
Joined: Fri Aug 25, 2006 7:02 am
Location: Berlin, Germany

Re: Trouble with CPU Clock !

Post by hathor »

Programmers should

..use IA32_MPERF and IA32_APERF MSRs to get the measured performance
* over a period of time, while CPU is in C0 state.
* IA32_MPERF counts at the rate of max advertised frequency
* IA32_APERF counts at the rate of actual CPU frequency
* Only IA32_APERF/IA32_MPERF ratio is architecturally defined and
* no meaning should be associated with absolute values of these MSRs.

Added:
Intel CPUs after Core Duo support two Model-Specific registers called IA32_MPERF and IA32_APERF.
MPERF counts at the maximum frequency the CPU supports, while APERF counts at the actual frequency.

The actual frequency is given by:

freq = max_frequency * APERF / MPERF

(if you have edit permissions, feel free to nicefy the equation above)

#define MSR_IA32_MPERF 0xE7
#define MSR_IA32_APERF 0xE8


You can read them with this flow

; read MPERF
mov ecx, 0xe7
rdmsr
mov mperf_var_lo, eax
mov mperf_var_hi, edx

; read APERF
mov ecx, 0xe8
rdmsr
mov aperf_var_lo, eax
mov aperf_var_hi, edx

but note that rdmsr is a privileged instruction and can run only in ring 0.
Greetings from BERLIN, GERMANY!
tiu-hathor

gt510
Registered User
Registered User
Posts: 3
Joined: Sun Jan 16, 2011 7:04 pm

Re: Trouble with CPU Clock !

Post by gt510 »

hathor!
I don't understand you. I am not programmer. :eek:

hathor
Registered User
Registered User
Posts: 31
Joined: Fri Aug 25, 2006 7:02 am
Location: Berlin, Germany

Re: Trouble with CPU Clock !

Post by hathor »

I understand You!
Toss away wrong programs.
Greetings from BERLIN, GERMANY!
tiu-hathor

gt510
Registered User
Registered User
Posts: 3
Joined: Sun Jan 16, 2011 7:04 pm

Re: Trouble with CPU Clock !

Post by gt510 »

hathor wrote:I understand You!
Toss away wrong programs.
Can you advice an analog gadget ?

Post Reply

Return to “Discussion”