AMD Posts New Linux Patches For Per-Core CPU Energy Counters

Written by Michael Larabel in AMD on 10 June 2024 at 06:48 AM EDT. 4 Comments
After an attempt in early 2023 didn't pan out, today an AMD Linux engineer posted a new kernel patch series for enabling per-core RAPL energy counter support for AMD processors. With this patch series when using Linux's venerable perf utility it's now possible for reading the power use on a per CPU core basis using a new "power_per_core" PMU.

The patch series posted on Monday morning by AMD's Dhananjay Ugwekar adds a new "power_per_core" PMU metric as a per-core energy counter. Ugwekar explained in the patch series:
"Currently the energy-cores event in the power PMU aggregates energy consumption data at a package level. On the other hand the core energy RAPL counter in AMD CPUs has a core scope (which means the energy consumption is recorded separately for each core). Earlier efforts to add the core event in the power PMU had failed, due to the difference in the scope of these two events. Hence, there is a need for a new core scope PMU.

This patchset adds a new "power_per_core" PMU alongside the existing "power" PMU, which will be responsible for collecting the new "energy-per-core" event."

With this there's the ability to now see on a per-core basis the energy use to complement the existing socket/package-level use.

AMD Zen 4 CPUs

The patches for this per-core energy counter support are now out for review and will hopefully make it to the mainline kernel now that it works around last year's obstacle to the support.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week