Ubuntu 20.04 变得非常慢

Ubuntu 20.04 变得非常慢

我的 Ubuntu 突然变得非常慢。当我重新启动时,它可以运行一段时间,然后又变得非常慢。

我有一台连接到 DisplayLink D6000 的 Dell Lattitude 7400

这种情况大多发生在 Dock 插入时,但不仅限于此。

例如,在 PHPStorm 中索引文件时,我的计算机无法使用。以下是htop示例 顶部 顶部

当它开始变慢时我可以找到以下一些日志:

/var/log/syslog

Jun  7 11:49:59 bastio-Latitude-7400 wpa_supplicant[948]: wlo1: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-44 noise=9999 txrate=866700
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): EDID vendor "AUO", prod id 25405
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Printing DDC gathered Modelines:
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  141.00  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (67.0 kHz eP)
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  112.80  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (53.6 kHz e)
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): EDID vendor "AUO", prod id 25405
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Printing DDC gathered Modelines:
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  141.00  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (67.0 kHz eP)
Jun  7 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  112.80  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (53.6 kHz e)
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.502949] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503007] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503048] evdi: [D] evdi_detect:90 (dev=1) poll connector state: connected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503055] evdi: [D] evdi_painter_get_edid_copy:242 (dev=1) EDID valid
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503721] evdi: [D] evdi_detect:90 (dev=0) poll connector state: connected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503727] evdi: [D] evdi_painter_get_edid_copy:242 (dev=0) EDID valid
Jun  7 11:51:43 bastio-Latitude-7400 systemd[1]: Starting Cleanup of Temporary Directories...
Jun  7 11:51:44 bastio-Latitude-7400 systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Jun  7 11:51:44 bastio-Latitude-7400 systemd[1]: Finished Cleanup of Temporary Directories.
Jun  7 11:51:55 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
Jun  7 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: message repeated 9 times: [ Supervising 7 threads of 3 processes of 1 users.]
Jun  7 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Successfully made thread 5669 of process 5541 owned by '1000' RT at priority 10.
Jun  7 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
Jun  7 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: message repeated 10 times: [ Supervising 8 threads of 4 processes of 1 users.]
Jun  7 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Successfully made thread 5856 of process 5718 owned by '1000' RT at priority 10.
Jun  7 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 9 threads of 5 processes of 1 users.

日志控制-f

juin 07 11:48:01 bastio-Latitude-7400 gnome-shell[2748]: Window manager warning: WM_TRANSIENT_FOR window 0x2000670 for 0x20006a6 window override-redirect is an override-redirect window and this is not correct according to the standard, so we'll fallback to the first non-override-redirect window 0x200004c.
juin 07 11:48:23 bastio-Latitude-7400 gnome-shell[2748]: Could not create selection source for X11: Le format TARGETS n'est pas pris en charge
juin 07 11:49:11 bastio-Latitude-7400 wpa_supplicant[948]: wlo1: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-49 noise=9999 txrate=866700
juin 07 11:49:12 bastio-Latitude-7400 gnome-shell[2748]: Could not create selection source for X11: Le format TARGETS n'est pas pris en charge
juin 07 11:49:45 bastio-Latitude-7400 gnome-shell[2748]: Could not create selection source for X11: Le format TARGETS n'est pas pris en charge
juin 07 11:49:53 bastio-Latitude-7400 gnome-shell[2748]: Window manager warning: WM_TRANSIENT_FOR window 0x2000c94 for 0x2000ca7 window override-redirect is an override-redirect window and this is not correct according to the standard, so we'll fallback to the first non-override-redirect window 0x200004c.
juin 07 11:49:59 bastio-Latitude-7400 wpa_supplicant[948]: wlo1: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-44 noise=9999 txrate=866700
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): EDID vendor "AUO", prod id 25405
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Printing DDC gathered Modelines:
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  141.00  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (67.0 kHz eP)
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  112.80  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (53.6 kHz e)
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): EDID vendor "AUO", prod id 25405
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Printing DDC gathered Modelines:
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  141.00  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (67.0 kHz eP)
juin 07 11:51:02 bastio-Latitude-7400 /usr/lib/gdm3/gdm-x-session[2313]: (II) modeset(0): Modeline "1920x1080"x0.0  112.80  1920 1936 1952 2104  1080 1083 1097 1116 +hsync -vsync (53.6 kHz e)
juin 07 11:51:02 bastio-Latitude-7400 kernel: evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
juin 07 11:51:02 bastio-Latitude-7400 kernel: evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
juin 07 11:51:02 bastio-Latitude-7400 kernel: evdi: [D] evdi_detect:90 (dev=1) poll connector state: connected
juin 07 11:51:02 bastio-Latitude-7400 kernel: evdi: [D] evdi_painter_get_edid_copy:242 (dev=1) EDID valid
juin 07 11:51:02 bastio-Latitude-7400 kernel: evdi: [D] evdi_detect:90 (dev=0) poll connector state: connected
juin 07 11:51:02 bastio-Latitude-7400 kernel: evdi: [D] evdi_painter_get_edid_copy:242 (dev=0) EDID valid
juin 07 11:51:43 bastio-Latitude-7400 systemd[1]: Starting Cleanup of Temporary Directories...
juin 07 11:51:44 bastio-Latitude-7400 systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
juin 07 11:51:44 bastio-Latitude-7400 systemd[1]: Finished Cleanup of Temporary Directories.
juin 07 11:51:55 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:51:55 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:52:59 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:52:59 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:53:04 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:53:04 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 7 threads of 3 processes of 1 users.
juin 07 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Successfully made thread 5669 of process 5541 owned by '1000' RT at priority 10.
juin 07 11:53:42 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:55:26 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:55:26 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 8 threads of 4 processes of 1 users.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Successfully made thread 5856 of process 5718 owned by '1000' RT at priority 10.
juin 07 11:57:27 bastio-Latitude-7400 rtkit-daemon[1162]: Supervising 9 threads of 5 processes of 1 users.

/var/log/kern.log

Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.502949] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503007] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503048] evdi: [D] evdi_detect:90 (dev=1) poll connector state: connected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503055] evdi: [D] evdi_painter_get_edid_copy:242 (dev=1) EDID valid
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503721] evdi: [D] evdi_detect:90 (dev=0) poll connector state: connected
Jun  7 11:51:02 bastio-Latitude-7400 kernel: [  864.503727] evdi: [D] evdi_painter_get_edid_copy:242 (dev=0) EDID valid

更新: 我使用的是双启动模式,当我在 Windows 上使用计算机时,没有收到任何错误。

答案1

系统“冻结”通常是由于运行过多、过大的程序,导致可用内存不足造成的。使用free来查看是否有交换空间,阅读man mkswap swapon fstab来创建一些交换空间。交换空间必须是连续的。使用mkswapfallocate,而不是dd。传统上,建议使用 1.5 × RAM 的交换空间,但 YMMV。如果您不打算让系统休眠,则可以拥有少于 1.0 × RAM 的空间。

答案2

您可以尝试将笔记本电脑切换到性能模式,此线程解释了如何执行此操作:

设置为高性能

对我来说,它只能在启动系统后工作一段时间。我的笔记本电脑即使每个核心都使用 100%,也非常安静,这对我来说很奇怪。您是否以其他方式解决了您的问题?

相关内容