[轉帖]CPUpower的處理

用cpupower工具修改,但是在修改過程中會遇到ERROR:

[root@wyx~]# cpupower frequency-set -f 1.6G
Setting cpu: 0
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency

or because the userspace governor isn't loaded?

解決方法:

1. 在/etc/default/grub中加入 GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable"

2. 命令行輸入:

grub2-mkconfig -o /boot/grub2/grub.cfg

或者 grub-mkconfig -o /boot/grub/grub.cfg

3. 重啓機器 reboot(有些機器需要在bios裏關掉超線程以及Pstate,Cstate,有些不用,可以試一試。)

4. 重啓後輸入命令:
cpupower frequency-info --governors
cpupower frequency-set -g conservative

5. 可以用cpupower的命令修改頻率了

cpupower frequency-set -f 1.6G

修改完成。
————————————————

版權聲明:本文爲博主原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。

原文鏈接:https://blog.csdn.net/ConnieWu/article/details/80564259

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章