RAPL-INFO(1)
π RAPL-INFO π
okay bestie, gather round, we're talking about rapl-info β the little utility that gets RAPL configurations. That's Intel Running Average Power Limit, for the uninitiated. And yes, this is the rapl-info(1) manual page, we're doing this properly. π«Ά
β¨ NAME β¨
rapl-info β get RAPL configurations πΈ
β¨ SYNOPSIS β¨
rapl-info [OPTION]...
β¨ DESCRIPTION β¨
okay so first things first, no cap: this utility is deprecated, use powercap-info(1) instead. π Not me having to tell you this upfront but here we are.
It prints out Intel Running Average Power Limit (RAPL) configurations. Iconic behaviour honestly.
β οΈ Heads up bestie: the-pand-zoptions here are different frompowercap-info(1). Do not get it twisted.
And the requirements, because she has standards π :
- An Intel processor (Sandy Bridge or newer)
- Linux kernel 3.13 or newer, compiled with
CONFIG_POWERCAPandCONFIG_INTEL_RAPLenabled - the
intel_raplkernel module to be loaded
β¨ OPTIONS β¨
-h,--helpβ Prints out the help screen π-v,--verboseβ Print errors when files are not available. Basically she stops being mysterious and tells you what's missing. π-p,--zone=ZONEβ The zone number (none by default;0by default if using-z/--subzoneand/or-c/--constraint). Ending with a colon prevents output for subzones. E.g., for zone 0, but not subzones:
-p 0:
-p,--package=PACKAGEβ Deprecated, use--zoneinstead. bestie she's retired π-z,--subzone=SUBZONEβ The subzone number (none by default)-c,--constraint=CONSTRAINTβ The constraint number (none by default)
All remaining options below are mutually exclusive β pick ONE, you can't have them all, this isn't a buffet π:
-n,--nzonesβ Print the number of zones found, or the number of subzones found if-p/--zoneis set
The following are zone-level arguments (-z/--subzone is optional):
-j,--z-energyβ Print zone energy counter β‘-J,--z-max-energy-rangeβ Print zone maximum energy counter range-w,--z-powerβ Print zone current power-W,--z-max-power-rangeβ Print zone maximum current power range-e,--z-enabledβ Print zone enable/disabled status-x,--z-nameβ Print zone name π·οΈ
The following are constraint-level arguments and require -c/--constraint (-z/--subzone is optional):
-l,--c-power-limitβ Print constraint power limit-s,--c-time-windowβ Print constraint time window-U,--c-max-powerβ Print constraint maximum allowed power-u,--c-min-powerβ Print constraint minimum allowed power-T,--c-max-time-windowβ Print constraint maximum allowed time window-t,--c-min-time-windowβ Print constraint minimum allowed time window-y,--c-nameβ Print constraint name π
β¨ EXAMPLES β¨
Note that -p/--zone=0 is used by default when also specifying -z/--subzone and/or -c/--constraint, allowing for simpler commands on single-socket systems. So convenient, we love a shortcut. π
rapl-infoβ Print all RAPL zones.rapl-info -p 0β Print only zone 0, which is usually namedpackage-0.rapl-info -p 0 -z 1β Print zone 0, subzone 1, which is usually the uncore or dram subzone ofpackage-0, depending on the system.rapl-info -p 0 -c 1β Print zone 0, constraint 1, which is usually theshort_termconstraint forpackage-0.rapl-info -p 0 -jβ Print the energy counter for zone 0, which is usually namedpackage-0.rapl-info -p 1 -z 0 -c 0 -lβ Print the power limit for zone 1, subzone 0, constraint 0, which is usually thelong_termconstraint for the core subzone ofpackage-1(a multi-socket system).
β¨ REMARKS β¨
Some fields are optional and will only be printed if they are available β unless -v/--verbose is set. If no zone/constraint-specific outputs are requested, all available zones and constraints will be shown. Give the people what they want. π
The units, memorise them bestie:
- Energy units: microjoules (uJ)
- Power units: microwatts (uW)
- Time units: microseconds (us)
β¨ BUGS β¨
okay so listen. The following are behavioral quirks due to the kernel interface or abnormalities in some hardware. They are not bugs in rapl-info and should not be reported as such. She's innocent, periodt. π
- Values returned by the kernel sometimes lose accuracy from the actual values stored in Model-Specific Registers due to integer rounding. For example, the kernel may return a time window value of
7812 us, when in fact the actual stored value is7812.5 us. Writing back a value returned by the kernel, e.g., usingrapl-set(1), may cause unexpected changes to its value due to these rounding problems. π - At the time of this writing, some features in the powercap interface are not supported by RAPL. The following options may result in
ENOENT(No such file or directory) errors:-w/--z-power-W/--z-max-power-range-u/--c-min-power-T/--c-max-time-window-t/--c-min-time-window
- On some systems, the constraint
max_power_uwfile, e.g.,constraint_0_max_power_uw, is known to receive anENODATA(No data available) error from the kernel for subzones. So even though the file exists, a value may not be printed for it. The file said hi but gave nothing. π - It is possible for packages on multi-socket systems to be indexed out of order by the kernel. For example, the package at index 0 (
-p 0) could actually be namedpackage-1while the package at index 1 (-p 1) is namedpackage-0. Chaos, honestly. Not our fault. π« - Report bugs upstream at <https://github.com/powercap/powercap> π
β¨ FILES β¨
/sys/devices/virtual/powercap/intel-rapl/*/sys/class/powercap/intel-rapl/*
β¨ AUTHORS β¨
Connor Imes <connor.k.imes@gmail.com> π
β¨ SEE ALSO β¨
powercap-info(1), powercap-set(1), rapl-set(1) β go read these too bestie, iykyk π¦
and that's the whole page!! this came from the powercap package, dated 2021-04-14, and honestly it ate. slay, stay powered, and go check your energy counters responsibly β¨ππ
π¦ where this page comes from
- debian bookworm: powercap-utils 0.6.0-1 Β· BSD-3-Clause
- debian trixie: powercap-utils 0.6.0-1+b2 Β· BSD-3-Clause
- nixos 26.05: powercap 0.6.0
- nixpkgs unstable: powercap 0.6.0
- opensuse-leap 16.0: powercap 0.6.0-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: powercap 0.6.0-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: powercap 0.6.0-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: powercap 0.6.0-bp160.1.12 Β· GPL-2.0-only
- ubuntu jammy: powercap-utils 0.5.0-1 Β· BSD-3-Clause
- ubuntu noble: powercap-utils 0.6.0-1 Β· BSD-3-Clause
- ubuntu questing: powercap-utils 0.6.0-1
- ubuntu resolute: powercap-utils 0.6.0-1build1 Β· BSD-3-Clause
- ubuntu stonking: powercap-utils 0.6.0-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms