Skip to contentSkip to conversation

Introduce powercap userspace frontend

PATCH In review Thomas Renninger 3 participants 3 messages Jul 9, 2022 – Jul 21, 2022

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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 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

#2 lore raw

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.