cpupower: add page (#8073)

htop
toydotgame 2022-05-16 22:29:57 +10:00 committed by GitHub
parent 9659a81dc3
commit 6e60a5fd2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

25
pages/linux/cpupower.md Normal file
View File

@ -0,0 +1,25 @@
# cpupower
> Tools regarding CPU power and tuning options.
> This command is available as part of the `cpupower` package, or as part of `kernel-tools` on Fedora.
> More information: <https://manned.org/cpupower>.
- List CPUs:
`sudo cpupower --cpu {{all}} info`
- Print information about all cores:
`sudo cpupower --cpu {{all}} info`
- Set all CPUs to a power-saving frequency governor:
`sudo cpupower --cpu {{all}} frequency-set --governor {{powersave}}`
- Print CPU 0's available frequency [g]overnors:
`sudo cpupower --cpu {{0}} frequency-info g | grep "analyzing\|governors"`
- Print CPU 4's frequency from the hardware, in a human-readable format:
`sudo cpupower --cpu {{4}} frequency-info --hwfreq --human`