meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:cpufreq [2024/07/14 21:37] niziaklinux:cpufreq [2025/12/11 07:49] (current) niziak
Line 48: Line 48:
 </code> </code>
  
-===== cpufrequtils ====== 
-It provides: 
-  * ''/etc/init.d/cpufrequtils''  - disabled by default (no file ``/etc/default/cpufrequtils``) 
-  * ''/etc/init.d/loadcpufreq''   - loads kernel modules 
-  * ''cpufreq-set'' 
-  * ''cpufreq-info'' 
-  * ''cpufreq-aperf'' 
- 
-'' 
-utilities to deal with the cpufreq Linux kernel feature 
- This package contains two utilities for inspecting and setting the 
- CPU frequency through both the sysfs and procfs CPUFreq kernel 
- interfaces. 
- . 
- By default, it also enables CPUFreq at boot time if the correct CPU 
- driver is found. 
-'' 
-<code>/etc/default/cpufrequtils</code> 
- 
-==== change governor for all cpus ==== 
- 
-<code bash> 
-for ((i=0;i<$(nproc);i++)); do cpufreq-set -c $i -r -g powersave; done 
-</code> 
- 
-Ansible one liner: 
-<code bash> 
-(cd .. && ansible pves -i $INVENTORY -a "bash -c 'for ((i=0;i<\$(nproc);i++)); do cpufreq-set -c \$i -r -g powersave; done'" --become) 
-</code>