Author Topic: Linux Mint 18 - very slow boot time  (Read 3070 times)

0 Members and 1 Guest are viewing this topic.

Offline DiegoCom

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Linux Mint 18 - very slow boot time
« on: November 01, 2017, 01:52:30 pm »
Hi,
I have recently upgraded to Linux Mint 18 (and then 18.2): the boot time seems to be really slower than before.
Reporting the result of a few commandsI 've run:

systemd-analyze critical-chain
Code: [Select]
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @1min 55.132s
??multi-user.target @1min 55.132s
  ??smbd.service @1min 54.648s +483ms
    ??nmbd.service @1min 46.319s +8.316s
      ??network-online.target @1min 46.297s
        ??NetworkManager-wait-online.service @1min 39.720s +6.575s
          ??NetworkManager.service @1min 35.520s +4.177s
            ??dbus.service @1min 33.747s
              ??basic.target @1min 33.425s
                ??sockets.target @1min 33.425s
                  ??cups.socket @1min 33.425s
                    ??sysinit.target @1min 33.380s
                      ??brltty.service @10.070s
                        ??systemd-journald.socket @3.193s
                          ??-.mount @3.126s
                            ??system.slice @3.193s
                              ??-.slice @3.126s
systemd-analyze blame
Code: [Select]
          8.849s dev-sda7.device
          8.316s nmbd.service
          7.939s samba-ad-dc.service
          6.575s NetworkManager-wait-online.service
          4.430s ModemManager.service
          4.177s NetworkManager.service
          3.954s accounts-daemon.service
          3.150s lvm2-monitor.service
          2.789s networking.service
          2.750s grub-common.service
          2.662s irqbalance.service
          2.479s console-setup.service
          2.448s virtualbox-guest-utils.service
          2.283s speech-dispatcher.service
          2.193s systemd-logind.service
          2.186s ondemand.service
          2.103s console-kit-log-system-start.service
          2.100s rsyslog.service
          2.022s bluetooth.service
          1.802s alsa-restore.service
          1.790s pppd-dns.service
          1.786s systemd-user-sessions.service
          1.745s polkitd.service
          1.627s systemd-journald.service
          1.495s keyboard-setup.service
          1.452s systemd-tmpfiles-setup.service
          1.374s systemd-tmpfiles-setup-dev.service
          1.261s upower.service
          1.222s binfmt-support.service
          1.113s systemd-udevd.service
          1.060s systemd-modules-load.service
          1.048s udisks2.service
          1.013s lm-sensors.service
           975ms avahi-daemon.service
           881ms sys-kernel-debug.mount
           806ms dev-hugepages.mount
           658ms systemd-rfkill.service
           649ms ufw.service
           599ms dns-clean.service
           557ms kmod-static-nodes.service
           548ms colord.service
           483ms smbd.service
           376ms wpa_supplicant.service
           352ms resolvconf.service
           325ms dev-mqueue.mount
           313ms systemd-journal-flush.service
           279ms hddtemp.service
           277ms systemd-random-seed.service
           270ms systemd-update-utmp.service
           207ms proc-sys-fs-binfmt_misc.mount
           196ms systemd-backlight@backlight:acpi_video0.service
           187ms rtkit-daemon.service
           185ms user@1000.service
           155ms systemd-udev-trigger.service
           106ms setvtrgb.service
            94ms systemd-tmpfiles-clean.service
            85ms plymouth-quit-wait.service
            85ms plymouth-quit.service
            84ms systemd-sysctl.service
            79ms console-kit-daemon.service
            60ms systemd-remount-fs.service
            58ms systemd-backlight@backlight:nv_backlight.service
            17ms plymouth-start.service
            14ms rc-local.service
            14ms ntp.service
            13ms plymouth-read-write.service
            11ms ureadahead-stop.service
             6ms systemd-update-utmp-runlevel.service
             5ms sys-fs-fuse-connections.mount

sudo blkid
Code: [Select]
[sudo] password di diego: 
/dev/sda1: LABEL="RECOVERY" UUID="7C908D2C908CEE48" TYPE="ntfs" PARTUUID="9637c771-01"
/dev/sda2: LABEL="SYSTEM" UUID="5CA88DBEA88D9764" TYPE="ntfs" PARTUUID="9637c771-02"
/dev/sda3: UUID="F0328F8A328F548E" TYPE="ntfs" PARTUUID="9637c771-03"
/dev/sda5: LABEL="Dati" UUID="5EE7223B5614D1AA" TYPE="ntfs" PARTUUID="9637c771-05"
/dev/sda6: UUID="89d94a34-8cd7-407b-8e50-fe9d0d8b8fbd" TYPE="swap" PARTUUID="9637c771-06"
/dev/sda7: UUID="c7af44e9-0efb-4a34-bbed-e0f768c9f4a8" TYPE="ext4" PARTUUID="9637c771-07"



