very slow, extremely slow boot

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
eduzen
Level 1
Level 1
Posts: 2
Joined: Fri Nov 18, 2016 5:00 pm
Location: Buenos Aires

very slow, extremely slow boot

Post by eduzen » Fri Nov 18, 2016 5:21 pm

Hi all! I'm from Argentina and It's my first post. I have some problems with my linux mint 18 over a DELL inspiron 13 with ssd. Linux 4.4.0-38-generic #57-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

I have been searching over the forum and I took some tips and I did:

Code: Select all

 sudo systemctl disable ntp  
And now It works better, but It is a not very fast/normal boot:

Code: Select all

graphical.target @2.096s
└─multi-user.target @2.096s
  └─mysql.service @1.075s +1.021s
    └─network.target @1.058s
      └─wpa_supplicant.service @1.321s +14ms
        └─basic.target @771ms
          └─sockets.target @771ms
            └─dbus.socket @771ms
pd: I also added the noatime to my fstab / home partions

Thanks a lot!

DeMus
Level 6
Level 6
Posts: 1029
Joined: Sat Aug 15, 2009 5:11 pm

Re: very slow, extremely slow boot

Post by DeMus » Fri Nov 18, 2016 5:46 pm

With all respect, but I really don't know why you are complaining about slow boots.
A target of 2.096s is extremely fast.
I measured it at my computer and I finish @8.899s.
Two lines I don't like in this graph are:

network-online.target @8.717s
└─NetworkManager-wait-online.service @1.176s +7.539s

No idea why this happens.

User avatar
Flemur
Level 14
Level 14
Posts: 5020
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: very slow, extremely slow boot

Post by Flemur » Fri Nov 18, 2016 7:22 pm

And now It works better, but It is a not very fast/normal boot:
"How slow as it, Johnny?"
A target of 2.096s is extremely fast.
I measured it at my computer and I finish @8.899s.
The 2 sec isn't the boot time.
Those (apparently) critical-chain numbers aren't boot times - mine are similar to OP's but my boot time is about 8-9 sec.
Which is why I asked the OP to give his boot time...

Code: Select all

$ systemd-analyze
Startup finished in 5.334s (kernel) + 2.919s (userspace) = 8.253s
seems to be a decent approximation. Stopwatch is probably the best way to get the real time.

Code: Select all

systemd-analyze blame
should show slow components.

Edit:
I had "NetworkManager-wait-online.service" apparently taking up a lot of time (5 sec? IIRC) so disabled it and everything works except it didn't boot faster...
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
eduzen
Level 1
Level 1
Posts: 2
Joined: Fri Nov 18, 2016 5:00 pm
Location: Buenos Aires

Re: very slow, extremely slow boot

Post by eduzen » Sun Nov 20, 2016 2:05 pm

The true is that I don't know what is a typical boot time, but I compare time with another laptop with mint with ssd...
Stopwatch is probably the best way to get the real time.
I measured the time and It took 1 min and 15 sec to boot.
Code: Select all
systemd-analyze blame

should show slow components.

Code: Select all

          1.021s mysql.service
           672ms lvm2-monitor.service
           516ms dev-sda1.device
           276ms ModemManager.service
           193ms systemd-logind.service
           186ms accounts-daemon.service
           175ms networking.service
           156ms loadcpufreq.service
           133ms NetworkManager.service
           133ms grub-common.service
           130ms ondemand.service
           117ms avahi-daemon.service
           114ms speech-dispatcher.service
           104ms irqbalance.service
            99ms systemd-rfkill.service
            98ms hddtemp.service
            92ms alsa-restore.service
            88ms lm-sensors.service
            84ms apparmor.service
            83ms console-kit-log-system-start.service
            75ms systemd-user-sessions.service
            63ms kmod-static-nodes.service
            62ms console-setup.service
            61ms keyboard-setup.service
            61ms systemd-udevd.service
            59ms systemd-udev-trigger.service
            58ms ufw.service
            55ms rsyslog.service
            53ms sys-kernel-debug.mount
            53ms upower.service
            50ms binfmt-support.service
            49ms bluetooth.service
            48ms systemd-tmpfiles-setup-dev.service
            39ms dev-hugepages.mount
            35ms systemd-journald.service
            35ms thermald.service
            32ms dev-disk-by\x2duuid-6072abe4\x2d1ffc\x2d44a4\x2d9275\x2da7258e81a466.swap
            31ms colord.service
            26ms cpufrequtils.service
            26ms udisks2.service
            24ms plymouth-quit.service
            23ms user@1000.service
            22ms dns-clean.service
            22ms polkitd.service
            19ms systemd-update-utmp.service
And ...

Code: Select all

systemd-analyze      
Startup finished in 3.440s (kernel) + 2.302s (userspace) = 5.742s

venik212
Level 1
Level 1
Posts: 30
Joined: Thu Aug 25, 2011 12:05 pm

Re: very slow, extremely slow boot

Post by venik212 » Mon Nov 21, 2016 2:44 am

My NUC5i5RYK (with Mint 18, Cinnamon 3, 16 gb ram, 250 gb ssd) takes 34.8 sec to boot, of which
18.8 sec is firmware (MUCH longer than in the past), 5.2 sec loader, 1.9 sec kernel, and 8.9 sec user space.
It used to boot MUCH faster (~10 sec) until a recent "upgrade" of the BIOS, and perhaps some Mint "update-upgrades"
;-(

Post Reply

Return to “Newbie Questions”