Udev slows down the bootup by a lot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I think this is a bug as it started from recent updates (I don't remember when was the start). Basically, systemd-udev-settle takes 1min 30sec in the booting process. Since I use LVM and btrfs systems, I cannot mask the udev service from booting. Any insight would be appreciated. Below are some of my log. Computer: Lenovo Thinkpad P50, Ubuntu 16.04.3.
$ uname -a
Linux QC5-ubuntu 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ sudo lspci -vvnn
see https:/
$ journalctl -xb
see https:/
$ systemd-analyze blame
1min 29.765s systemd-
9.672s NetworkManager-
2.955s plymouth-
2.449s upower.service
738ms lvm2-activation
645ms dev-mapper-
519ms nmbd.service
436ms grub-common.service
431ms sysfsutils.service
430ms dictd.service
430ms apport.service
423ms irqbalance.service
417ms plymouth-
416ms speech-
381ms ondemand.service
325ms vboxdrv.service
312ms media-I.mount
291ms lvm2-activation
237ms media-F.mount
213ms lvm2-monitor.
170ms lvm2-activation
163ms systemd-
155ms media-H.mount
...
$ system-analyze critical-chain systemd-
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.
systemd-
└─systemd-
└─systemd-
└─systemd-
└
└─-.slice @167ms
$ journalctl -b -u systemd-
-- Logs begin at Sun 2017-11-05 16:49:28 MST, end at Sun 2017-11-05 17:00:17 MST. --
Nov 05 16:49:28 QC5-ubuntu systemd[1]: Starting udev Wait for Complete Device Initialization...
Nov 05 16:50:58 QC5-ubuntu systemd[1]: Started udev Wait for Complete Device Initialization.
$ systemctl list-dependencies --reverse systemd-
systemd-
● ├─lvm2-
● └─lvm2-
$ sudo dmidecode
see https:/
I have also tried the network service. The network manager needs a lot of time to boot up, but really? It requires internet to boot up? So, I check which services use it:
$ systemctl show network-
WantedBy=
Before=
Thanks,
Qi
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: |
added: kernel-bug-exists-upstream systemd-udevd removed: udev zesty |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1730278
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.