cpupower - Man Page
Shows and sets processor power related values
Examples (TL;DR)
- List CPUs:
sudo cpupower --cpu all info
- Print information about all cores:
sudo cpupower --cpu all info
- Set all CPUs to a power-saving frequency governor:
sudo cpupower --cpu all frequency-set --governor powersave
- Print CPU 0's available frequency [g]overnors:
sudo cpupower --cpu 0 frequency-info g | grep "analyzing\|governors"
- Print CPU 4's frequency from the hardware, in a human-readable format:
sudo cpupower --cpu 4 frequency-info --hwfreq --human
Synopsis
cpupower [ -c cpulist ] <command> [ARGS]
Description
cpupower is a collection of tools to examine and tune power saving related features of your processor.
The manpages of the commands (cpupower-<command>(1)) provide detailed descriptions of supported features. Run cpupower help to get an overview of supported commands.
Options
- --help, -h
Shows supported commands and general usage.
- --cpu cpulist, -c cpulist
Only show or set values for specific cores. This option is not supported by all commands, details can be found in the manpages of the commands.
Some commands access all cores (typically the *-set commands), some only the first core (typically the *-info commands) by default.
The syntax for <cpulist> is based on how the kernel exports CPU bitmasks via sysfs files. Some examples:
- Input
Equivalent to
- all
all cores
- 0-3
0,1,2,3
- 0-7:2
0,2,4,6
- 1,3,5-7
1,3,5,6,7
- 0-3:2,8-15:4
0,2,8,12
- --version, -v
Print the package name and version number.
See Also
cpupower-set(1), cpupower-info(1), cpupower-idle-info(1), cpupower-idle-set(1), cpupower-frequency-set(1), cpupower-frequency-info(1), cpupower-monitor(1), powertop(1)
Authors
--perf-bias parts written by Len Brown <len.brown@intel.com> Thomas Renninger <trenn@suse.de>
Referenced By
cpupower-frequency-info(1), cpupower-frequency-set(1), cpupower-idle-info(1), cpupower-idle-set(1), cpupower-info(1), cpupower-powercap-info(1), cpupower-set(1).