2022-05-16 22:29:57 +10:00
|
|
|
# cpupower
|
|
|
|
|
|
|
|
> Tools regarding CPU power and tuning options.
|
|
|
|
> More information: <https://manned.org/cpupower>.
|
|
|
|
|
|
|
|
- List CPUs:
|
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
`sudo cpupower {{[-c|--cpu]}} {{all}} info`
|
2022-05-16 22:29:57 +10:00
|
|
|
|
|
|
|
- Print information about all cores:
|
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
`sudo cpupower {{[-c|--cpu]}} {{all}} info`
|
2022-05-16 22:29:57 +10:00
|
|
|
|
|
|
|
- Set all CPUs to a power-saving frequency governor:
|
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
`sudo cpupower {{[-c|--cpu]}} {{all}} frequency-set --governor {{powersave}}`
|
2022-05-16 22:29:57 +10:00
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
- Print CPU 0's available frequency governors:
|
2022-05-16 22:29:57 +10:00
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
`sudo cpupower {{[-c|--cpu]}} {{0}} frequency-info {{[-g|--governors]}} | grep "analyzing\|governors"`
|
2022-05-16 22:29:57 +10:00
|
|
|
|
|
|
|
- Print CPU 4's frequency from the hardware, in a human-readable format:
|
|
|
|
|
2025-03-27 16:42:21 +02:00
|
|
|
`sudo cpupower {{[-c|--cpu]}} {{4}} frequency-info {{[-w|--hwfreq]}} {{[-m|--human]}}`
|