我最近注意到我的一台 Ubuntu 笔记本电脑开始运行非常慢。在此处搜索用于检查 CPU 状态的工具并与另一台具有相同版本的 PC 进行比较后,我可以看到速度较慢的笔记本电脑仅以最低 CPU 速度运行。
当我去的时候,我Settings -> Power
只看到没有模式。运行相同 Ubuntu 的其他 PC 显示一种模式。任何想法为什么它不见了?Balanced
Power Saver
Performance
Performance
power-profiles-daemon
已安装并正在运行/活动。
我安装cpufrequtils
并运行cpufreq-info
我可以看到所有线程都在使用调速器ondemand
但始终以 798 MHz(CPU 最低 = 800 Mhz)运行,无论Balanced
or的电源设置如何Power Saver
:
analyzing CPU 7:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 7
CPUs which need to have their frequency coordinated by software: 7
maximum transition latency: 20.0 us.
hardware limits: 800 MHz - 3.50 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
current policy: frequency should be within 800 MHz and 3.50 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 798 MHz.
此外,当我运行sudo cpufreq-set -r -g performance
以将所有核心设置为performance
调速器时,它对上述结果没有影响。
笔记本电脑是 HP Omen 15-5000na Intel Core i7-4710HQ @ 2.50Ghz x 8 运行 Ubuntu 22.04.1 LTS 这台笔记本电脑过去一直运行 BIOS 版本F.40
没有问题。有较新的 BIOS ( F.48 Rev.A
),但 HP 仅提供 Windows .exe
编辑 1:
下面建议的命令确实对它现在所说echo performance...
的输出进行了更改,但 CPU 频率仍始终设置为最低。并且建议显示所有线程,直到它显示所有线程。cpufreq-info
The governor "performance" may decide which speed to use
grep
ondemand
echo performance
performance
结果sudo turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,CorWatt --interval 5
:
turbostat version 21.05.04 - Len Brown <[email protected]>
CPUID(0): GenuineIntel 0xd CPUID levels
CPUID(1): family:model:stepping 0x6:3c:3 (6:60:3) microcode 0x28
CPUID(0x80000000): max_extended_levels: 0x80000008
CPUID(1): SSE3 MONITOR - EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, No-HWP, No-HWPnotify, No-HWPwindow, No-HWPepp, No-HWPpkg, EPB
cpu2: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): No-SGX
cpu2: MSR_MISC_PWR_MGMT: 0x00400000 (ENable-EIST_Coordination DISable-EPB DISable-OOB)
RAPL: 5578 sec. Joule Counter Range, at 47 Watts
cpu2: MSR_PLATFORM_INFO: 0x80838f3011900
8 * 100.0 = 800.0 MHz max efficiency frequency
25 * 100.0 = 2500.0 MHz base frequency
cpu2: MSR_IA32_POWER_CTL: 0x0004005d (C1E auto-promotion: DISabled)
cpu2: MSR_TURBO_RATIO_LIMIT: 0x21212223
33 * 100.0 = 3300.0 MHz max turbo 4 active cores
33 * 100.0 = 3300.0 MHz max turbo 3 active cores
34 * 100.0 = 3400.0 MHz max turbo 2 active cores
35 * 100.0 = 3500.0 MHz max turbo 1 active cores
cpu2: MSR_CONFIG_TDP_NOMINAL: 0x00000019 (base_ratio=25)
cpu2: MSR_CONFIG_TDP_LEVEL_1: 0x00000000 ()
cpu2: MSR_CONFIG_TDP_LEVEL_2: 0x00000000 ()
cpu2: MSR_CONFIG_TDP_CONTROL: 0x80000000 ( lock=1)
cpu2: MSR_TURBO_ACTIVATION_RATIO: 0x00000000 (MAX_NON_TURBO_RATIO=0 lock=0)
cpu2: MSR_PKG_CST_CONFIG_CONTROL: 0x1e008405 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, locked, pkg-cstate-limit=5 (pc7s))
/dev/cpu_dma_latency: 2000000000 usec (default)
current_driver: intel_idle
current_governor: menu
current_governor_ro: menu
cpu2: POLL: CPUIDLE CORE POLL IDLE
cpu2: C1: MWAIT 0x00
cpu2: C1E: MWAIT 0x01
cpu2: C3: MWAIT 0x10
cpu2: C6: MWAIT 0x20
cpu2: C7s: MWAIT 0x32
cpu2: cpufreq driver: intel_cpufreq
cpu2: cpufreq governor: performance
cpufreq intel_pstate no_turbo: 0
cpu2: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-pair L1-Prefetch L1-IP-Prefetch)
cpu0: EPB: 4 (custom)
cpu0: MSR_CORE_PERF_LIMIT_REASONS, 0x3d210001 (Active: PROCHOT, ) (Logged: Transitions, MultiCoreTurbo, PkgPwrL2, PkgPwrL1, Amps, Auto-HWP, PROCHOT, )
cpu0: MSR_GFX_PERF_LIMIT_REASONS, 0x0c010000 (Active: ) (Logged: PROCHOT, PkgPwrL1, PkgPwrL2, )
cpu0: MSR_RING_PERF_LIMIT_REASONS, 0x09010000 (Active: ) (Logged: PROCHOT, Amps, PkgPwrL2, )
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000178 (47 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x804281d600dc8178 (locked)
cpu0: PKG Limit #1: ENabled (47.000000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: ENabled (58.750000 Watts, 0.002441* sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 0
cpu0: MSR_PP0_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: Cores Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: GFX Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x04641000 (100 C)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x8827080c (61 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu2: MSR_PKGC3_IRTL: 0x00008842 (valid, 67584 ns)
cpu2: MSR_PKGC6_IRTL: 0x0000886a (valid, 108544 ns)
cpu2: MSR_PKGC7_IRTL: 0x00008891 (valid, 148480 ns)
Busy% Bzy_MHz IRQ PkgTmp PkgWatt CorWatt GFXWatt
29.84 800 17045 60 12.01 2.78 0.49
23.35 800 11239 62 11.89 2.54 0.43
33.84 800 18221 61 12.51 3.07 0.72
28.59 800 13540 61 12.39 2.80 0.82
29.03 800 16247 60 12.15 2.85 0.62
18.48 800 12915 58 11.90 1.77 1.44
编辑 2/更新/解决:
下面关于PROCHOT
我的硬件设置标志的答案确实是 CPU 节流的原因。所以标记为正确。非常感谢。
至于为什么硬件设置了标志 - 多一点信息以防它在未来帮助其他人,因为我做了下面的两件事,到目前为止没有更多的 PROCHOT。所以下面的事情之一似乎可以解决问题我只是不确定是哪个:
(1) 我打开机箱检查风扇并清除灰尘。两个风扇工作正常,有些灰尘,但不是太多。我还把笔记本电脑放在某个东西上,让它坐得更高,希望能改善下面的气流,因为那里是进气口。
(2) 我的笔记本电脑电池在一年多前就没电了,从那时起,Ubuntu 电源统计甚至没有显示电池存在。但是当我将它用作 AC 上的桌面时,这不是问题,并且直到最近才出现减速。但是,我看到一些帖子有人说电池故障/故障有时会导致PROCHOT
,所以我想我实际上应该从笔记本电脑中取出电池。
--quiet
当未指定命令行参数时,性能限制(节流)原因列在 turbostat 启动大量信息中。所以与这个问题相关的行是:最相关的部分
Active: PROCHOT
表明PROCHOT
在采样时处理器外部位处于活动状态,这也是处理器 CPU 时钟频率被限制为最低的原因。该
PROCHOT
位的实现以及断言它的内容取决于硬件。同样有趣的是,两个功率限制位都显示为已记录,但当前未激活,并且对于最低 CPU 时钟频率,处理器温度似乎有点高。