[RFE] PCP Power consumption metrics

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 8
  • Performance Co-Pilot (PCP)
  • pmda-denki

Issue

Utilities such as powertop are able to query the system's power consumption. It would be helpful if those same metrics were captured by Performance Co-Pilot so that we could chart power consumption along with other metrics.

We would appreciate really fine data (per disk, cpu, pci device, etc) but happy even with a raw consumption numbers.

Resolution

An implementation of pmda-denki, the Performance Metrics Domain Agent (PMDA) for handling metrics related to electrical power, has landed in upstream PCP and is available in RHEL8.6GA and later.

pmda-denki implements

  • consumption metrics based on Running Average Power Limit (RAPL) readings, available on recent Intel and AMD cpus. This requires a kernel based on upstream kernel 5.x for being usable on AMD cpus.
  • consumption metrics based on battery discharge, available on systems which have a battery.

The upstream request was tracked as PCP Issue 535, and the request for inclusion into rhel in (private) bz1629455.

  • Component
  • pcp

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments