i9-11900k 视频工作正常,CPU 调速器异常,Z590 主板 Ubuntu 20.04 oem 内核

i9-11900k 视频工作正常,CPU 调速器异常,Z590 主板 Ubuntu 20.04 oem 内核

在此处的帮助下解决了我的图形问题后:新华硕 Z590 主板上显示空白(无信号)

并在这里帮助别人:使用 Rocket Lake 的 Ubuntu 21.04 中未声明的显示

我的 11900k“powersave”调节器 (cpupower) 只允许最高 4.7ghz,这有点问题。如果我使用 cpupower-gui 手动将其更改为“性能”,我可以使用 s-tui 在重度 AVX 上将时钟频率提高到 5.3ghz 和 5.1,就像我的主板设置的那样。

有没有办法“修复”内置于此 OEM 内核中的省电调节器,以允许在省电模式下达到最大速度?因为在性能模式下,它不断加速到 5ghz 以上,并且运行温度稍高。我到处搜索微代码,但无济于事。我对修改内核一无所知。

旁注:我将在单独的线程中询问:iperf 显示我的 2.5gb NIC 仅以千兆速度运行,针对已知的 2.5gb 连接进行测试(可与其他 PC 全速运行)。

看起来我们需要一些来自英特尔的实际 Linux 驱动程序,这是怎么回事呢?

更新以添加 inxi 输出:

CPU: 8-Core 11th Gen Intel Core i9-11900K (-MT MCP-) 
speed/min/max: 3726/800/5300 MHz Kernel: 5.10.0-1023-oem x86_64 Up: 1h     
05m 
Mem: 1485.8/64079.5 MiB (2.3%) Storage: 11.94 TiB (12.7% used) Procs: 
369 
Shell: bash 5.0.17 inxi: 3.0.38 

^^^ 存储输出也很奇怪,只显示我的硬件 raid 阵列,而不是我的 3 个 NVMe 驱动器

更新:我安装了内核 5.12。起初我以为我无法启动它,直到我将其中一根显示器电缆移到我的独立 GPU 上。它在板载显卡上启动,然后只显示一个闪烁的光标,GPU 连接的显示器接管了单显示器桌面。CPU 调速器速度仍存在同样的问题,仍然没有 2.5G 以太网。

更新 2:根据 Doug Smythies 的要求,在 Grub 更改之前:

