我发现了有关缓慢内核启动的类似主题,但我的问题是我的系统需要 3 分钟才能加载用户空间
systemd-analyze
给出以下输出
Startup finished in 4.247s (kernel) + 3min 743ms (userspace = 3min 4.991s
graphical.target reacher after 1min 35.812s in userspace
有没有办法确定究竟是什么花费了这么多时间?我在 VirtualBox 中运行 Xubuntu 18.04,我认为问题是在我扩大分区后开始的(包括重新创建交换分区)。
编辑:输出systemd-analyze critical-chain
graphical.target @1min 35.812s
└─multi-user.target @1min 35.812s
└─docker.service @1min 32.815s +2.996s
└─network-online.target @1min 32.814s
└─NetworkManager-wait-online.service @1min 31.863s +951ms
└─NetworkManager.service @1min 31.075s +784ms
└─dbus.service @1min 30.640s
└─basic.target @1min 30.529s
└─sockets.target @1min 30.529s
└─docker.socket @1min 30.498s +30ms
└─sysinit.target @1min 30.493s
└─apparmor.service @979ms +695ms
└─local-fs.target @947ms
└─media-aj-VBox_GAs_5.2.81.mount @1min 39.649s
└─clean-mount-point@media-aj-VBox_GAs_5.2.81.service @
└─system-clean\x2dmount\x2dpoint.slice @1min 39.668s
└─system.slice @272ms
└─-.slice @266ms