$ systemd-analyze
Startup finished in 4.718s (kernel) + 10.642s (userspace) = 15.361s
graphical.target reached after 10.472s in userspace
分析关键耗时
$ 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 @8.912s
└─udisks2.service @6.607s +2.288s
└─basic.target @6.507s
└─sockets.target @6.495s
└─docker.socket @6.368s +76ms
└─sysinit.target @6.332s
└─swap.target @6.323s
└─dev-sda3.swap @6.114s +195ms
└─dev-sda3.device @6.027s