proxmox ve省电小技巧

canoziia
2023-01-15 / 0 评论 / 1,998 阅读 / 正在检测是否收录...

不一定靠谱,目前刚刚开始试验,可能有性能问题
参考:

  1. https://forum.proxmox.com/threads/fix-always-high-cpu-frequency-in-proxmox-host.84270/#post-373393
  2. https://www.reddit.com/r/homelab/comments/bltm26/proxmox_power_usagemanagement_still_no_cpu_scaling

除了在BIOS中设置tdp外,pve默认的性能策略不一定靠谱。例如我的至强E-2286M,pve的默认策略是性能模式,即使没有任何虚拟机,cpu也以全核最高频率运行。

# 查看cpu频率,耗电等信息
apt install powertop
powertop

# 查看当前电源策略
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
# performance

# 查看可用的电源策略
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# performance powersave

apt install cpufrequtils
cat << 'EOF' > /etc/default/cpufrequtils
GOVERNOR="powersave"
EOF

有的cpu应该支持更多模式,我自己测试E-2286M的powersave模式可以动态调节频率,平均下来省了15W左右耗电。

不知道为啥E-2286M带两块SN640,一块PE6110,一块970pro,一个tesla p4在空载就有43W。虚拟机都运行的时候原先平均73W,现在降到58W。

性能测试

虚拟机,windows 6核6G,cpu-z version 17.01.64,powersave
单核449,多核2708,测试前58W,测试后136W
虚拟机,windows 6核6G,cpu-z version 17.01.64,performance
单核455,多核2748,测试前73W,测试后134W

可见几乎无性能差异

1

评论 (0)

取消