Ubuntu 16.04 启动时间过长

Ubuntu 16.04 启动时间过长

我的启动时间太长了。我使用了命令systemd-analyze blame,结果如下:

dimitrios@dimitrios-A15:~/Downloads$ systemd-analyze blame
     1min 4.487s apt-daily.service
         22.627s dev-sda4.device
         11.789s systemd-udevd.service
          9.863s NetworkManager-wait-online.service
          5.549s apache2.service
          5.411s ModemManager.service
          5.028s grub-common.service
          4.334s systemd-tmpfiles-setup-dev.service
          3.899s accounts-daemon.service
          3.563s thermald.service
          3.413s NetworkManager.service
          3.084s iio-sensor-proxy.service
          2.770s vboxdrv.service
          2.238s keyboard-setup.service
          2.089s irqbalance.service
          1.961s binfmt-support.service
          1.940s quota.service
          1.865s bluetooth.service
          1.802s dev-hugepages.mount
          1.802s sys-kernel-debug.mount
          1.711s dev-mqueue.mount
          1.618s systemd-logind.service
          1.596s gpu-manager.service
          1.574s console-setup.service
          1.516s udisks2.service
          1.480s colord.service
          1.480s upower.service
          1.448s rsyslog.service
          1.334s ofono.service
          1.304s ondemand.service
          1.303s systemd-modules-load.service
          1.297s speech-dispatcher.service
          1.297s console-kit-log-system-start.service
          1.269s laptop-mode.service
          1.268s pppd-dns.service
          1.246s systemd-user-sessions.service
          1.218s avahi-daemon.service
          1.193s systemd-journald.service
          1.039s wpa_supplicant.service
           985ms apport.service                                                                                                                                         
           964ms console-kit-daemon.service                                                                                                                             
           938ms networking.service                                                                                                                                     
           911ms polkitd.service                                                                                                                                        
           852ms systemd-udev-trigger.service                                                                                                                           
           839ms systemd-rfkill.service                                                                                                                                 
           725ms setvtrgb.service                                                                                                                                       
           669ms systemd-update-utmp.service                                                                                                                            
           590ms lm-sensors.service

我怎样才能加快速度?

答案1

通常,我见过的 *ix-ish 系统会按资源和守护进程输出启动过程的进度。比如说,

    `[xyz] successfully started on abc status blah at ....`

您的系统如何重启?您的启动脚本肯定在某个地方设置为非详细。如果您可以撤消该设置,那么这可以为您提供直接的线索。有谁比我更了解吗?

然而,看着他们 15 年后开始工作,我不得不说,即使他们以最快的速度,他们做的事情也越来越少,而且花费了更多的时间 :D 无论如何。

相关内容