Linux

E3-1240 v5 cpufreq-info 說:“此 CPU 上沒有或未知的 cpufreq 驅動程序處於活動狀態”

  • July 29, 2019

我們剛剛獲得了一台配備 E3-1240 v5 CPU 的戴爾伺服器 (PowerEdge R330):

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 94
model name      : Intel(R) Xeon(R) CPU E3-1240 v5 @ 3.50GHz
stepping        : 3
microcode       : 0x9e
cpu MHz         : 3502.916
cache size      : 8192 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
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 arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt
bogomips        : 7005.83
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

有四個這樣的核心。該機器執行的是執行預設 Linux 核心的 Debian 8。

我們的內部工具之一需要檢查/設置 CPU 調控器,通常位於:/sys/devices/system/cpu/cpu<N>/cpufreq/scaling_governor,其中<N>是核心編號。但是這些文件不存在。

查看 cpufreq 資訊:

$ cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
 no or unknown cpufreq driver is active on this CPU
 maximum transition latency: 4294.55 ms.
analyzing CPU 1:
 no or unknown cpufreq driver is active on this CPU
 maximum transition latency: 4294.55 ms.
analyzing CPU 2:
 no or unknown cpufreq driver is active on this CPU
 maximum transition latency: 4294.55 ms.
analyzing CPU 3:
 no or unknown cpufreq driver is active on this CPU
 maximum transition latency: 4294.55 ms.

Linux真的不支持這台機器上的頻率縮放,還是我需要安裝一些東西?我需要在 BIOS 中進行一些設置嗎?cpufreq 通常開箱即用。

謝謝

現代英特爾處理器使用 P 狀態進行 CPU 頻率控制。當 Linux 使用此驅動程序時,它將是可見的:

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
intel_pstate

Debian 3.16 核心足夠新並且實際上有intel_pstate驅動程序,所以它應該可以工作。我的第一個懷疑是 BIOS 設置。不幸的是,戴爾似乎沒有很好地記錄這些設置,所以我可以告訴你最有可能的地方是在BIOS 中的系統配置文件設置下,但我手頭沒有這些伺服器之一,所以我不能說究竟哪個選項可以解決問題。

引用自:https://serverfault.com/questions/816888