From 3b226d19bb19a87eb565f3e1d16e14f446b56e76 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 27 Aug 2024 22:25:00 +0000 Subject: deploy: 9b47b98b7c5efce0bf50d57aa5d7e374bcbabf23 --- linux/cpufreq.html | 252 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 linux/cpufreq.html (limited to 'linux/cpufreq.html') diff --git a/linux/cpufreq.html b/linux/cpufreq.html new file mode 100644 index 0000000..bc4049c --- /dev/null +++ b/linux/cpufreq.html @@ -0,0 +1,252 @@ + + + + + + cpufreq - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
+

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.

+
watch -n1 "cpupower -c all frequency-info -f -m | xargs -n2 -d'\n'"
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + +
+ + -- cgit v1.2.3