cpupower频率设置不起作用

cpupower频率设置不起作用

所以我有一台双 Intel Silver 4116 CPU 服务器,它会将 MHz 随机设置为 132,此后服务器将变得无法使用。即使重新启动也无法恢复 MHz,只有开车到数据中心并关闭服务器电源 10 秒左右才能恢复到 800 MHz(空闲时钟速度)。

我有:

  • 禁用 intel_pstate 驱动程序并验证 acpi-cpufreq 正在运行
  • 将调控器设置为性能或用户空间
  • 手动设置频率
roderick@super:~$ cpupower frequency-info
analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 10.0 us
    hardware limits: 800 MHz - 2.10 GHz
    available frequency steps:  2.10 GHz, 2.10 GHz, 2.00 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 800 MHz
    available cpufreq governors: conservative ondemand userspace powersave performance schedutil
    current policy: frequency should be within 1.80 GHz and 1.80 GHz.
                    The governor "userspace" may decide which speed to use
                    within this range.
    current CPU frequency: Unable to call hardware
    current CPU frequency: 136 MHz (asserted by call to kernel)
    boost state support:
    Supported: yes
    Active: yes

roderick@super:~$ lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              48
On-line CPU(s) list: 0-47
Thread(s) per core:  2
Core(s) per socket:  12
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz
Stepping:            4
CPU MHz:             132.425
CPU max MHz:         2101.0000
CPU min MHz:         800.0000
BogoMIPS:            4200.00
Virtualisation:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            16896K
NUMA node0 CPU(s):   0-11,24-35
NUMA node1 CPU(s):   12-23,36-47
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req pku ospke

我很困惑CPU MHZ怎么会像这样下降,它不是过热或过度使用我正在记录温度和利用率。

在性能或用户空间调控器下设置频率没有任何效果。

roderick@super:~$ sudo cpupower --cpu all frequency-set --freq 800MHz
Setting cpu: 0
Setting cpu: 1
... omitted for clarity
Setting cpu: 46
Setting cpu: 47

(回应评论)

  • 该服务器已有大约 6 个月的历史,位于数据中心,我不知道如何升级 BIOS/如果有可用更新/如何进行(欢迎访问和尝试)。
  • 看来我正在运行最新的微代码
roderick@super:~$ dmesg | grep microcode
[    0.000000] microcode: microcode updated early to revision 0x200004d, date = 2018-05-15
[  141.175011] microcode: sig=0x50654, pf=0x1, revision=0x200004d
[  141.359854] microcode: Microcode Update Driver: v2.2.

roderick@super:~$ sudo apt-get install intel-microcode
[sudo] password for roderick: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
intel-microcode is already the newest version (3.20180807a.0ubuntu0.18.04.1).
  • 这种行为大约在一周前开始,它是一台 48 核计算机,以 80% 的容量连续运行 48 小时,连续 6 个月没有出现任何问题。但现在我将其容量提高到大约 20%,时钟频率从 800-2100 MHz 下降到 132 MHz。如果我重新启动它并让它闲置,那就没问题,但是当我在上面运行机器学习的东西时,它就会下降。

相关内容