我的 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 冷却问题,即使笔记本电脑外壳尚未变热,也可能发生这种情况。因此请检查传感器。
一个严重的问题,需要送到修理店。