-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What does the API "getSystemConsumedEnergy" get? #891
Comments
Hi, the value the system energy metric is retrieved from the MSR_PLATFORM_ENERGY_COUNTER register (Intel Software Developer Manual www.intel.com/sdm): Platform vendor and BIOS communicate the system energy value to the CPU MSR register. Could you please also share the output of pcm utility? Here is a sample output from an HP laptop (the platform and BIOS vendor is HP): The metrics of interest are "SYS energy", "CPU energy", "PP0 energy" and "PP1 energy" |
I checked that the "SYS energy" PCM value on my HP laptop is close to the power meter reading at the wall. |
Thank you for the information! It helps a lot. @rdementi |
The API used here is getSystemConsumedJoules : Line 342 in aa70ef5
The value from the MSR (MSR_SYS_ENERGY_STATUS = MSR_PLATFORM_ENERGY_COUNTER= 0x64D) is multiplied with the unit: Line 1762 in aa70ef5
Line 6982 in aa70ef5
Line 3396 in aa70ef5
Line 3487 in aa70ef5
|
I'm trying to use pcm API to get energy consumption, my platform is Tiger Lake.
Could you please tell me what does system consumed energy means in the function "getSystemConsumedEnergy"?
I found SystemCounterState.systemEnergyStatus will only be updated by reading from MSR in function
PCM::getALLCounterStates
And I got different result using SystemCounterState from 'getSystemCounterState' and 'getALLCounterStates'
The system consumed joules is less that package consumed joules, what does the system consist of?
Thank you.
The text was updated successfully, but these errors were encountered: