cpufrequtils

Deprecated in D13 Trixie. Use linux-cpupower instead.

It provides:

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.

/etc/default/cpufrequtils

change governor for all cpus

for ((i=0;i<$(nproc);i++)); do cpufreq-set -c $i -r -g powersave; done

Ansible one liner:

(cd .. && ansible pves -i $INVENTORY -a "bash -c 'for ((i=0;i<\$(nproc);i++)); do cpufreq-set -c \$i -r -g powersave; done'" --become)