Replies: 4 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" |
Beta Was this translation helpful? Give feedback.
-
I checked that the "SYS energy" PCM value on my HP laptop is close to the power meter reading at the wall. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the information! It helps a lot. @rdementi |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions