Another Mint 19.1 slow to boot

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Another Mint 19.1 slow to boot

Post by a.bowers »

I just converted my laptop from an HDD to an SSD, and while I was at it I upgraded from 18.2 to 19.1. But even with the new and much faster benching drive, it doesn't seem to be any faster to boot.

Code: Select all

systemd-analyze
Startup finished in 3.410s (firmware) + 8.631s (loader) + 36.636s (kernel) + 13.569s (userspace) = 1min 2.247s
graphical.target reached after 13.378s in userspace
I'm seeing other folks taking around 6 seconds on the kernel, mine is running at 36.6?

Code: Select all

systemd-analyze blame
11.833s NetworkManager-wait-online.service
          5.465s gpu-manager.service
          5.348s mysql.service
          5.280s plymouth-quit-wait.service
          4.895s bluetooth.service
           656ms dev-sda5.device
           355ms systemd-logind.service
           329ms NetworkManager.service
           313ms udisks2.service
           260ms loadcpufreq.service
           253ms ubuntu-system-adjustments.service
           242ms networkd-dispatcher.service
           241ms snapd.service
           219ms systemd-journal-flush.service
           217ms ModemManager.service
           200ms upower.service
           197ms avahi-daemon.service
           194ms grub-common.service
           194ms accounts-daemon.service
           190ms tlp.service
           184ms thermald.service
           169ms apport.service
           149ms speech-dispatcher.service
           148ms systemd-resolved.service
           146ms wpa_supplicant.service
           146ms lightdm.service
           141ms systemd-timesyncd.service
           137ms lm-sensors.service
           125ms keyboard-setup.service
           110ms systemd-udev-trigger.service
           102ms lvm2-monitor.service
            92ms alsa-restore.service
            82ms systemd-cryptsetup@cryptswap1.service
            81ms systemd-udevd.service
            77ms virtualbox.service
            73ms pppd-dns.service
            71ms apparmor.service
            69ms systemd-journald.service
            59ms geoclue.service
            51ms run-rpc_pipefs.mount
            51ms systemd-modules-load.service
            44ms user@1000.service
            42ms polkit.service
            38ms resolvconf-pull-resolved.service
            36ms systemd-fsck@dev-disk-by\x2duuid-4AAA\x2dA3A3.service
            34ms networking.service
            23ms systemd-fsck@dev-disk-by\x2duuid-9d188bbb\x2dc2ad\x2d4fef\x2d8305\x2dc8c96bd06456.service
            21ms cpufrequtils.service
            20ms blk-availability.service
            19ms sys-kernel-debug.mount
            19ms dev-hugepages.mount
            19ms systemd-tmpfiles-setup.service
            18ms systemd-sysctl.service
            18ms rsyslog.service
            15ms plymouth-start.service
            14ms home.mount
            13ms dns-clean.service
            13ms colord.service
            13ms kerneloops.service
            12ms ufw.service
            12ms hddtemp.service
            12ms snapd.seeded.service
            12ms systemd-tmpfiles-setup-dev.service
            11ms ureadahead-stop.service
            11ms systemd-remount-fs.service
            11ms rpcbind.service
            11ms setvtrgb.service
            10ms sys-kernel-config.mount
            10ms sys-fs-fuse-connections.mount
            10ms nfs-config.service
             9ms plymouth-read-write.service
             8ms console-setup.service
             8ms rtkit-daemon.service
             8ms systemd-random-seed.service
             7ms dev-mqueue.mount
             7ms boot-efi.mount
             7ms systemd-update-utmp.service
             6ms dlm.service
             6ms dev-mapper-cryptswap1.swap
             6ms kmod-static-nodes.service
             5ms systemd-update-utmp-runlevel.service
             4ms systemd-user-sessions.service
             4ms openvpn.service
             4ms systemd-backlight@backlight:intel_backlight.service
             3ms resolvconf.service
             3ms systemd-backlight@leds:dell::kbd_backlight.service
           843us snapd.socket
Any ideas?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

My Core 2 Duo at 3GHz needs 3.5s for kernel; yes, definitively something wrong there. Browse through dmesg | less and specifically look for the spot where the time stamp at the beginning of the line jumps. I'd expect that would provide for the needed hint. USB perhaps?
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Re: Another Mint 19.1 slow to boot

Post by a.bowers »

Something to this effect:

Code: Select all

[    5.379821] Btrfs loaded, crc32c=crc32c-intel
[   36.535103] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Re: Another Mint 19.1 slow to boot

Post by a.bowers »

I'm reading some stuff about converting from a swap partition to a swap file. Would this have an effect?
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

No time between the btrfs message and mounting of / for me. No, swap is not the issue for you. Was the SSD you upgraded to completely new? Even if so I once encountered same/similar with a new Intel 120G SSD: it needed a full, "secure" erase to restore it to full working condition and speed.

You can do so with Linux but if you have a possibility to hook it up to a Windows system as a secondary drive you can use the manufacturer tool; will also allow you to check for updated firmware....
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Re: Another Mint 19.1 slow to boot

Post by a.bowers »

The SSD is a brand new Samsung 860 EVO 1TB. System is dual boot Windows/Linux. I'll boot into WIndows and see if there's a firmware update

EDIT: No firmware update, there was something about "rapid mode" in there. Didn't seem to help much. Booting into Windows is mighty quick, though I know how they accomplish that.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

Assuming that won't help (good idea regardless...) it does seem your swap partition may be involved. The delay is a bit too neatly 30 seconds; sounds like a possible issue with the initramfs attempting to resume from a non-existing swap device.

