![Ryzen 在 Arch Linux 下执行最基本的任务时速度极慢](https://linux22.com/image/185877/Ryzen%20%E5%9C%A8%20Arch%20Linux%20%E4%B8%8B%E6%89%A7%E8%A1%8C%E6%9C%80%E5%9F%BA%E6%9C%AC%E7%9A%84%E4%BB%BB%E5%8A%A1%E6%97%B6%E9%80%9F%E5%BA%A6%E6%9E%81%E6%85%A2.png)
我有一台 Ryzen 1700,即使在最基本的任务中也非常慢,例如启动 vim 或 nvim(需要几秒钟)、Gnome 终端中的选项卡切换或滚动文本。
Ryzen 7 1700 采用 MSI Gaming Pro Carbing B350 主板,安装了最新的 BIOS 和“amd-ucode”,16 GB DDR4 RAM,频率为 2933 Mhz。 GPU 是安装了“nvidia”软件包的 NVIDIA 1070 TI。内核版本是5.9.13-arch1-1。 IOMMU 被禁用,因为它在启用时无法启动。
7zip 基准测试结果
$ 7z b
7-Zip [64] 17.03 : Copyright (c) 1999-2020 Igor Pavlov : 2017-08-28
p7zip Version 17.03 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs x64)
x64
CPU Freq: 64000000 - - - - - - - -
RAM size: 16013 MB, # CPU hardware threads: 16
RAM usage: 3530 MB, # Benchmark threads: 16
Compressing | Decompressing
Dict Speed Usage R/U Rating | Speed Usage R/U Rating
KiB/s % MIPS MIPS | KiB/s % MIPS MIPS
22: 34730 1351 2501 33786 | 467706 1567 2546 39891
23: 32301 1331 2472 32911 | 455850 1549 2546 39441
24: 31823 1385 2471 34217 | 435139 1506 2536 38194
25: 28978 1363 2427 33087 | 425605 1505 2517 37877
---------------------------------- | ------------------------------
Avr: 1358 2468 33500 | 1532 2536 38851
Tot: 1445 2502 36175
36175 MIPS 似乎是CPU正常所以也许它在简单任务上的时钟频率不够高?
cpupower 频率信息
analyzing CPU 0:
driver: acpi-cpufreq
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: 1.55 GHz - 3.00 GHz
available frequency steps: 3.00 GHz, 2.70 GHz, 1.55 GHz
available cpufreq governors: performance schedutil
current policy: frequency should be within 1.55 GHz and 3.00 GHz.
The governor "schedutil" may decide which speed to use
within this range.
current CPU frequency: 1.55 GHz (asserted by call to hardware)
boost state support:
Supported: no
Active: no
Boost States: 0
Total States: 3
Pstate-P0: 3000MHz
Pstate-P1: 2700MHz
Pstate-P2: 1550MHz
更新
我在 2020 年 1 月 5 日(最后一次是 2020 年 12 月 13 日)执行了全面升级pacman -Syyu
,其中升级的内容包括:
- amd-ucode (20201120.bc9cd0b-1 -> 20201218.646f159-1)
- Linux(5.9.13.arch1-1 -> 5.10.4.arch2-1)
- linux-固件(20201120.bc9cd0b-1 -> 20201218.646f159-1)
而且速度变得更快了。如果问题得到解决或者问题会再次出现,我会保持警惕。