You are not logged in.

#1 2024-07-07 11:51:50

usbpc
Member
Registered: 2021-08-02
Posts: 7

[SOLVED] systemd-journald taking more than 1 minute to start up

My systemd-journald.service takes a really long time to start up, significantly longer than any other unit on my system:

$ systemd-analyze blame         
1min 8.376s systemd-journald.service
     3.562s NetworkManager-wait-online.service
     1.334s docker.service
     1.254s systemd-modules-load.service

The problem started within the last few weeks, before that my system started up quickly without spending any noticeable time on a journald or any other service.

From what I can tell the size of my journal dosen't seem to be the problem:

$ sudo journalctl -b -u systemd-journald.service                                                                                                                                                                                      1 ↵
Jul 07 13:39:58 arch-gaming systemd-journald[491]: Collecting audit messages is disabled.
Jul 07 13:41:04 arch-gaming systemd-journald[491]: Journal started
Jul 07 13:41:04 arch-gaming systemd-journald[491]: Runtime Journal (/run/log/journal/66fee3c996934343bd7144b9b6e8e132) is 8M, max 1.5G, 1.5G free.
Jul 07 13:41:04 arch-gaming systemd-journald[491]: Time spent on flushing to /var/log/journal/66fee3c996934343bd7144b9b6e8e132 is 22.438ms for 1492 entries.
Jul 07 13:41:04 arch-gaming systemd-journald[491]: System Journal (/var/log/journal/66fee3c996934343bd7144b9b6e8e132) is 32M, max 4G, 3.9G free.
Jul 07 13:41:05 arch-gaming systemd-journald[491]: Received client request to flush runtime journal.

How can I find out why the systemd-journald.service is taking so long to start?

Last edited by usbpc (2024-07-07 18:45:52)

Offline

#2 2024-07-07 14:28:28

seth
Member
Registered: 2012-09-03
Posts: 54,185

Re: [SOLVED] systemd-journald taking more than 1 minute to start up

System journal, no filter. Something™ will be going on during that time.

Online

#3 2024-07-07 18:45:27

usbpc
Member
Registered: 2021-08-02
Posts: 7

Re: [SOLVED] systemd-journald taking more than 1 minute to start up

Thanks, I figured it out!

I had quite a few messages like

Jul 07 20:13:32 arch-gaming kernel: usb 1-3.2.4: device descriptor read/64, error -110

in my boot log. All referencing the same usb device. After unplugging all usb devices my boot times went back to normal. Then I slowly plugged in one device after another and my boot times are still normal now. But I noticed that my XBOX wireless adapter was kinda loose in it's usb port on the usb hub where I plugged it in.

And looking into the log now, it seems like that adapter was actually the problem device:

$ sudo dmesg | grep 'usb 1-3.2.4'
[    6.853714] usb 1-3.2.4: new high-speed USB device number 10 using xhci_hcd
[    6.960660] usb 1-3.2.4: New USB device found, idVendor=045e, idProduct=02e6, bcdDevice= 1.00
[    6.960670] usb 1-3.2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.960674] usb 1-3.2.4: Product: XBOX ACC
[    6.960678] usb 1-3.2.4: Manufacturer: Microsoft Inc.
[    6.960681] usb 1-3.2.4: SerialNumber: 000000
[    7.123523] usb 1-3.2.4: reset high-speed USB device number 10 using xhci_hcd

Offline

Board footer

Powered by FluxBB