我因工作需要管理以下服务器(但不限于):
Coffee Lake: E-2146G, E-2276G, E-2286G, E-2146G, E-2276G
Kaby Lake: E3-1230 v6, E3-1230 v6
Haswell: E3-1231 v3
我参考了英特尔手册来检查可以使用哪个 MSR 来检查给定服务器是否启用了睿频加速功能:
英特尔® 64 和 IA-32 架构软件开发人员手册合并卷:1、2A、2B、2C、2D、3A、3B、3C、3D 和 4 https://cdrdv2.intel.com/v1/dl/getContent/671200 https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html(如果下载链接无效请使用此链接)
以下终端输出来自使用 E3-1230 v6 @ 3.50GHz(Kaby Lake)CPU 的服务器。
root@dse-seo-001:~> rdmsr -a 0x1A0 -f 38:38
0
0
0
0
0
0
0
0
root@dse-seo-001:~> turbostat -c 0-7 --quiet -i 1
Core CPU Avg_MHz Busy% Bzy_MHz TSC_MHz IPC IRQ SMI POLL C1 POLL% C1% CPU%c1 CPU%c3 CPU%c6 CPU%c7 CoreTmp PkgTmp Totl%C0 Any%C0 GFX%C0 CPUGFX% SYS%LPI PkgWatt CorWatt GFXWatt RAMWatt PKG_% RAM_%
- - 84 2.39 3500 3504 3.18 632 0 7 667 0.02 97.62 97.61 0.00 0.00 0.00 32 32 19.13 18.44 0.00 0.00 0.00 7.81 4.94 0.00 1.75 0.00 0.00
0 0 4 0.11 3500 3504 0.56 25 0 0 38 0.00 99.89 99.89 0.00 0.00 0.00 32 32 19.13 18.44 0.00 0.00 0.00 7.81 4.94 0.00 1.75 0.00 0.00
0 4 10 0.29 3500 3504 0.80 71 0 0 87 0.00 99.72 99.71
1 1 7 0.19 3500 3504 0.70 44 0 1 61 0.03 99.81 99.81 0.00 0.00 0.00 32
1 5 6 0.17 3500 3504 0.52 81 0 1 105 0.03 99.84 99.83
2 2 8 0.21 3500 3504 0.70 187 0 2 195 0.03 99.80 99.79 0.00 0.00 0.00 30
2 6 3 0.07 3500 3504 0.39 28 0 1 38 0.03 99.93 99.93
3 3 5 0.15 3500 3504 0.50 89 0 1 100 0.03 99.85 99.85 0.00 0.00 0.00 32
3 7 628 17.93 3500 3504 3.35 107 0 1 43 0.03 82.07 82.07
root@dse-seo-001:~> lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 39 bits physical, 48 bits virtual
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 158
Model name: Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz
Stepping: 9
CPU MHz: 3500.000
CPU max MHz: 3500.0000
CPU min MHz: 800.0000
BogoMIPS: 6999.82
Virtualization: VT-x
L1d cache: 128 KiB
L1i cache: 128 KiB
L2 cache: 1 MiB
L3 cache: 8 MiB
NUMA node0 CPU(s): 0-7
Vulnerability Gather data sampling: Mitigation; Microcode
Vulnerability Itlb multihit: KVM: Mitigation: VMX disabled
Vulnerability L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown: Mitigation; PTI
Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed: Mitigation; IBRS
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; IBRS, IBPB conditional, STIBP conditional, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds: Mitigation; Microcode
Vulnerability Tsx async abort: Mitigation; TSX disabled
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 n
opl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f
16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rds
eed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
然而,根据turbostat
的阅读和我的 CPU 的基本频率 3.50GHz,似乎没有启用睿频加速。
但是当我输入时rdmsr -a 0x1A0 -f 38:38
,它会给我所有核心的输出 0,这意味着涡轮增压实际上已启用。
我在这里使用了错误的寄存器来读取涡轮增压开/关状态吗?
我也尝试过,MSR_TURBO_RATIO_LIMIT
因为这个 CPU 是 Kaby Lake 一代,但我如何使用涡轮增压比限制来确定涡轮增压是否启用?
root@dse-seo-001:~> rdmsr -a 0x1AD
25262627
25262627
25262627
25262627
25262627
25262627
25262627
25262627