高端 PC 上的 Ubuntu 速度极慢

Joo*_*ost 5 performance

所以我终于在家里的电脑上安装了 ubuntu。

安装进行得很顺利,一切顺利。当我最终重新启动进入操作系统时,一切都非常缓慢。我首先安装最新的 NVidia 驱动程序并使用处理器微码固件设置。再次重新启动,但这也没有做任何事情。例如,打开文件管理器大约需要 3-4 秒。有我仍然缺少的驱动程序吗?它是否必须与 M2 SSD 做些什么?

不幸的是,Windows 上的性能还不错。

使用 Ubuntu 15.10

电脑信息:

  • I7-5820k
  • GTX980TI
  • 16GB DDR4 内存
  • 512GB 三星 950 Evo

inxi-G 的输出:

Graphics:  Card: NVIDIA GM200 [GeForce GTX 980 Ti]
       Display Server: X.Org 1.17.2 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
       Resolution: 1680x1050@59.95hz, 1920x1080@60.00hz
       GLX Renderer: GeForce GTX 980 Ti/PCIe/SSE2
       GLX Version: 4.5.0 NVIDIA 352.63

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave

$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
437636
Run Code Online (Sandbox Code Playgroud)

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: 0.97 ms.
  hardware limits: 1.20 GHz - 3.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.80 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 434 MHz.
  boost state support:
    Supported: yes
    Active: yes
Run Code Online (Sandbox Code Playgroud)

Cha*_*een 6

另一个可能更适合 Ubuntu 新安装的替代答案是使用cpupower控制 intel_pstate 调控器系统的命令。

该命令cpupower frequency-info将在第一行指示是否intel_pstate正在使用潜水员,并且在 current_policy 部分中将指示“powersave”或“performance”

要更改策略发出命令

sudo cpupower frequency-set -g performance

这不会在重新启动后持续存在(对于我的笔记本电脑),但可以放入/etc/rc.local或类似的初始化方法中。

附带说明:我还在ondemand之前的 Ubuntu 版本中使用了调控器:如果需要,可以使用内核变量“intel_pstate=disable”禁用 intel_pstate


ter*_*don 3

你的CPU速度非常非常慢。在我的系统上,使用已经使用超过 6 年的 Core2 Quad,我得到:

$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
2394000
Run Code Online (Sandbox Code Playgroud)

您的处理器速度要快得多,但运行速度却慢了几个数量级。问题似乎出在你的CPU调速器上。它控制 CPU 的行为方式。您的选择是:

  • 性能使 CPU 保持在尽可能高的频率
  • Powersave使 CPU 保持尽可能低的频率
  • 用户空间将可用频率信息导出到用户级别(通过/sys文件系统)并允许用户空间控制CPU频率
  • Ondemand根据 CPU 使用情况缩放 CPU 频率(与用户空间频率缩放守护进程一样,但在内核中)
  • 保守的行为类似于点播,但频率逐步增加

您已将其设置powersave为限制 CPU 消耗尽可能少的电量。将其设置为几乎任何其他值都会提高您的性能。我建议您使用ondemand提供最灵活选择的选项,需要时高速,不需要时低速,以免浪费能源。

运行此命令将调控器更改为ondemand

echo "ondemand" | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Run Code Online (Sandbox Code Playgroud)

注意@CharlesGreen 在评论中指出,您可能只有powersave并且performance可用。他还提供了类似问题的链接,因此如果这种方法不起作用,我建议您阅读那里提供的解决方案。