Introduce powercap userspace frontend
cover Introduce powercap userspace frontend
cpupower powercap-info
cpupower monitor -m RAPL
further development could provide:
cpupower powercap-set
to enable/disable RAPL domains, etc.
Thomas Renninger (2):
cpupower: Introduce powercap intel-rapl library helpers and
powercap-info command
cpupower: rapl monitor - shows the used power consumption in uj for
each rapl domain
tools/power/cpupower/Makefile | 12 +- tools/power/cpupower/lib/powercap.c | 290 ++++++++++++++++++ tools/power/cpupower/lib/powercap.h | 54 ++++ .../cpupower/man/cpupower-powercap-info.1 | 25 ++ tools/power/cpupower/utils/builtin.h | 2 + tools/power/cpupower/utils/cpupower.c | 1 + .../utils/idle_monitor/cpupower-monitor.c | 7 +- .../utils/idle_monitor/idle_monitors.def | 1 + .../utils/idle_monitor/rapl_monitor.c | 141 +++++++++ tools/power/cpupower/utils/powercap-info.c | 113 +++++++ 10 files changed, 639 insertions(+), 7 deletions(-) create mode 100644 tools/power/cpupower/lib/powercap.c create mode 100644 tools/power/cpupower/lib/powercap.h create mode 100644 tools/power/cpupower/man/cpupower-powercap-info.1 create mode 100644 tools/power/cpupower/utils/idle_monitor/rapl_monitor.c create mode 100644 tools/power/cpupower/utils/powercap-info.c
Signature · 1 line
2.33.0
Hi, Thomas,
I want to give the patches a try but it seems that the patch format is corrupted, and I can not find them in patchwork neither.
thanks,
rui
Quoted 32 lines · Thomas Renninger
cpupower powercap-info
cpupower monitor -m RAPLfurther development could provide:
cpupower powercap-set
to enable/disable RAPL domains, etc.Thomas Renninger (2):
cpupower: Introduce powercap intel-rapl library helpers and powercap-info command
cpupower: rapl monitor - shows the used power consumption in uj for each rapl domaintools/power/cpupower/Makefile | 12 +- tools/power/cpupower/lib/powercap.c | 290
++++++++++++++++++
tools/power/cpupower/lib/powercap.h | 54 ++++ .../cpupower/man/cpupower-powercap-info.1 | 25 ++ tools/power/cpupower/utils/builtin.h | 2 + tools/power/cpupower/utils/cpupower.c | 1 + .../utils/idle_monitor/cpupower-monitor.c | 7 +- .../utils/idle_monitor/idle_monitors.def | 1 + .../utils/idle_monitor/rapl_monitor.c | 141 +++++++++ tools/power/cpupower/utils/powercap-info.c | 113 +++++++10 files changed, 639 insertions(+), 7 deletions(-)create mode 100644
tools/power/cpupower/lib/powercap.ccreate mode 100644tools/power/cpupower/lib/powercap.hcreate mode 100644tools/power/cpupower/man/cpupower-powercap-info.1create mode 100644tools/power/cpupower/utils/idle_monitor/rapl_monitor.ccreate mode 100644tools/power/cpupower/utils/powercap-info.c
Hi Rui,
long time no write... ;)
Thanks a lot for having look.
I am currently moving, the usual time problem, sigh.
I will test the way I sent patches first and come up with another version. But probably not before Mo.
The patches have been in SUSE cpupower package for some time. I finally find the time to post them, will do again asap.
Thomas
Am Mittwoch, 20. Juli 2022, 11:45:08 CEST schrieb Zhang Rui:
Quoted 4 lines
Hi, Thomas,
I want to give the patches a try but it seems that the patch format is corrupted, and I can not find them in patchwork neither.