Linux系统 如何设置进入省电模式,降低功耗

我自己亲测:12700 cpu 自组的nas,CPU实际功耗30瓦,设置节能模式后CPU实际功耗10瓦左右

因为本身linux系统模式是性能模式,大概率CPU频率是跑在最大频率上的

原理很简单,windows笔记本都会有省电模式、性能模式

linux同样也有省电模式和性能模式的调整,linux 内核文档中就有相关的内容

只不过想方便配置的话需要安装一个软件: cpupower

PVE Debian 下安装和使用

apt install linux-cpupower
#可用的模式
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

#设置到性能模式
cpupower -c all frequency-set -g performance

#查看当前所处模式
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

#设置到省电模式
cpupower -c all frequency-set -g powersave

 

赞 (1)

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址