aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/linux/cpufreq.md
blob: 7e455e28dfecf8859a29342cd4d327ef43e2fdbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# cpufreq

The `sysfs` interface to cpu frequency settings and current state.
```
/sys/devices/system/cpu/cpu*/cpufreq/
```

## cpupower(1)

A CLI interface to peek and poke the cpu frequency settings.

```
# Show current frequency of all cores.
cpupower -c all frequency-info -f -m

# Show currently set frequency governor.
cpupower -c all frequency-info -p

# List available frequency governors.
cpupower -c all frequency-info -g

# Change frequency governor to POWERSAVE (eg).
cpupower -c all frequency-set -g powersave
```

## Example

Watch cpu frequency.
```sh
watch -n1 "cpupower -c all frequency-info -f -m | xargs -n2 -d'\n'"
```