POWERCAP-INFO(1)
π POWERCAP-INFO(1) β the powercap-info page, but make it cute π
okay bestie, welcome to powercap-info from the powercap manual β yes it's the Linux power capping framework info-getter and yes it's iconic. sit down, grab a strawberry π, we're doing this.
β¨ NAME β¨
powercap-info β get information from the Linux power capping framework. that's it, that's the girl. she prints, she doesn't set. periodt.
πΈ SYNOPSIS πΈ
powercap-info [NAME [OPTION]...] [-hv]
π DESCRIPTION π
She prints the configurations for powercap control types. that's her whole job and she eats every time.
You can filter the output by handing her a control type NAME and/or some OPTION flags, like a little build-your-own-query moment.
β οΈ a control type NAME must not be empty and must not contain a.or a/. not negotiable, she's picky about her names.
π OPTIONS π
the general girlies (no control type needed)
-h,--helpβ prints the help screen π«Ά-v,--verboseβ print errors when files cannot be read (aka: tell me when things go wrong instead of staying silent about it π)-p,--control-type=NAMEβ deprecated, bestie. just pass NAME as the first positional argument instead, it's giving 2021. π
everything below this line needs a control type NAME
-z,--zone=ZONE(S)β the zone/subzone numbers in the control type's powercap tree (defaults to the control type's root). separate zones/subzones with a colon. e.g., for zone 0, subzone 2:-z 0:2. ending with a colon prevents output for subzones β e.g., for zone 0 but not subzones:-z 0:β¨-c,--constraint=CONSTRAINTβ the constraint number
everything below this is mutually exclusive (pick ONE, she's not doing polyamory)
-E,--enabledβ print control type enabled/disabled status-n,--nzonesβ print the number of zones (control type's root by default; within the-z/--zonelevel, if set)
zone-level arguments β these need -z/--zone π
-N,--nconstraintsβ print the number of zone constraints-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 enabled/disabled status-x,--z-nameβ print zone name
constraint-level arguments β these need BOTH -z/--zone AND -c/--constraint π
-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 π¦
no cap, this is the fun part. copy-paste these and watch her go:
powercap-info print all zones for all control types.
powercap-info intel-rapl print all zones for the intel-rapl control type.
powercap-info intel-rapl -z 0 print only zone 0 for the intel-rapl control type.
powercap-info intel-rapl -z 0:1 print zone 0, subzone 1 for the intel-rapl control type.
powercap-info intel-rapl -z 0 -c 1 print zone 0, constraint 1 for the intel-rapl control type.
powercap-info intel-rapl -z 0 -j print the energy counter for zone 0 for the intel-rapl control type.
powercap-info intel-rapl -z 1:0 -c 0 -l print the power limit for zone 1, subzone 0, constraint 0 for the intel-rapl control type.
π REMARKS π
okay so a few things you need to know, bestie:
- some fields are optional and/or may need administrative (super-user) privileges to read π
- fields will only be printed if they are available and readable, unless
-v/--verboseis set - if no subzone/constraint-specific outputs are requested, all available zones and constraints will be shown β she's generous like that
and the units, because units matter and guessing is not the vibe:
- Energy units: microjoules (uJ)
- Power units: microwatts (uW)
- Time units: microseconds (us)
π BUGS π
found a bug? report bugs upstream at <https://github.com/powercap/powercap> β she'd love that for her, fr fr.
π§ FILES π§
/sys/devices/virtual/powercap/*/sys/class/powercap/*
π AUTHORS π
Connor Imes <connor.k.imes@gmail.com> β the main character who wrote this. respect.
π₯ SEE ALSO π₯
powercap-set(1) β her sister. go say hi.
and that's the whole page, bestie!! π this was powercap, dated 2021-12-12, version powercap-info(1) β ate and left no crumbs π
β¨ no notes, go read your /sys/class/powercap/* and slay π
π¦ 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 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