I am currently using an Intel Sandy bridge processor and I'm trying to measure the power consumed by various components within the package using the Intel power governer version 68; At the moment, I see two issues with the tool that is provided to us.
a) The readings for power consumption with a granularity less than 1 second are wrong. For example:
s ./power_gov -e 1000
s ./power_gov -e 500
I am assuming the total power consumption to be half in each row when compared to the one second (same system state assumed)
b) I am unable to cap the average power over a time window for the core power domain.
s ./power_gov -r POWER_LIMIT -s 30 -d PP0
over a time window of 100 milliseconds.
And when I try to cap the power for the PKG power domain, It asks me to disable the RAPL lock in the BIOS. As I see, there is no setting for RAPL lock in the BIOS.
Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz
Linux linux-epq2.site 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64 x86_64 GNU/Linux
Can you post your questions to the power governor web page? You'll get answers from the guys who created the utility. I'll delete this posting after a while.