Ubuntu下自定義調整CPU工作頻率(用於省電或提高性能都好用)


昨天高鐵上拿T480切win10系統看電影,為了節電給細調了個省電策略(設置CPU性能30%),不知是不是因為這個原因,今天切回Ubuntu1604工作導致CPU工作頻率非常低。

查閱了一下相關方法,cpufreq工具還是很好用的!

安裝:sudo apt-get install cpufreq

顯示當前CPU核心信息:cpufreq-info

然后會列出當前電腦的核心數及具體的信息,主要有下面幾條:

analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 4294.55 ms.
hardware limits: 400 MHz - 4.00 GHz 單核工作頻率范圍
available cpufreq governors: performance, powersave Ubuntu下兩種不同的默認工作模式:性能/省電
current policy: frequency should be within 400 MHz and 4.00 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 400 MHz.

設置CPU工作模式:

sudo cpufreq-set -g performance // 通電下當然進入性能模式

自定義CPU頻率

sudo cpufreq-set -d 1800m -u 2700m // 適用模式:powersave|ondemand|conservative|performance

sudo cpufreq-set -f {1800m~2700m} // 適用模式:userspace


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM