黑群晖918+ CPU不自动变频

硬件配置:

  • CPU:i3-8100
  • 主板:昂达B365SD4-ITX
  • 内存:12G

系统版本:918+ 7.1.1-42962

安装黑群晖系统后,发现CPU一直处于最高频率在运行,不会自动变频,并且available cpufreq governors只有powersave,performance, userspace这三个,而不通常的performance 、power save 、userspace、conservative 和 ondemand 五种。

偶然的机会在CPU Frequency scaling for DS918+ - Software Modding - XPEnology Community看到了解决方案。

项目地址:https://github.com/Trauma/cpufreq-userspace-scaler

cpufreq-userspace-scaler

Cpu frequency scaling script for cpufreq userspace governor

If you’re missing ondemand or conservative governors, this script is for you.

This script is scaling cpu frequency according to current average load. You can set 2 frequency steps : low, mid. This 2 thresholds will automatically set cpu frequency accordingly :

  • the threshold will set the cpu to his minimal frequency, unless you force it to lowload scalingminfreq
  • the threshold will set the cpu to approximate mid range cpu frequency, if load goes higher it will scale to max midload scalingmaxfreq

If you set and/or the cpu will never override those values.scalingmaxfreq scalingminfreq

Usage :

Parameters :

Variable name Default Type Comments
lowload auto / 30% integer between 000 and 999 050 = load average : 0.50
midload auto / 60% integer between 000 and 999 065 = load average : 0.65
scalingminfreq auto integer in hertz 800000 = 800 Mhz
scalingmaxfreq auto integer in hertz 2500000 = 2,5 Ghz

Default commande line :

1
>./scaling.sh &

Custom command line example :

1
>lowload=100 midload=200 scalingmaxfreq=2000000 scalingminfreq=1500000 ./scaling.sh &

Systemd service installer

for DSM 7.0 and above

  1. If needed, set desired lowload and midload values in cpufreq-userspace-scaler.service
  2. Launch the installer ./install.sh

使用方法:

1、将上述项目中的三个文件下载到群晖里

2、SSH登录到服务器

3、执行./install.sh


黑群晖918+ CPU不自动变频
http://www.okko.tk/2023/05/30/黑群晖CPU不自动变频/
作者
ZhJy
发布于
2023年5月30日
许可协议