Fix energy calcultation in RAPL MSR
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | target/i386: Fix arguments for vmsr_read_thread_stat()target/ | +4 | 1 reply |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Zhao Liu |
|---|---|
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/1] Fix energy calcultation in RAPL MSR
Hi Paolo,
The value reported by the calculation was looking very wrong to me.
This should fix it for good.
Calculated value appears now way more accurate from what is expected from the feature:
with "-smp 4":
[...]
# modprobe intel_rapl_msr.ko intel_rapl_common: Found RAPL domain package intel_rapl_common: found 1 domains on package-0 intel_rapl_common: Core CPU package-0:package energy=61035pJ, time=976us, power=125000uW intel_rapl_common: update package-0 domain package data # # # # cat /sys/class/powercap/intel-rapl:0/energy_uj 303160 # cat /sys/class/powercap/intel-rapl:0/energy_uj 325621 # cat /sys/class/powercap/intel-rapl:0/energy_uj 325621 # cat /sys/class/powercap/intel-rapl:0/energy_uj 357237 # cat /sys/class/powercap/intel-rapl:0/energy_uj 357237 # cat /sys/class/powercap/intel-rapl:0/energy_uj 388792 [...]
Tested with several SMP architecture.
(i.e -smp 4 / -smp 8,sockets=2,dies=1 / -smp 8,sockets=4,dies=2 )
Anthony Harivel (1):
target/i386: Fix arguments for vmsr_read_thread_stat()
target/i386/kvm/kvm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.45.2