¶cpufreq-set
¶参考
- 使用cpufreq给CPU临时调整主频。http://www.kwx.gd/CentOSApp/CentOS-Cpufreq-Set.html
¶cpufreq-selector
¶参考
- cpufreq-selector的安装。https://bytefreaks.net/tag/cpufreq-selector
- ubuntu系统更改CPU频率。 https://www.zhukun.net/archives/7572
- cpufreq-selector参数。http://manpages.ubuntu.com/manpages/bionic/man1/cpufreq-selector.1.html
¶注意
并不是所有的系统都可以任意调整CPU频率,也就是userspace模式。
This is because your system is using the new driver called intel_pstate. There are only two governors available when using this driver:
powersave
andperformance
.
Theuserspace
governor is only available with the olderacpi-cpufreq
driver (which will be automatically used if you disableintel_pstate
at boot time; you then set the governor/frequency withcpupower
):
- disable the current driver: add
intel_pstate=disable
to your kernel boot line- boot, then load the
userspace
module:modprobe cpufreq_userspace
- set the governor:
cpupower frequency-set --governor userspace
- set the frequency:
cpupower --cpu all frequency-set --freq 800MHz