xed /etc/fstab
Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=c7af44e9-0efb-4a34-bbed-e0f768c9f4a8 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda8 during installation
#UUID=edd57607-f5a1-4be1-b1f7-ecaa5fe82dac none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17351
  • Karma: 442
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Linux Mint 18 - very slow boot time
« Reply #1 on: November 01, 2017, 02:05:25 pm »
Just as a test, what happens if you comment out this line in fstab:
Code: [Select]
/dev/mapper/cryptswap1 none swap sw 0 0
then run:
Code: [Select]
sudo swapoff -a
then reboot ?

I'm just trying to figure out if it's a swap problem.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline DiegoCom

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Linux Mint 18 - very slow boot time
« Reply #2 on: November 01, 2017, 02:24:00 pm »
I got a similar boot time: (in the meantime I had also updated its UUID in my fstab with the one reported by blkid)

Code: [Select]
graphical.target @1min 45.339s
??multi-user.target @1min 45.339s
  ??smbd.service @1min 44.926s +412ms
    ??nmbd.service @1min 41.848s +3.047s
      ??network-online.target @1min 41.827s
        ??NetworkManager-wait-online.service @1min 36.346s +5.480s
          ??NetworkManager.service @1min 33.807s +2.519s
            ??dbus.service @1min 33.338s
              ??basic.target @1min 33.314s
                ??sockets.target @1min 33.314s
                  ??cups.socket @1min 33.314s
                    ??sysinit.target @1min 33.279s
                      ??systemd-update-utmp.service @13.482s +489ms
                        ??systemd-tmpfiles-setup.service @12.035s +1.429s
                          ??local-fs.target @12.013s
                            ??run-user-1000-gvfs.mount @2min 8.908s
                              ??run-user-1000.mount @2min 2.900s
                                ??local-fs-pre.target @12.013s
                                  ??lvm2-monitor.service @3.262s +8.750s
                                    ??lvm2-lvmetad.service @4.230s


Code: [Select]
         10.054s dev-sda7.device
          8.750s lvm2-monitor.service
          5.480s NetworkManager-wait-online.service
          4.849s networking.service
          3.047s nmbd.service
          2.694s samba-ad-dc.service
          2.626s ModemManager.service
          2.519s NetworkManager.service
          2.391s accounts-daemon.service
          2.283s systemd-tmpfiles-setup-dev.service
          2.176s systemd-udevd.service
          1.896s upower.service
          1.586s colord.service
          1.518s keyboard-setup.service
          1.508s grub-common.service
          1.429s systemd-tmpfiles-setup.service
          1.413s console-setup.service
          1.391s irqbalance.service
          1.373s rsyslog.service
          1.327s systemd-journald.service
          1.108s binfmt-support.service
          1.040s udisks2.service
           873ms systemd-modules-load.service
Code: [Select]

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=c7af44e9-0efb-4a34-bbed-e0f768c9f4a8 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda8 during installation
UUID=[b]89d94a34-8cd7-407b-8e50-fe9d0d8b8fbd[/b] none            swap    sw              0       0
#/dev/mapper/cryptswap1 none swap sw 0 0

Offline DiegoCom

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Linux Mint 18 - very slow boot time
« Reply #3 on: November 01, 2017, 08:48:19 pm »
Hi Mark,
thanks for your advise. I've investigated further resolving the issue.
It seems that /etc/crypttab got corrupted (was pointing to the wrong device/UUID);so I turned swap off, reformatted the sd, updated initramfs, turned swap on and re-encrypted the sd.

At the moment it takes still longer than mint 17.3 but as not as long as before (about 35 seconds)

Code: [Select]
graphical.target @34.159s
??multi-user.target @34.159s
  ??smbd.service @33.770s +388ms
    ??nmbd.service @30.894s +2.854s
      ??network-online.target @30.858s
        ??NetworkManager-wait-online.service @24.934s +5.923s
          ??NetworkManager.service @22.243s +2.672s
            ??dbus.service @15.756s
              ??basic.target @15.567s
                ??paths.target @15.566s
                  ??cups.path @15.566s
                    ??sysinit.target @15.470s
                      ??cryptsetup.target @15.470s
                        ??systemd-cryptsetup@cryptswap1.service @13.850s +1.619s
                          ??dev-disk-by\x2duuid-3029cb7d\x2d96ce\x2d45e2\x2d9d21\x2dc0b6e8b4b144.device @13.827s

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17351
  • Karma: 442
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Linux Mint 18 - very slow boot time
« Reply #4 on: November 09, 2017, 12:23:58 pm »
Great news, thanks for the update and solution :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal