cpupower

Tools regarding CPU power and tuning options.

TLDR

List CPUs

$ sudo cpupower --cpu [all] info
copy


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


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


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


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

SYNOPSIS

cpupower [ -c cpulist ] <command> [ARGS]

cpupower -v|--version

cpupower -h|--help

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.

AUTHORS

--perf-bias parts written by Len Brown <len.brown@intel.com>
Thomas Renninger <trenn@suse.de>

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)

Copied to clipboard