1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-26 01:15:26 +02:00
tldr/pages/linux/cpupower.md

25 lines
700 B
Markdown
Raw Normal View History

2022-05-16 22:29:57 +10:00
# cpupower
> Tools regarding CPU power and tuning options.
> More information: <https://manned.org/cpupower>.
- List CPUs:
`sudo cpupower {{[-c|--cpu]}} {{all}} info`
2022-05-16 22:29:57 +10:00
- Print information about all cores:
`sudo cpupower {{[-c|--cpu]}} {{all}} info`
2022-05-16 22:29:57 +10:00
- Set all CPUs to a power-saving frequency governor:
`sudo cpupower {{[-c|--cpu]}} {{all}} frequency-set --governor {{powersave}}`
2022-05-16 22:29:57 +10:00
- Print CPU 0's available frequency governors:
2022-05-16 22:29:57 +10: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:
`sudo cpupower {{[-c|--cpu]}} {{4}} frequency-info {{[-w|--hwfreq]}} {{[-m|--human]}}`