Boot times slow when LXD installed, due to poorly crafted systemd dependency chain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Notice the time spent inside lxd-containers.
This behavior can be recreated by installing + configuring LXD, with no containers.
Both lxd-containers.
Boot should never hang waiting on these to finish.
Fixing this, will reduce boot time by 20secs or 10% of total boot time for this machine.
_______
net11 # systemd-analyze critical-chain
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.
graphical.target @1min 16.744s
└─multi-user.target @1min 16.744s
└─lxd-
└─lxd.service @1min 14.295s +2.457s
└
└─<email address hidden> @55.020s
What does a finished boot mean for you? It should indeed not affect time to login, but the boot time reported by systemd-analyze will always be longer even if network-online and lxd stuff is the only thing not started yet (as it considers the boot complete when all services are running).