LinuxCommandLibrary

cpupower

Manage CPU power saving settings

TLDR

List CPUs

$ sudo cpupower [[-c|--cpu]] [all] info
copy

Print information about all cores
$ sudo cpupower [[-c|--cpu]] [all] info
copy

Set all CPUs to a power-saving frequency governor
$ sudo cpupower [[-c|--cpu]] [all] frequency-set --governor [powersave]
copy

Print CPU 0's available frequency governors
$ sudo cpupower [[-c|--cpu]] [0] frequency-info [[-g|--governors]] | grep "analyzing\|governors"
copy

Print CPU 4's frequency from the hardware, in a human-readable format
$ sudo cpupower [[-c|--cpu]] [4] frequency-info [[-w|--hwfreq]] [[-m|--human]]
copy

SYNOPSIS

cpupower [options] command [command-options]

PARAMETERS

-c, --cpu CPULIST
    Operate on specific CPUs (e.g., 0-3 or 0,2)

-g, --gov GOVERNOR
    Set or display scaling governor (e.g., powersave, performance)

-b, --perf-bias BIAS
    Set Intel P-state performance bias (0-15, default 6)

-q, --human-readable-quiet
    Quiet human-readable output without units

--human-readable-ext
    Extended human-readable output

-h, --help
    Show help

-V, --version
    Print version

frequency-info [options]
    Show CPU frequency and governor info (alias: info)

frequency-set [options]
    Set frequency policy/governor (alias: set)

monitor [options]
    Monitor CPU performance/power metrics

powercap-info
    Display power capping information

DESCRIPTION

cpupower is a versatile command-line utility from the Linux kernel tools package for monitoring and controlling CPU power consumption, frequency scaling policies, and performance data. It interacts with kernel subsystems like CPUFreq via sysfs, allowing users to query available governors (e.g., powersave, performance, ondemand), set frequency limits (min/max), adjust performance bias, and monitor real-time metrics such as frequency, voltage, and power draw.

Ideal for system administrators, overclockers, and power optimizers, it supports multi-CPU systems with per-CPU targeting. Subcommands like frequency-info display current settings, frequency-set applies changes (requires root), monitor logs data, and powercap-info shows power capping info. It helps balance performance and energy efficiency on laptops, servers, and desktops, especially with modern Intel/AMD CPUs supporting P-states and C-states.

CAVEATS

Requires root privileges for setting operations; kernel CPUFreq support needed; some options hardware-specific (e.g., Intel Sandy Bridge+ for perf-bias); output varies by CPU/driver.

COMMON EXAMPLES

cpupower frequency-info
View current CPU frequencies/governor.

cpupower -c all frequency-set -g performance
Set all CPUs to performance governor (root).

cpupower monitor 1 100ms
Monitor for 1 second at 100ms intervals.

GOVERNORS

Common: powersave (min freq, save power), performance (max freq), ondemand (dynamic), schedutil (scheduler-integrated). List via frequency-info.

HISTORY

Introduced in linux-tools ~2.6.30 (2009), developed by Intel's Dominik Brodowski and community; evolved to replace deprecated cpufrequtils; active in modern kernels with support for AMD Zen, Intel Alder Lake+.

SEE ALSO

Copied to clipboard