sddm이 느리게 시작됩니다.

sddm이 느리게 시작됩니다.

최근 sddm이 Arch Linux에서 로그인 화면을 표시하는 속도가 매우 느려졌습니다. "GUI targetreach"(또는 이와 유사한) 시작 메시지가 표시된 후 sddm 인사말이 표시되기까지 10초 넘게 긴 지연이 발생합니다.

다음 로그는 전체 부팅 프로세스가 매우 느리다는 것을 보여줍니다.

Startup finished in 17.085s (firmware) + 4.763s (loader) + 6.253s (kernel) + 15.786s (userspace) = 43.890s.

그러나 "간단한 데스크탑 디스플레이 관리자 시작"(5월 15일, 17:53:36)부터 "인사말 세션이 성공적으로 시작되었습니다"(5월 15일, 17:53:59)까지의 시간은 13초입니다. 지연 시간이 크게 증가한 것은 .face.icon추측일 뿐이지만 사용자 파일 표시와 관련된 것으로 보입니다.

누군가가 아래 로그 메시지에서 단서를 볼 수 있기를 바랍니다.

May 15 17:54:01 desktop1 sddm-greeter[660]: Message received from daemon: HostName
May 15 17:54:01 desktop1 sddm-greeter[660]: Message received from daemon: Capabilities
May 15 17:54:01 desktop1 sddm-greeter[660]: QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.54'
May 15 17:54:01 desktop1 sddm-greeter[660]: Adding view for "HDMI-2" QRect(0,0 2560x1440)
May 15 17:54:01 desktop1 sddm-greeter[660]: file:///usr/share/sddm/themes/breeze/components/VirtualKeyboard.qml:20:1: module "QtQuick.VirtualKeyboard" is not installed
May 15 17:54:01 desktop1 sddm-greeter[660]: inotify_add_watch("/etc/fstab") failed: "Permission denied"
May 15 17:54:01 desktop1 systemd[1]: Started Daemon for power management.
May 15 17:54:01 desktop1 dbus-daemon[410]: [system] Successfully activated service 'org.freedesktop.UPower'
May 15 17:54:00 desktop1 udisksd[666]: Acquired the name org.freedesktop.UDisks2 on the system message bus
May 15 17:54:00 desktop1 systemd[1]: Starting Daemon for power management...
May 15 17:54:00 desktop1 dbus-daemon[410]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.53' (uid=995 pid=660 comm="/usr/b>
May 15 17:54:00 desktop1 systemd[1]: Started Disk Manager.
May 15 17:54:00 desktop1 dbus-daemon[410]: [system] Successfully activated service 'org.freedesktop.UDisks2'
May 15 17:54:00 desktop1 udisksd[666]: udisks daemon version 2.7.6 starting
May 15 17:54:00 desktop1 systemd[1]: Starting Disk Manager...
May 15 17:54:00 desktop1 dbus-daemon[410]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service' requested by ':1.53' (uid=995 pid=660 comm="/usr>
May 15 17:54:00 desktop1 sddm-greeter[660]: Cannot watch QRC-like path ":/icons/hicolor/index.theme"
May 15 17:54:00 desktop1 sddm-greeter[660]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
May 15 17:54:00 desktop1 sddm-greeter[660]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fff5551e800), parent's thread is QThread(0x55fe866984a0), current thread is QThread(0x55fe866f9ae0)
May 15 17:53:59 desktop1 systemd[654]: Started D-Bus User Message Bus.
May 15 17:53:59 desktop1 sddm-greeter[660]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fff5551e800), parent's thread is QThread(0x55fe866984a0), current thread is QThread(0x55fe866f9ae0)
May 15 17:53:59 desktop1 sddm-greeter[660]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
May 15 17:53:59 desktop1 sddm-greeter[660]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fff5551e800), parent's thread is QThread(0x55fe866984a0), current thread is QThread(0x55fe866f9ae0)
May 15 17:53:59 desktop1 sddm-greeter[660]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fff5551e800), parent's thread is QThread(0x55fe866984a0), current thread is QThread(0x55fe866f9ae0)
May 15 17:53:59 desktop1 sddm-greeter[660]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fff5551e800), parent's thread is QThread(0x55fe866984a0), current thread is QThread(0x55fe866f9ae0)
May 15 17:53:59 desktop1 sddm-greeter[660]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fff5551e800), parent's thread is QThread(0x55fe866984a0), current thread is QThread(0x55fe866f9ae0)
May 15 17:53:59 desktop1 sddm-greeter[660]: Loading file:///usr/share/sddm/themes/breeze/Main.qml...
May 15 17:53:59 desktop1 sddm[630]: Message received from greeter: Connect
May 15 17:53:59 desktop1 sddm-greeter[660]: Connected to the daemon.
May 15 17:53:59 desktop1 sddm-greeter[660]: inotify_add_watch("/usr/share/wayland-sessions") failed: "No such file or directory"
May 15 17:53:59 desktop1 sddm-greeter[660]: Reading from "/usr/share/xsessions/plasma.desktop"
May 15 17:53:59 desktop1 sddm-greeter[660]: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
May 15 17:53:59 desktop1 sddm-greeter[660]: High-DPI autoscaling not Enabled
May 15 17:53:59 desktop1 sddm[630]: Greeter session started successfully
May 15 17:53:59 desktop1 systemd[1]: Started User Manager for UID 995.
May 15 17:53:59 desktop1 systemd[654]: Startup finished in 82ms.
May 15 17:53:59 desktop1 systemd[654]: Reached target Default.
May 15 17:53:59 desktop1 systemd[654]: Reached target Basic System.
May 15 17:53:59 desktop1 systemd[654]: Reached target Sockets.
May 15 17:53:59 desktop1 systemd[654]: Listening on D-Bus User Message Bus Socket.
May 15 17:53:59 desktop1 systemd[654]: Reached target Paths.
May 15 17:53:59 desktop1 systemd[654]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
May 15 17:53:59 desktop1 systemd[654]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
May 15 17:53:59 desktop1 systemd[654]: Listening on GnuPG network certificate management daemon.
May 15 17:53:59 desktop1 systemd[654]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
May 15 17:53:59 desktop1 systemd[654]: Listening on GnuPG cryptographic agent and passphrase cache.
May 15 17:53:59 desktop1 systemd[654]: Listening on Sound System.
May 15 17:53:59 desktop1 systemd[654]: Reached target Timers.
May 15 17:53:59 desktop1 systemd[654]: Starting D-Bus User Message Bus Socket.
May 15 17:53:58 desktop1 systemd[654]: pam_unix(systemd-user:session): session opened for user sddm by (uid=0)
May 15 17:53:58 desktop1 systemd[1]: Started Session c1 of user sddm.
May 15 17:53:58 desktop1 systemd-logind[409]: New session c1 of user sddm.
May 15 17:53:58 desktop1 systemd[1]: Starting User Manager for UID 995...
May 15 17:53:58 desktop1 systemd[1]: Created slice User Slice of sddm.
May 15 17:53:58 desktop1 sddm-helper[652]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
May 15 17:53:58 desktop1 sddm-helper[652]: [PAM] returning.
May 15 17:53:58 desktop1 sddm-helper[652]: [PAM] Authenticating...
May 15 17:53:58 desktop1 sddm-helper[652]: [PAM] Starting...
May 15 17:53:58 desktop1 sddm[630]: Adding cookie to "/var/run/sddm/{d4e3bc53-809f-3ca5-a1e-b1d287e870b1}"
May 15 17:53:58 desktop1 sddm[630]: Greeter starting...
May 15 17:53:58 desktop1 sddm[630]: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
May 15 17:53:58 desktop1 sddm[630]: Socket server started.
May 15 17:53:58 desktop1 sddm[630]: Socket server starting...
May 15 17:53:58 desktop1 sddm[630]: Display server started.
May 15 17:53:58 desktop1 sddm[630]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
May 15 17:53:58 desktop1 sddm[630]: Setting default cursor
May 15 17:53:57 desktop1 sddm[630]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{d4e3bc53-809f-3ca5-a1e-b1d287e870b1} -background none -noreset -displayfd 17 -seat seat0 vt1
May 15 17:53:57 desktop1 sddm[630]: Display server starting...
May 15 17:53:57 desktop1 sddm[630]: Loading theme configuration from ""
May 15 17:53:57 desktop1 sddm[630]: Adding new display on vt 1 ...
May 15 17:53:57 desktop1 sddm[630]: Starting...
May 15 17:53:57 desktop1 sddm[630]: Logind interface found
May 15 17:53:57 desktop1 sddm[630]: Initializing...
May 15 17:53:57 desktop1 kernel: random: 6 urandom warning(s) missed due to ratelimiting
May 15 17:53:57 desktop1 kernel: random: crng init done
May 15 17:53:42 desktop1 dhcpcd[507]: eth0: no IPv6 Routers available
May 15 17:53:37 desktop1 systemd[1]: Startup finished in 17.085s (firmware) + 4.763s (loader) + 6.253s (kernel) + 15.786s (userspace) = 43.890s.
May 15 17:53:37 desktop1 systemd[1]: Reached target Graphical Interface.
May 15 17:53:37 desktop1 systemd[1]: Reached target Multi-User System.
May 15 17:53:37 desktop1 systemd[1]: Started Make remote CUPS printers available locally.
May 15 17:53:37 desktop1 systemd[1]: Started CUPS Scheduler.
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 systemd[1]: Started Simple Desktop Display Manager.
May 15 17:53:36 desktop1 systemd[1]: Started Permit User Sessions.
May 15 17:53:36 desktop1 systemd[1]: Starting Permit User Sessions...
May 15 17:53:36 desktop1 systemd[1]: Reached target Remote File Systems.
May 15 17:53:36 desktop1 systemd[1]: Started Manage, Install and Generate Color Profiles.
May 15 17:53:36 desktop1 systemd[1]: Mounted /home/usercommon/Finance/Syncd.
May 15 17:53:36 desktop1 systemd[1]: Mounted /var/cache/pacman.
May 15 17:53:36 desktop1 systemd[1]: Mounted /kit.
May 15 17:53:36 desktop1 systemd[1]: Mounted /home/mari/fileserver/Desktop.
May 15 17:53:36 desktop1 systemd[1]: Mounted /home/usercommon/Finance/Receipts.
May 15 17:53:36 desktop1 systemd[1]: Mounted /home/jessica/Documents.
May 15 17:53:36 desktop1 systemd[1]: Mounted /backup/admins.
May 15 17:53:36 desktop1 systemd[1]: Mounted /home/natasha/Documents.
May 15 17:53:36 desktop1 systemd[1]: Mounted /backup/files.
May 15 17:53:36 desktop1 systemd[1]: Mounted /home/usercommon/Ventures.
May 15 17:53:58 desktop1 sddm[630]: Setting default cursor
May 15 17:53:57 desktop1 sddm[630]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{d4e3bc53-809f-3ca5-a1e-b1d287e870b1} -background none -noreset -displayfd 17 -seat seat0 vt1
May 15 17:53:57 desktop1 sddm[630]: Display server starting...
May 15 17:53:57 desktop1 sddm[630]: Loading theme configuration from ""
May 15 17:53:57 desktop1 sddm[630]: Adding new display on vt 1 ...
May 15 17:53:57 desktop1 sddm[630]: Starting...
May 15 17:53:57 desktop1 sddm[630]: Logind interface found
May 15 17:53:57 desktop1 sddm[630]: Initializing...
May 15 17:53:57 desktop1 kernel: random: 6 urandom warning(s) missed due to ratelimiting
May 15 17:53:57 desktop1 kernel: random: crng init done
May 15 17:53:42 desktop1 dhcpcd[507]: eth0: no IPv6 Routers available
May 15 17:53:37 desktop1 systemd[1]: Startup finished in 17.085s (firmware) + 4.763s (loader) + 6.253s (kernel) + 15.786s (userspace) = 43.890s.
May 15 17:53:37 desktop1 systemd[1]: Reached target Graphical Interface.
May 15 17:53:37 desktop1 systemd[1]: Reached target Multi-User System.
May 15 17:53:37 desktop1 systemd[1]: Started Make remote CUPS printers available locally.
May 15 17:53:37 desktop1 systemd[1]: Started CUPS Scheduler.
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 colord[615]: failed to get session [pid 562]: No data available
May 15 17:53:36 desktop1 systemd[1]: Started Simple Desktop Display Manager.

여러 컴퓨터에서 동일한 문제가 발생합니다. 모두 Plasmashell 5.12.5 이상을 갖춘 Arch Linux KDE를 실행합니다. Linux 4.16.8-1-ARCH #1 SMP PREEMPT 2018년 5월 9일 수요일 11:25:02 UTC x86_64 GNU/Linux.

답변1

Haller는 Arch Linux BBS에 다음과 같이 썼습니다.

It's a kernel problem:
https://bbs.archlinux.org/viewtopic.php?id=236696

이것은 나를 위해 문제를 해결했습니다.

pacman -Syu haveged
systemctl enable haveged.service
systemctl start haveged.service

이 변경으로 인해 부팅 단계 시간이 13초에서 약 1초로 단축되었습니다.

나는 이것을 두 대의 다른 컴퓨터에서 테스트했고 두 컴퓨터 모두에서 매우 긍정적인 결과를 얻었습니다. 커널 문제가 해결될 때까지 이는 만족스러운 해결 방법이 될 것입니다.

관련 정보