Ubuntu 20.04.2 LTS 启动缓慢

Ubuntu 20.04.2 LTS 启动缓慢

大家好,我的笔记本电脑启动有点慢,我刚刚安装了 Ubuntu 20.04.2 LTS。

$ systemd-analyze

Startup finished in 5.299s (firmware) + 4.531s (loader) + 4.298s (kernel) + 1min 1.884s (userspace) = 1min 16.014s graphical.target reached after 1min 1.833s in userspace

$ systemd-analyze blame

32.070s plymouth-quit-wait.service
17.799s systemd-journal-flush.service                        
15.529s snapd.service                                        
13.727s networkd-dispatcher.service                          
11.953s dev-sda2.device                                      
10.132s udisks2.service   

$ systemd-analyze critical-chain

The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @1min 1.833s
└─multi-user.target @1min 1.833s
  └─snapd.seeded.service @39.598s +295ms
     └─snapd.service @24.066s +15.529s
       └─basic.target @22.886s
          └─sockets.target @22.886s
            └─snapd.socket @22.885s +846us
               └─sysinit.target @22.799s
                    └─systemd-timesyncd.service @22.362s +436ms
                        └─systemd-tmpfiles-setup.service @21.968s +351ms
                            └─systemd-journal-flush.service @4.167s +17.799s
                                 └─systemd-journald.service @3.640s +523ms
                                      └─systemd-journald.socket @3.633s
                                          └─system.slice @3.630s
                                               └─-.slice @3.630s

谢谢

答案1

通常服务plymouth不应该受到指责,因为它只是在等待其他服务先完成。最大的时间消耗来自:systemd-journal-flush.service如下所述:

在启动时删除日志刷新后,另一个有用的线程在这里:

相关内容