mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
617 B
Plaintext
27 lines
617 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# cpufreq-aperf
|
|
|
|
> Calculate the average CPU frequency over a time period.
|
|
> Requires root privileges.
|
|
> More information: <https://manned.org/cpufreq-aperf>.
|
|
|
|
- Start calculating, defaulting to all CPU cores and 1 second refresh interval:
|
|
|
|
`sudo cpufreq-aperf`
|
|
|
|
- Start calculating for CPU 1 only:
|
|
|
|
`sudo cpufreq-aperf {{[-c|--cpu]}} {{1}}`
|
|
|
|
- Start calculating with a 3 second refresh interval for all CPU cores:
|
|
|
|
`sudo cpufreq-aperf {{[-i|--interval]}} {{3}}`
|
|
|
|
- Calculate only once:
|
|
|
|
`sudo cpufreq-aperf {{[-o|--once]}}`
|