Assuming you still have a swap partition, do the UUID's in RESUME= of /etc/initramfs-tools/conf.d/resume and the output of blkid match? If not, try updating the former manually, if yes or if no current swap partition, make it be "RESUME=none". Then run sudo update-initramfs -u -k all and reboot to test.
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Re: Another Mint 19.1 slow to boot

Post by a.bowers »

Code: Select all

cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=179696ed-ff76-433f-b033-741b27c97d6d

Code: Select all

blkid
/dev/sda1: LABEL="Recovery" UUID="8836AA2A36AA1968" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="cb5e4bbd-8c6f-4e82-a29d-cb91231f684a"
/dev/sda2: UUID="4AAA-A3A3" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="8e386ede-4e65-462a-8c8b-2daf8021749d"
/dev/sda4: UUID="5670AD1A70AD01BB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ab510abc-4e5a-4d70-8ab0-23d2003d4d77"
/dev/sda5: UUID="32cef84e-3d25-42fa-b136-e0cd3748df81" TYPE="ext4" PARTUUID="8c08e45b-8799-40c6-aa66-4ff89e6760c5"
/dev/sda6: UUID="05389242-67a2-4a39-a3cd-85f5b2cb8366" TYPE="swap" PARTUUID="640a284c-3a8d-4aac-9167-6dead98b8be8"
/dev/sda7: UUID="9d188bbb-c2ad-4fef-8305-c8c96bd06456" TYPE="ext4" PARTUUID="2989ff74-63be-4cd3-b6de-8185ffcaf1f2"
It seems they don't. I set it to "none" and that sped things up considerably. Since I don't have the option to hibernate, is there a reason to have it look for a swap to resume from?
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

a.bowers wrote: Fri Dec 21, 2018 11:04 am Since I don't have the option to hibernate, is there a reason to have it look for a swap to resume from?
Not having the option is somewhat relative (it's not hard to re-enable) but otherwise, no. Still, seeing as how you do still have a bona fide swap partition I'd plug in the UUID manually anyway even if only so as to have things standard:

/etc/initramfs-tools/conf.d/resume:

Code: Select all

RESUME=UUID=05389242-67a2-4a39-a3cd-85f5b2cb8366
and sudo update-initramfs -u -k all.
User avatar
Pepi
Level 6
Level 6
Posts: 1305
Joined: Wed Nov 18, 2009 7:47 pm

Re: Another Mint 19.1 slow to boot

Post by Pepi »

When I was testing Mint 19 I noticed that if I booted off the ISO on a USB drive boot time was fast as 18.3 Once I would install the ISO to a harddrive is where I got the long boot times? This is the reason I gave up on Mint 19 (All desktops)
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

Your issue may have been the same, then.
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Re: Another Mint 19.1 slow to boot

Post by a.bowers »

That pared it down a bit: Startup finished in 3.412s (firmware) + 11.749s (loader) + 12.304s (kernel) + 8.471s (userspace) = 35.938s
graphical.target reached after 8.285s in userspace
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

Kernel time still seems high though unless perhaps you are loading firmware for Wi-Fi or alike. Perhaps try digging around dmesg some more...
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Re: Another Mint 19.1 slow to boot

Post by a.bowers »

Well, there's this nonsense about my mouse:

Code: Select all

[    3.435899] logitech-hidpp-device 0003:046D:406F.0009: input,hidraw3: USB HID v1.11 Keyboard [Logitech MX Ergo] on usb-0000:00:14.0-2:2
[    8.673693] input: Logitech Unifying Device. Wireless PID:1028 as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2/0003:046D:C52B.0004/0003:046D:1028.0008/input/input10
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

Yes, that seems a definite further issue. 5 seconds where they should be none. What I'd try first of all is move the receiver to a different port (physically, and if applicable, USB2 to USB3 or vice versa). If nothing, try a different mouse. I nothing, look in the BIOS settings for anything USB related. It's not a common issue at the very least so can't be more to the point directly.

Once those 5 seconds are gone we're at 7 seconds and that would be the point I'd ask for output of inxi -Fxz to decide whether or not it's now looking to be okay...
dave0808
Level 5
Level 5
Posts: 986
Joined: Sat May 16, 2015 1:02 pm

Re: Another Mint 19.1 slow to boot

Post by dave0808 »

Editing

Code: Select all

/etc/initramfs-tools/conf.d/resume
did it for me. It had a reference to a UUID that didn't exist, possibly because the swap partition on my system existed from when I insalled 18, then I did the fresh install to LM 19.1. I edited the file and changed the UUID to that of my swap partition and boot times reduced from 45s back down to 10s. :D
a.bowers
Level 2
Level 2
Posts: 62
Joined: Mon Nov 24, 2014 3:50 pm

Re: Another Mint 19.1 slow to boot

Post by a.bowers »

Swapping the unifying transceiver to another port sped things up considerably. We're now talking about 4.7 seconds for the kernel. I wonder if I could trim a little more speed off by ditching the transceiver entirely and using the mouse in Bluetooth mode. Not really going to bother though.

I also managed to fix an unrelated problem: When I'm at home, I use this laptop with dual monitors. It's only got one HDMI out port, but I have a DisplayLink USB dock. In 18.2, it seemed to work best with one monitor plugged into the laptop via HDMI, and the other via DVI on the dock. Suddenly in 19.1, if I was multitasking at all (CAD on one monitor, Youtube on another) I got horrendous mouse cursor flicker. Now I've plugged both monitors into the DisplayLink dock, and it's working fine. *shrug* Isn't USB3 astonishing?
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Another Mint 19.1 slow to boot

Post by rene »

4.7 for kernel is starting to sound okay; I'd guess a 2.2GHz mobile processor. If ballparkish right, I'd say things are looking fine now.
Locked

Return to “Installation & Boot”