grep . /sys/devices/system/cpu/intel_pstate/*
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0
/sys/devices/system/cpu/intel_pstate/max_perf_pct:100
/sys/devices/system/cpu/intel_pstate/min_perf_pct:15
/sys/devices/system/cpu/intel_pstate/no_turbo:0
/sys/devices/system/cpu/intel_pstate/num_pstates:46 
/sys/devices/system/cpu/intel_pstate/status:active
/sys/devices/system/cpu/intel_pstate/turbo_pct:40

Grub 更改后:

chris@pc-01:~$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_m*
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu10/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu10/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu11/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu11/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu12/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu12/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu13/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu13/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu14/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu14/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu15/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu15/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq:5300000 
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu8/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu8/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq:5300000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_min_freq:800000

grub 更新后也是如此:

chris@pc-01:~$ grep . /sys/devices/system/cpu/intel_pstate/*
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0
/sys/devices/system/cpu/intel_pstate/max_perf_pct:100
/sys/devices/system/cpu/intel_pstate/min_perf_pct:15
/sys/devices/system/cpu/intel_pstate/no_turbo:0
/sys/devices/system/cpu/intel_pstate/num_pstates:46  
/sys/devices/system/cpu/intel_pstate/status:active
/sys/devices/system/cpu/intel_pstate/turbo_pct:40

s-tui 没有变化。我对 systemctl 做了一些操作,强制它启动到性能模式。我记得是按需禁用的。性能模式报告 5000mhz,根据我的 BIOS 设置,对于重度 AVX 来说是正确的,省电模式仍然为 4700mhz

cpupower frequency-info 的输出

chris@pc-01:~$ sudo 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: 800 MHz - 5.30 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 800 MHz and 5.30 GHz.
              The governor "powersave" may decide which speed to use
              within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 2.20 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes

Turbostat 输出:

chris@pc-01:~$ sudo turbostat --Summary --quiet --show 
Busy%   Bzy_MHz IRQ PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
0.37    5176    40647   32  21.14   0.01    0.00    0.00
0.37    5165    40647   33  21.26   0.01    0.00    0.00
0.37    5157    39663   32  21.19   0.01    0.00    0.00
0.36    5163    39501   33  21.27   0.01    0.00    0.00
0.37    5168    41354   32  21.17   0.01    0.00    0.00
0.38    5161    42241   32  21.37   0.01    0.00    0.00
0.39    5167    5869    33  21.51   0.01    0.00    0.00
chris@pc-01:~$ sudo turbostat --Summary --quiet --show
Busy%   Bzy_MHz IRQ PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
1.07    1393    42633   31  17.42   0.01    0.00    0.00
1.06    1435    43711   32  17.52   0.01    0.00    0.00
1.08    1397    41036   32  17.41   0.01    0.00    0.00
1.08    1389    41864   32  17.40   0.01    0.00    0.00
1.16    1390    19255   33  17.48   0.01    0.00    0.00

所以它闲置时耗电就超过 4 瓦。这不是什么大问题,但我还是想修好它。

另外,我的 turbo_pct 应该大约为 51 才是正确的。似乎找不到可以更改它的方法。也许内核将我的 CPU 视为非 K 版本?例如 11900 而不是 11900k,但当我检查 hwinfo 之类的东西时,它显示 11900k

Powersave 涡轮增压器无静音:

chris@pc-01:~$ sudo turbostat --Summary --show 
Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_% 
turbostat version 20.09.30 - Len Brown <[email protected]>
CPUID(0): GenuineIntel 0x1b CPUID levels; 0x80000008 xlevels;  
family:model:stepping 0x6:a7:1 (6:167:1)
CPUID(1): SSE3 MONITOR SMX EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, 
HWPpkg, EPB
cpu4: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): No-SGX
CPUID(0x15): eax_crystal: 2 ebx_tsc: 292 ecx_crystal_hz: 24000000
TSC: 3504 MHz (24000000 Hz * 292 / 2 / 1000000)
CPUID(0x16): base_mhz: 3500 max_mhz: 5300 bus_mhz: 100
cpu4: MSR_MISC_PWR_MGMT: 0x00401cc0 (ENable-EIST_Coordination DISable-
EPB DISable-OOB)
RAPL: 2097 sec. Joule Counter Range, at 125 Watts
cpu4: MSR_PLATFORM_INFO: 0x808083af1812300
8 * 100.0 = 800.0 MHz max efficiency frequency
35 * 100.0 = 3500.0 MHz base frequency
cpu4: MSR_IA32_POWER_CTL: 0x0034005d (C1E auto-promotion: DISabled)
cpu4: MSR_TURBO_RATIO_LIMIT: 0x3232323434353535
50 * 100.0 = 5000.0 MHz max turbo 8 active cores
50 * 100.0 = 5000.0 MHz max turbo 7 active cores
50 * 100.0 = 5000.0 MHz max turbo 6 active cores
52 * 100.0 = 5200.0 MHz max turbo 5 active cores
52 * 100.0 = 5200.0 MHz max turbo 4 active cores
53 * 100.0 = 5300.0 MHz max turbo 3 active cores
53 * 100.0 = 5300.0 MHz max turbo 2 active cores
53 * 100.0 = 5300.0 MHz max turbo 1 active cores
cpu4: MSR_CONFIG_TDP_NOMINAL: 0x00000023 (base_ratio=35)
cpu4: MSR_CONFIG_TDP_LEVEL_1: 0x001e02f8 (PKG_MIN_PWR_LVL1=0 
PKG_MAX_PWR_LVL1=0 LVL1_RATIO=30 PKG_TDP_LVL1=760)
cpu4: MSR_CONFIG_TDP_LEVEL_2: 0x00000000 ()
cpu4: MSR_CONFIG_TDP_CONTROL: 0x00000000 ( lock=0)
cpu4: MSR_TURBO_ACTIVATION_RATIO: 0x00000000 (MAX_NON_TURBO_RATIO=0 
lock=0)
cpu4: MSR_PKG_CST_CONFIG_CONTROL: 0x74000000 (UNdemote-C1, demote-C1, 
UNlocked, pkg-cstate-limit=0 (pc0))
/dev/cpu_dma_latency: 2000000000 usec (default)
current_driver: intel_idle
current_governor: menu
current_governor_ro: menu
cpu4: POLL: CPUIDLE CORE POLL IDLE
cpu4: C1ACPI: ACPI FFH MWAIT 0x0
cpu4: C2ACPI: ACPI FFH MWAIT 0x31
cpu4: C3ACPI: ACPI FFH MWAIT 0x60
cpu4: cpufreq driver: intel_pstate
cpu4: cpufreq governor: powersave
cpufreq intel_pstate no_turbo: 0
cpu4: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-
pair L1-Prefetch L1-IP-Prefetch)
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x010d2335 (high 53 guar 35 eff 13 low 1)
cpu0: MSR_HWP_REQUEST: 0x80003508 (min 8 max 53 des 0 epp 0x80 window 
0x0 
pkg 0x0)
cpu0: MSR_HWP_REQUEST_PKG: 0x8000ff01 (min 1 max 255 des 0 epp 0x80 
window 
0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000000 (Dis_Guaranteed_Perf_Change, 
Dis_Excursion_Min)
cpu0: MSR_HWP_STATUS: 0x00000004 (No-Guaranteed_Perf_Change, No-
Excursion_Min)
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 
Joules,   
0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x000003e8 (125 W TDP, RAPL 0 - 0 W, 
0.000000 
sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x42fff800e5fff8 (UNlocked)
cpu0: PKG Limit #1: ENabled (4095.000000 Watts, 448.000000 sec, clamp 
ENabled)
cpu0: PKG Limit #2: ENabled (4095.000000 Watts, 0.002441* sec, clamp 
DISabled)
cpu0: MSR_DRAM_POWER_LIMIT: 0x5400de00000000 (UNlocked)
cpu0: DRAM Limit: DISabled (0.000000 Watts, 0.000977 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)
cpu4: MSR_IA32_TEMPERATURE_TARGET: 0x00640000 (100 C) (100 default - 0   
offset)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x88450000 (31 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu4: MSR_PKGC3_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC6_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC7_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC8_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC9_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC10_IRTL: 0x00000000 (NOTvalid, 0 ns)
Busy%   Bzy_MHz IRQ PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
0.76    1268    6511    30  16.87   0.00    0.00    0.00
0.89    983 9705    31  17.39   0.03    0.00    0.00
0.43    851 7473    31  17.03   0.00    0.00    0.00
0.36    800 5721    30  16.85   0.00    0.00    0.00
0.33    800 5427    30  16.80   0.00    0.00    0.00
0.34    800 5414    31  16.77   0.00    0.00    0.00
0.46    800 5744    30  16.61   0.01    0.00    0.00
0.48    800 2881    31  16.68   0.00    0.00    0.00

性能涡轮增压器不安静

chris@pc-01:~$ sudo turbostat --Summary --show 
Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_% 
turbostat version 20.09.30 - Len Brown <[email protected]>
CPUID(0): GenuineIntel 0x1b CPUID levels; 0x80000008 xlevels; 
family:model:stepping 0x6:a7:1 (6:167:1)
CPUID(1): SSE3 MONITOR SMX EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, 
HWPpkg, EPB
cpu4: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): No-SGX
CPUID(0x15): eax_crystal: 2 ebx_tsc: 292 ecx_crystal_hz: 24000000
TSC: 3504 MHz (24000000 Hz * 292 / 2 / 1000000)
CPUID(0x16): base_mhz: 3500 max_mhz: 5300 bus_mhz: 100
cpu4: MSR_MISC_PWR_MGMT: 0x00401cc0 (ENable-EIST_Coordination DISable-
EPB DISable-OOB)
RAPL: 2097 sec. Joule Counter Range, at 125 Watts
cpu4: MSR_PLATFORM_INFO: 0x808083af1812300
8 * 100.0 = 800.0 MHz max efficiency frequency
35 * 100.0 = 3500.0 MHz base frequency
cpu4: MSR_IA32_POWER_CTL: 0x0034005d (C1E auto-promotion: DISabled)
cpu4: MSR_TURBO_RATIO_LIMIT: 0x3232323434353535
50 * 100.0 = 5000.0 MHz max turbo 8 active cores
50 * 100.0 = 5000.0 MHz max turbo 7 active cores
50 * 100.0 = 5000.0 MHz max turbo 6 active cores
52 * 100.0 = 5200.0 MHz max turbo 5 active cores
52 * 100.0 = 5200.0 MHz max turbo 4 active cores
53 * 100.0 = 5300.0 MHz max turbo 3 active cores
53 * 100.0 = 5300.0 MHz max turbo 2 active cores
53 * 100.0 = 5300.0 MHz max turbo 1 active cores
cpu4: MSR_CONFIG_TDP_NOMINAL: 0x00000023 (base_ratio=35)
cpu4: MSR_CONFIG_TDP_LEVEL_1: 0x001e02f8 (PKG_MIN_PWR_LVL1=0 
PKG_MAX_PWR_LVL1=0 LVL1_RATIO=30 PKG_TDP_LVL1=760)
cpu4: MSR_CONFIG_TDP_LEVEL_2: 0x00000000 ()
cpu4: MSR_CONFIG_TDP_CONTROL: 0x00000000 ( lock=0)
cpu4: MSR_TURBO_ACTIVATION_RATIO: 0x00000000 (MAX_NON_TURBO_RATIO=0 
lock=0)
cpu4: MSR_PKG_CST_CONFIG_CONTROL: 0x74000000 (UNdemote-C1, demote-C1, 
UNlocked, pkg-cstate-limit=0 (pc0))
/dev/cpu_dma_latency: 2000000000 usec (default)
current_driver: intel_idle
current_governor: menu
current_governor_ro: menu
cpu4: POLL: CPUIDLE CORE POLL IDLE
cpu4: C1ACPI: ACPI FFH MWAIT 0x0
cpu4: C2ACPI: ACPI FFH MWAIT 0x31
cpu4: C3ACPI: ACPI FFH MWAIT 0x60
cpu4: cpufreq driver: intel_pstate
cpu4: cpufreq governor: performance
cpufreq intel_pstate no_turbo: 0
cpu4: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-
pair L1-Prefetch L1-IP-Prefetch)
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x010d2335 (high 53 guar 35 eff 13 low 1)
cpu0: MSR_HWP_REQUEST: 0x00003535 (min 53 max 53 des 0 epp 0x0 window 
0x0 pkg 0x0)
cpu0: MSR_HWP_REQUEST_PKG: 0x8000ff01 (min 1 max 255 des 0 epp 0x80 
window 0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000000 (Dis_Guaranteed_Perf_Change, 
Dis_Excursion_Min)
cpu0: MSR_HWP_STATUS: 0x00000004 (No-Guaranteed_Perf_Change, No-
Excursion_Min)
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 
Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x000003e8 (125 W TDP, RAPL 0 - 0 W, 
0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x42fff800e5fff8 (UNlocked)
cpu0: PKG Limit #1: ENabled (4095.000000 Watts, 448.000000 sec, clamp 
ENabled)
cpu0: PKG Limit #2: ENabled (4095.000000 Watts, 0.002441* sec, clamp 
DISabled)
cpu0: MSR_DRAM_POWER_LIMIT: 0x5400de00000000 (UNlocked)
cpu0: DRAM Limit: DISabled (0.000000 Watts, 0.000977 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)
cpu4: MSR_IA32_TEMPERATURE_TARGET: 0x00640000 (100 C) (100 default - 0 
offset)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x88410000 (35 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu4: MSR_PKGC3_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC6_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC7_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC8_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC9_IRTL: 0x00000000 (NOTvalid, 0 ns)
cpu4: MSR_PKGC10_IRTL: 0x00000000 (NOTvalid, 0 ns)
Busy%   Bzy_MHz IRQ PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
0.10    5295    2016    32  19.00   0.00    0.00    0.00
0.10    5297    2001    31  19.00   0.00    0.00    0.00
0.09    5298    1944    31  18.93   0.00    0.00    0.00
0.09    5297    1913    31  18.95   0.00    0.00    0.00
0.09    5298    1907    32  18.88   0.00    0.00    0.00
0.10    5287    1778    31  19.18   0.00    0.00    0.00

结尾

答案1

请注意,使用性能调节器运行通常不会导致大量额外的处理器封装散热。是的,CPU 以更高的频率运行,并且在涡轮区域使用的能量是高度非线性的,但它们也能更快地完成工作,因此在深度空闲状态下花费更多时间,几乎不消耗任何能量。例如,使用 i5-10600K:

省电(HWP 禁用):

doug@s19:~$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_% --interval 15
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
0.08    1447    889     36      1.51    0.00    0.89    0.00
0.12    865     779     36      1.42    0.00    0.89    0.00
0.13    800     733     36      1.45    0.00    0.89    0.00
0.12    805     759     36      1.39    0.00    0.89    0.00

性能(禁用 HWP):

doug@s19:~$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_% --interval 15
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
0.03    4100    792     34      1.48    0.00    0.89    0.00
0.03    4100    658     34      1.52    0.00    0.89    0.00
0.03    4100    656     35      1.51    0.00    0.89    0.00
0.03    4100    749     35      1.62    0.00    0.89    0.00

观察空闲系统的成本约为0.1瓦。

对于不是那么空闲(但仍然相当空闲)的情况,类似的中断/采样周期:

省电(HWP 禁用):

doug@s19:~$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_%
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
1.85    937     46458   33      1.90    0.00    0.89    0.00
2.02    815     46394   33      1.73    0.00    0.89    0.00
2.18    800     46647   33      1.74    0.00    0.89    0.00
2.23    800     46809   33      1.87    0.00    0.89    0.00
2.42    800     47187   33      1.79    0.00    0.89    0.00
2.60    800     48461   33      1.79    0.00    0.89    0.00

性能(禁用 HWP):

doug@s19:~$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_%
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
0.72    2404    46360   34      13.98   0.00    0.89    0.00
0.74    2478    46804   35      14.16   0.00    0.89    0.00
0.71    2752    47188   35      14.88   0.00    0.89    0.00
0.87    2458    47454   35      14.12   0.00    0.89    0.00
0.90    2511    48373   35      14.93   0.00    0.89    0.00

所以,成本大约为 13 瓦,相当高。

省电(启用 HWP):

doug@s19:~$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_%
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
1.13    1604    40861   37      10.55   0.00    0.89    0.00
1.13    1592    40709   37      10.56   0.00    0.89    0.00
1.14    1569    40826   37      10.56   0.00    0.89    0.00
1.15    1547    40959   37      10.50   0.00    0.89    0.00
1.16    1555    40936   37      10.32   0.00    0.89    0.00
1.00    1733    41003   37      11.39   0.00    0.89    0.00

性能(启用 HWP):

doug@s19:~$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt,PKG_%
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt RAMWatt PKG_%
0.57    3484    43276   37      15.18   0.00    0.89    0.00
0.62    2749    44102   37      14.99   0.00    0.89    0.00
0.65    2493    44177   38      15.24   0.00    0.89    0.00
0.65    2476    44166   37      15.07   0.00    0.89    0.00
0.65    2474    44163   37      15.14   0.00    0.89    0.00

大约4.5瓦。

編輯:现在,您的 intel_pstate 参数很有趣,但我对数字定义的理解不正确:

来自文档

Sysfs will show :
    max_perf_pct:100, which corresponds to 1 core ratio
    min_perf_pct:24, max_efficiency_ratio / max 1 Core ratio
    no_turbo:0, turbo is not disabled
    num_pstates:26 = (max 1 Core ratio - Max Efficiency Ratio + 1)
    turbo_pct:39 = (max 1 core ratio - max non turbo ratio) / num_pstates

从代码来看:

static ssize_t show_turbo_pct(struct kobject *kobj,
                                struct kobj_attribute *attr, char *buf)
{
        struct cpudata *cpu;
        int total, no_turbo, turbo_pct;
        uint32_t turbo_fp;

        mutex_lock(&intel_pstate_driver_lock);

        if (!intel_pstate_driver) {
                mutex_unlock(&intel_pstate_driver_lock);
                return -EAGAIN;
        }

        cpu = all_cpu_data[0];

        total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1;
        no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1;
        turbo_fp = div_fp(no_turbo, total);
        turbo_pct = 100 - fp_toint(mul_fp(turbo_fp, int_tofp(100)));

        mutex_unlock(&intel_pstate_driver_lock);

        return sprintf(buf, "%u\n", turbo_pct);
}

因此,对于您的处理器,规格为 3.5 GHz 基本频率、0.8 GHz 最小频率、5.3 GHz 最大频率。

对于您的情况,(53 - 35) / 46 = 39%。足够接近,并且按照精确的代码方式执行,结果为 40%。

编辑2:请参见文章。最相关的摘录:

这意味着,如果所有 8 个内核都已加载,TB2 意味着它将以 4.7 GHz 运行。如果有功率预算和热预算,它将尝试 4.8 GHz。如果有更多的功率预算和热预算可用,它将转到 4.9 GHz,然后是 5.0 GHz,然后是 5.1 GHz。只要有足够的预算可供使用,频率就会浮动,并会根据需要增加/减少。这很重要,因为不同的指令会导致不同的功耗等。

答案2

原来这是 CPU 频率的 BIOS 问题。我之前运行的是更新版本 (0704),已更新至 2021 年 4 月 28 日发布的 0707,现在我的 CPU 可以在满负荷的情况下全速运行。

以下是华硕最新 BIOS 的链接:https://rog.asus.com/us/motherboards/rog-strix/rog-strix-z590-e-gaming-wifi-model/helpdesk_bios

现在我将检查我的网络,看看那里是否有任何变化。如果没有添加显卡,仍然无法在主线内核或普通内核上启动 GUI。

使用 iperf 检查网络。仍然以 1gb 而不是 2.5 运行

相关内容