meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:cpufreq [2016/11/14 13:04] – created niziak | linux:cpufreq [2024/07/14 21:37] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== cpufreq ====== | ||
+ | |||
+ | ===== sys interface ===== | ||
+ | <code bash> | ||
+ | ls -l / | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:18 affected_cpus | ||
+ | -r--r--r-- 1 root root 4096 lis 14 13:08 bios_limit | ||
+ | -rw-r--r-- 1 root root 4096 lis 14 13:08 cpb | ||
+ | -r-------- 1 root root 4096 lis 14 12:46 cpuinfo_cur_freq | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:18 cpuinfo_max_freq | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:18 cpuinfo_min_freq | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:46 cpuinfo_transition_latency | ||
+ | -r--r--r-- 1 root root 4096 lis 14 13:08 freqdomain_cpus | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:46 related_cpus | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:18 scaling_available_frequencies | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:18 scaling_available_governors | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:46 scaling_cur_freq | ||
+ | -r--r--r-- 1 root root 4096 lis 14 12:46 scaling_driver | ||
+ | -rw-r--r-- 1 root root 4096 lis 14 12:19 scaling_governor | ||
+ | -rw-r--r-- 1 root root 4096 lis 14 12:47 scaling_max_freq | ||
+ | -rw-r--r-- 1 root root 4096 lis 14 12:47 scaling_min_freq | ||
+ | -rw-r--r-- 1 root root 4096 lis 14 13:08 scaling_setspeed | ||
+ | drwxr-xr-x 2 root root 0 lis 14 12:20 stats | ||
+ | </ | ||
+ | |||
+ | List current governors: | ||
+ | <code bash> | ||
+ | cat / | ||
+ | </ | ||
+ | |||
< | < | ||
- | | + | cpufreqd.service |
- | cpufrequtils.service | + | cpufrequtils.service |
- | loadcpufreq.service | + | loadcpufreq.service |
</ | </ | ||
Line 20: | Line 50: | ||
===== cpufrequtils ====== | ===== cpufrequtils ====== | ||
It provides: | It provides: | ||
- | < | + | * ''/ |
- | cpufreq-set | + | * ''/ |
- | cpufreq-info | + | * '' |
- | cpufreq-aperf | + | * '' |
- | </ | + | * '' |
'' | '' | ||
utilities to deal with the cpufreq Linux kernel feature | utilities to deal with the cpufreq Linux kernel feature | ||
Line 35: | Line 66: | ||
'' | '' | ||
< | < | ||
+ | |||
+ | ==== change governor for all cpus ==== | ||
+ | |||
+ | <code bash> | ||
+ | for ((i=0; | ||
+ | </ | ||
+ | |||
+ | Ansible one liner: | ||
+ | <code bash> | ||
+ | (cd .. && ansible pves -i $INVENTORY -a "bash -c 'for ((i=0; | ||
+ | </ | ||
+ | |||