Cpu

如何在 SLES12 上將 cpu 頻率設置為最大值?

  • October 22, 2018

我試過:

cpupower frequency-set -g performance

但是,頻率仍然只有 1200 MHz。

只有當我在機器上傳入負載時它才會上升,但它應該始終以 100% 的 cpu 頻率執行。

使用 SLES 12.2。

SERVER:~ # cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.4.121-92.80-default root=/dev/mapper/vg00-lv_root splash=silent quiet showopts console=tty0 console=ttyS0,9600 elevator=noop transparent_hugepage=never crashkernel=768M numa_balancing=disable intel_idle.max_cstate=1
SERVER:~ #

我錯過了什麼?

如果可能是某些 UEFI 設置,是否有任何命令,例如:asu64 無需重啟即可更新 UEFI 設置?

機器是“x3850 X6”,CPU 是:“Xeon(R) CPU E7-8880 v4 @ 2.20GHz”。

更新#1:找到了一些東西,也許是:

SERVER:~ # systemctl start cpupower
Failed to start cpupower.service: Unit cpupower.service failed to load: No such file or directory.
SERVER:~ # echo $?
5
SERVER:~ #
SERVER:~ # systemctl status cpupower
? cpupower.service
  Loaded: not-found (Reason: No such file or directory)
  Active: inactive (dead)
SERVER:~ #

更新#1 的更新:我遵循了https://www.suse.com/support/kb/doc/?id=7021316但沒有幫助。

**更新#2:**嘗試設置頻率但沒有幫助。

SERVER:~ # lscpu | awk '/Model name:/{print $NF}'
2.20GHz
SERVER:~ # cpupower frequency-set -u 2.20GHz
...
SERVER:~ # cpupower frequency-set -u 2.2GHz
...
SERVER:~ # lscpu |egrep  "CPU MHz|CPU(s)" | awk '{print $3}' | awk -F "." '{print $1}'
1200
SERVER:~ #

我想這就是你要找的:

cpupower idle-set -D 0

引用自:https://unix.stackexchange.com/questions/459802