Power management¶
For AMD Zen 2 or newer (not working)¶
add "amd_pstate=active" to "/etc/kernel/cmdline"
root=ZFS=rpool/ROOT/pve-1 boot=zfs amd_pstate=passive
Rebuild RAMDISK
proxmox-boot-tool refresh
CPU power throttle¶
Check CPU frequency¶
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
Change CPU governor¶
Check current governors (per CPU)
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Check available governors
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
Set governor
echo "conservative" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Set it at boot¶
apt install cpufrequtils
Edit (create) /etc/default/cpufrequtils
GOVERNOR="conservative"
Disks sleep timeout¶
hdparm -s X /dev/disk/by-id/xxxxxxx
Set the standby (spindown) timeout for the drive. The timeout specifies how long to wait in idle (with no disk activity) before turning off the motor to save power. The value of 0 disables spindown, the values from 1 to 240 specify multiples of 5 seconds and values from 241 to 251 specify multiples of 30 minutes. (ref : https://wiki.archlinux.org/index.php/Hdparm#Power_management_configuration)
Set at boot
Edit /etc/hdparm.conf
/dev/disk/by-id/ata-WDC_XXXXXXXX { spindown_time = 120 }