mbox series

[0/2] Introduce powercap userspace frontend

Message ID 4954139.fJS9391jLT@c100 (mailing list archive)
Headers show
Series Introduce powercap userspace frontend | expand

Message

Thomas Renninger July 9, 2022, 8:13 a.m. UTC
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

Comments

Zhang Rui July 20, 2022, 9:45 a.m. UTC | #1
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

On Sat, 2022-07-09 at 10:13 +0200, Thomas Renninger wrote:
> 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
>
Thomas Renninger July 21, 2022, 1:02 p.m. UTC | #2
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:
> 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.