加快 Ubuntu 20.04 的启动速度

加快 Ubuntu 20.04 的启动速度

我在戴尔 Vostro 2520 笔记本电脑(i3 - 第三代)中运行 Ubuntu 20.04,内存为 4 GB(与 Windows 10 双启动)。Ubuntu 的启动占用了我相当多的时间,因此我正在寻找可以提供帮助的人。另外,我正在尝试了解这个过程,所以一点解释也会有所帮助。输出是systemd-analyze critical-chain

graphical.target @1min 24.160s
└─multi-user.target @1min 24.160s
  └─apache-htcacheclean.service @48.581s +95ms
    └─apache2.service @32.585s +15.972s
      └─network.target @32.581s
        └─NetworkManager.service @20.327s +12.253s
          └─dbus.service @20.320s
            └─basic.target @20.192soot 
              └─sockets.target @20.192s
                └─snapd.socket @20.189s +2ms
                  └─sysinit.target @20.040s
                    └─swap.target @20.040s
                      └─dev-disk-by\x2duuid-8eb9d29f\x2d3720\x2d4f9b\x2d99ad\x2dcbfc7fb65561.swap @19.949s +91ms
                        └─dev-disk-by\x2duuid-8eb9d29f\x2d3720\x2d4f9b\x2d99ad\x2dcbfc7fb65561.device @19.948s

第一个屏幕的输出systemd-analyse blame是:

49.196s plymouth-quit-wait.service                                               
17.305s networkd-dispatcher.service                                              
16.183s accounts-daemon.service                                                  
15.972s apache2.service                                                          
14.888s dev-sda1.device                                                          
12.308s avahi-daemon.service                                                     
12.253s NetworkManager.service                                                   
11.889s polkit.service                                                           
11.612s udisks2.service                                                          
 9.597s snapd.service                                                            
 8.841s dev-loop3.device                                                         
 8.688s apport.service                                                           
 8.643s grub-common.service                                                      
 8.582s ModemManager.service                                                     
 8.479s dev-loop0.device                                                         
 8.269s dev-loop2.device                                                         
 8.231s dev-loop1.device                                                         
 7.969s teamviewerd.service                                                      
 7.838s preload.service                                                          
 7.580s grub-initrd-fallback.service                                             
 7.393s rc.local.service                                                         
 7.292s atd.service                                                              
 7.227s e2scrub_reap.service                                                     
 7.226s ftsprhv.service                                                          
 7.224s gpu-manager.service                                                      
 7.144s rsyslog.service                                                          
 6.813s lm-sensors.service                                                       
 6.530s pppd-dns.service                                                         
 5.457s systemd-udevd.service                                                    
 5.366s switcheroo-control.service                                               
 5.040s thermald.service                                                         
 5.038s systemd-logind.service                                                   
 5.029s wpa_supplicant.service                                                   
 4.356s bluetooth.service                                                        
 4.165s apparmor.service                                                         
 3.958s systemd-journal-flush.service                                            
 3.633s systemd-resolved.service

我尝试了一些其他现有的解决方案,并已成功将其显著降低,但我相信还有进一步改进的空间。

相关内容