我的具有自訂核心配置的 Linux 電腦似乎很慢。即使make menuconfig
是 Linux 核心也很慢,我可以看到選單的重繪。當我運行時cpupower frequency-info
,頻率低於 150 MHz。但該 CPU 的最低頻率為 500 MHz。這是 Intel® Pentium® 四核心處理器 N3540(高達 2.66 GHz)。我從來沒有見過這樣的事情。
為什麼頻率這麼低?自啟動以來我沒有觸及 cpu-freq 配置。電腦從睡眠模式恢復到 RAM。
我可以手動設定頻率,但它固定在(大約)64 MHz。
$ LANG= cpupower frequency-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: Cannot determine or is not supported.
hardware limits: 500 MHz - 2.67 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 500 MHz and 1.07 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 129 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
lscpu
當計算機正常時創建輸出。
$ LANG= lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 36 bits physical, 48 bits virtual
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 55
Model name: Intel(R) Pentium(R) CPU N3540 @ 2.16GHz
Stepping: 8
CPU MHz: 618.821
CPU max MHz: 2665.6001
CPU min MHz: 499.8000
BogoMIPS: 4331.60
Virtualization: VT-x
L1d cache: 24K
L1i cache: 32K
L2 cache: 1024K
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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat
答案1
CPU 頻率可能會超出限制,因為如果負載夠輕,無論參數為何,處理器本身都會減慢速度。
您只需要擔心有實際工作要做時 CPU 頻率是否不會很快上升。但如果沒有,以下是一些可能性:
電池問題,當電池電量非常低且無法充電時。
一般作業系統混亂可以透過拔下電源線並重新插入(或重新啟動)來解決。
CPU 冷卻問題,即使筆記型電腦外殼甚至不熱,也可能會發生這種情況。所以檢查感測器。
嚴重問題需要修理廠。