POWERCAP-SET(1)
π NAME π
powercap-set β the lil tool that manages power capping devices using the Linux power capping framework. yes bestie, we're out here capping power. β‘
β¨ SYNPOSIS β¨
powercap-set NAME [OPTION]...
πΈ DESCRIPTION πΈ
Okay so basically: it sets configurations for a powercap control type. that's the whole vibe. π«Ά
And heads up β the control type NAME must not be empty, and it must not contain a . or a /. no exceptions, no cap. π
π OPTIONS π
-h,--helpβ prints the help screen, slay β¨-p,--control-type=NAMEβ deprecated!! just hand over NAME as the first positional argument instead, bestie. it's giving legacy. π-z,--zone=ZONE(S)β the zone/subzone numbers in the control type's powercap tree. separate zones/subzones with a colon. e.g., for zone 0, subzone 2:
-z 0:2
-c,--constraint=CONSTRAINTβ the constraint number (none by default)-E,--enabled=1|0β enable/disable a control type, iconic toggle behavior ποΈ
The following zone-level arguments may be used together and require -z/--zone:
-j,--z-energyβ reset zone energy counter π-e,--z-enabled=1|0β enable/disable a zone
The following constraint-level arguments may be used together and require -z/--zone and -c/--constraint:
-l,--c-power-limit=UWβ set constraint power limit-s,--c-time-window=USβ set constraint time window
π¦ EXAMPLES π¦
powercap-set intel-rapl -z 0 -e 1β enable zone 0 for theintel-raplcontrol type.powercap-set intel-rapl -z 0:1 -e 1β enable zone 0, subzone 1 for theintel-raplcontrol type.powercap-set intel-rapl -z 0 -c 1 -l 25000000β set a power cap of 25 Watts (25000000 uW) on zone 0, constraint 1 for theintel-raplcontrol type.powercap-set intel-rapl -z 1:0 -c 0 -l 15000000 -s 976β set a power cap of 15 Watts (15000000 uW) and time window of 976 microseconds on zone 1, subzone 0, constraint 0 for theintel-raplcontrol type.
π REMARKS π
Administrative (root) privileges are usually needed to use powercap-set. so like, sudo or go home. π
Setting constraint power cap and/or time limit values may not enable or disable a zone/subzone β set the-e/--z-enabledflag explicitly. the way that these two things are separate... π
The kernel may round power limits and time windows to discrete values supported by the hardware, e.g., 28 seconds might round to 27983872 microseconds. so yeah, expect the math to get a lil quirky fr fr.
- Power units: microwatts (uW)
- Time units: microseconds (us)
π BUGS π
Report bugs upstream at <https://github.com/powercap/powercap> β pls don't suffer in silence, bestie. π
π FILES π
/sys/devices/virtual/powercap/*/sys/class/powercap/*
π AUTHORS π
Connor Imes <connor.k.imes@gmail.com> β main character energy, honestly. π«‘
π SEE ALSO π
and that's the whole page, bestie π this one comes from powercap, dated 2021-12-12, and it lives under the name POWERCAP-SET(1). go cap some power 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 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