Boot time very slow
Tofloor
poster avatar
robertsala
deepin
2018-01-28 08:04
Author
Edited by robertsala at 2018-1-28 00:15

I had installed Mycroft AI to test it but noticed it seriously slowed down my start-up boot. After uninstalling Mycroft AI, boot time is still slow. I had to update grub and it still slow. I ran "systemd-analyze time" in terminal and got the following results;

Startup finished in 3.800s (firmware) + 6.812s (loader) + 6.322s (kernel) + 43.748s (userspace) = 1min 684ms
GRUB TIMEOUT IS THE FOLLOWING
# Written by com.deepin.daemon.Grub2
GRUB_BACKGROUND="/boot/grub/themes/deepin/background.png"
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet "
GRUB_DEFAULT="0"
GRUB_DISTRIBUTOR="`/usr/bin/lsb_release -d -s 2>/dev/null || echo Deepin`"
GRUB_GFXMODE="1366x768"
GRUB_THEME="/boot/grub/themes/deepin/theme.txt"
GRUB_TIMEOUT="1"

Userspace of 43.748s seems very heavy. I do not have many services starting-up and apps. My laptop specs are very descent;

Toshiba Satellite
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 61
Model name:            Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
Stepping:              4
CPU MHz:               600.000
CPU max MHz:           2401.0000
CPU min MHz:           500.0000
BogoMIPS:              4789.15
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              4096K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts



Any help is appreciated.

Reply Favorite View the author
All Replies
wtz
deepin
2018-01-28 13:27
#1
Run
  1. systemd-analyze blame
Copy the Code
Reply View the author
robertsala
deepin
2018-01-28 19:43
#2
robertsala@robertsala-pc:~$ systemd-analyze blame
         25.093s NetworkManager-wait-online.service
         20.525s [email protected]
          8.899s dev-sda2.device
          7.925s nmbd.service
          6.635s systemd-journal-flush.service
          5.467s ModemManager.service
          5.299s ufw.service
          4.104s accounts-daemon.service
          2.807s lastore-daemon.service
          2.729s NetworkManager.service
          2.699s systemd-logind.service
          2.609s gdomap.service
          2.436s smbd.service
          2.365s sysstat.service
          2.332s alsa-restore.service
          2.331s lm-sensors.service
          2.329s pppd-dns.service
          2.111s systemd-fsck@dev-disk-by\x2duuid-8B51\x2d668B.servi
Reply View the author
robertsala
deepin
2018-01-29 18:12
#3
Edited by robertsala at 2018-2-2 22:09

Updated systemd-analyze blame

systemd-analyze blame
          9.801s systemd-journal-flush.service
          9.641s nmbd.service
          8.228s plymouth-quit-wait.service
          7.832s dev-sda2.device
          6.327s exim4.service
          4.505s accounts-daemon.service
          4.484s NetworkManager-wait-online.service
          3.481s systemd-logind.service
          3.479s gdomap.service
          3.366s vboxdrv.service
          2.792s ModemManager.service
          2.659s wpa_supplicant.service
          1.759s smbd.service
          1.663s systemd-tmpfiles-setup.service
          1.634s NetworkManager.service
          1.542s lvm2-monitor.service
          1.321s networking.service
          1.321s systemd-fsck@dev-disk-by\x2duuid-8B51\x2d668B.servi
          1.127s upower.service
          1.099s systemd-udevd.service
          1.068s systemd-tmpfiles-setup-dev.service
           878ms [email protected]
           798ms lightdm.service
           765ms systemd-modules-load.service
           750ms systemd-sysctl.service
           685ms systemd-binfmt.service
           678ms lastore-daemon.service
           633ms dev-hugepages.mount
           618ms systemd-rfkill.service
           589ms polkit.service
           570ms sys-kernel-debug.mount
           541ms proc-sys-fs-binfmt_misc.mount
           529ms dev-mqueue.mount
           463ms deepin-default-settings-network.service
           463ms systemd-random-seed.service
           369ms lm-sensors.service
           336ms miracle-wifid.service
           319ms plymouth-start.service
           241ms systemd-journald.service
           231ms alsa-restore.service
           230ms sysstat.service
           225ms udisks2.service
           200ms miracle-dispd.service
           187ms systemd-timesyncd.service
           185ms kmod-static-nodes.service
           168ms systemd-udev-trigger.service
           153ms systemd-backlight@backlight:intel_backlight.service
           142ms boot-efi.mount
           101ms rc-local.service
           100ms systemd-tmpfiles-clean.service
            97ms vboxautostart-service.service
            88ms plymouth-read-write.service
            87ms hostapd.service
            69ms systemd-user-sessions.service
            48ms systemd-remount-fs.service
            29ms vboxweb-service.service
            28ms vboxballoonctrl-service.service
            22ms systemd-update-utmp.service
             4ms systemd-update-utmp-runlevel.service
             1ms sys-kernel-config.mount
             1ms sys-fs-fuse-connections.mount
lines 44-61/61 (END)

I improved the time. I think I pushed it to its "limit". Considering getting an SSD for the laptop to get faster boot times.
Reply View the author