HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cpupower — Tools regarding CPU power and tuning options. More information: <https://manned.org/cpupower>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandcliregardingcpucpupowertoolspower
linux

Problem

How to use the cpupower command: Tools regarding CPU power and tuning options. More information: <https://manned.org/cpupower>.

Solution

cpupower — Tools regarding CPU power and tuning options. More information: <https://manned.org/cpupower>.

List CPUs:
sudo cpupower {{[-c|--cpu]}} {{all}} info


Print information about all cores:
sudo cpupower {{[-c|--cpu]}} {{all}} info


Set all CPUs to a power-saving frequency governor:
sudo cpupower {{[-c|--cpu]}} {{all}} frequency-set --governor {{powersave}}


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


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

Code Snippets

List CPUs

sudo cpupower {{[-c|--cpu]}} {{all}} info

Print information about all cores

sudo cpupower {{[-c|--cpu]}} {{all}} info

Set all CPUs to a power-saving frequency governor

sudo cpupower {{[-c|--cpu]}} {{all}} frequency-set --governor {{powersave}}

Print CPU 0's available frequency governors

sudo cpupower {{[-c|--cpu]}} {{0}} frequency-info {{[-g|--governors]}} | grep "analyzing\|governors"

Print CPU 4's frequency from the hardware, in a human-readable format

sudo cpupower {{[-c|--cpu]}} {{4}} frequency-info {{[-w|--hwfreq]}} {{[-m|--human]}}

Context

tldr-pages: linux/cpupower

Revisions (0)

No revisions yet.