meta data for this page
  •  

Differences

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

Link to this comparison view

linux:cpufreq:cpufrequtils [2025/12/11 07:49] – created niziaklinux:cpufreq:cpufrequtils [2025/12/11 07:49] (current) niziak
Line 2: Line 2:
  
 Deprecated in D13 Trixie. Use ''linux-cpupower'' instead. Deprecated in D13 Trixie. Use ''linux-cpupower'' instead.
 +
 +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>
 +