Power Top RAPL interface v02
Get series with b4
b4 am 1365724736-411-1-git-send-email-srinivas.pandruvada@linux.intel.comVersions newest first
- v1 Latest8 patches 1 replyIn review
v02 changes from the cover letter
Addressed review comments
Moved MSR handling to library
Added interface to get the first CPU in a package Fix error in reading RAPL when system has multiple packages
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | Common read/write MSR APIsrc/ src/ | +63 | 1 reply | |
| 2/8 | Use MSR Lib MSR functionssrc/ | +4 | 0 replies | |
| 3/8 | RAPL Interfacesrc/ src/ src/ | +698 | 0 replies | |
| 4/8 | cpu device as parent classsrc/ src/ | +19 | 0 replies | |
| 5/8 | Interface to get first cpusrc/ | +1 | 0 replies | |
| 6/8 | Added PP0 RAPL domain for CPUsrc/ src/ src/ +1 more | +141 | 0 replies | |
| 7/8 | Add RAPL DRAM domainsrc/ src/ src/ +1 more | +141 | 0 replies | |
| 8/8 | Add RAPL PP1 domain for GPUsrc/ src/ src/ +2 more | +154 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Powertop] [PATCH 0/8] Power Top RAPL interface v02
This patch adds RAPL interface to powertop. RAPL can give energy consumed for a domain. For client platform, domain are "PKG", "PP0" and "PP1". For servers "PKG", "DRAM" and "PP0". PP0 refers to CPU energy comsumtion and PP1 refers to GPUs. DRAM is for DRAM in servers only.
Powertop estimates how much power CPU and GPU is consuming based on the measured power and load. This patch splits this into the following:
- Actual CPU/GPU power reported by RAPL
- DRAM power for servers
- Remaining as "misc" usage for CPU/GPU
As more domain are getting added, this patch creates a parent/child relationship for CPU/GPU. This way when new domains are added these files don't need change. Only inherit CPU/GPU class, and implement virtual method for consumed power.
v02 changes:
Addressed review comments
Moved MSR handling to library
Added interface to get the first CPU in a package Fix error in reading RAPL when system has multiple packages
Srinivas Pandruvada (8):
Common read/write MSR API
Use MSR Lib MSR functions
RAPL Interface
cpu device as parent class
Interface to get first cpu
Added PP0 RAPL domain for CPU
Add RAPL DRAM domain
Add RAPL PP1 domain for GPU
src/Makefile.am | 4 +- src/cpu/cpu.cpp | 16 ++ src/cpu/cpu.h | 1 + src/cpu/cpu_rapl_device.cpp | 74 +++++ src/cpu/cpu_rapl_device.h | 57 ++++ src/cpu/cpudevice.cpp | 14 + src/cpu/cpudevice.h | 6 +- src/cpu/dram_rapl_device.cpp | 75 +++++ src/cpu/dram_rapl_device.h | 57 ++++ src/cpu/intel_cpus.cpp | 23 +- src/cpu/rapl/rapl_interface.cpp | 611 ++++++++++++++++++++++++++++++++++++++++ src/cpu/rapl/rapl_interface.h | 85 ++++++ src/devices/gpu_rapl_device.cpp | 70 +++++ src/devices/gpu_rapl_device.h | 57 ++++ src/devices/i915-gpu.cpp | 21 ++ src/devices/i915-gpu.h | 6 +- src/lib.cpp | 61 ++++ src/lib.h | 3 +- 18 files changed, 1218 insertions(+), 23 deletions(-) create mode 100644 src/cpu/cpu_rapl_device.cpp create mode 100644 src/cpu/cpu_rapl_device.h create mode 100644 src/cpu/dram_rapl_device.cpp create mode 100644 src/cpu/dram_rapl_device.h create mode 100644 src/cpu/rapl/rapl_interface.cpp create mode 100644 src/cpu/rapl/rapl_interface.h create mode 100644 src/devices/gpu_rapl_device.cpp create mode 100644 src/devices/gpu_rapl_device.h
Signature · 1 line
1.7.11.7