[SOLVED]Mint 18 Cinnamon slow boot time 2 min 50 second

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
venik212
Level 1
Level 1
Posts: 30
Joined: Thu Aug 25, 2011 12:05 pm

Re: [solved] Mint 18 Cinnamon slow boot time 2 min 50 second

Post by venik212 » Mon Aug 01, 2016 6:48 am

My NUC5i5RUK (16 gb ram, 250 gb SSD) also takes almost 3 minutes to boot into Sara/Cinnamon, although the very same hardware used to boot into Rebecca/Cinnamon in less than 10 seconds. I did an upgrade from 17.3, not a fresh install.
The system log says: Startup finished in 1.817s (kernel) + 3min 571ms (userspace) = 3min 14.306s.

The output of systemd-analyze blame is not very illuminating-- the first item is: dev-sda2.device=1.126 s, and the rest a bunch of 300 msec items. So it seems that the time is consumed by Mint doing something that systemd-analyze cannot see?
Last edited by venik212 on Mon Aug 01, 2016 1:45 pm, edited 1 time in total.

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: [solved] Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Mon Aug 01, 2016 8:23 am

I guess sda2 is the swap ?
Become a Linux Mint donor today

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: [solved] Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Mon Aug 01, 2016 8:25 am

N O T S O L V E D

by the way !
Become a Linux Mint donor today

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

Re: [solved] Mint 18 Cinnamon slow boot time 2 min 50 second

Post by venik212 » Mon Aug 01, 2016 1:49 pm

No-- sda2 is the main partition. The swap is sda3.

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: [solved] Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Mon Aug 01, 2016 4:33 pm

when sda2 is the root part,
then may be -
it is doing a fsck on every boot (like Debian is doing it since 'Jessie' always) [ ? ]
Become a Linux Mint donor today

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

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by venik212 » Mon Aug 01, 2016 11:32 pm

I shall look for fsck in the system log, but I remind you that the very same hardware and partition table was used in Mint 17.3, from which I upgraded to 18, and 17.3 used to boot in about 10 seconds or less.
Here is the fsck from the system log-- it takes much less than 1 second:

05:38:51 udi-nuc systemd-fsck[2258]: fsck.fat 3.0.28 (2015-05-16)
Aug 2 05:38:51 udi-nuc systemd-fsck[2258]: /dev/sda1: 15 files, 1839/130812 clusters
Aug 2 05:38:51 udi-nuc systemd[1]: Started File System Check on /dev/disk/by-uuid/E208-FFAA.
Aug 2

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Tue Aug 02, 2016 9:34 am

mhm.

Then we have to wait for someone who really can solve this issue.
I guess, it has to be someone from Ubuntu...
Become a Linux Mint donor today

deepakdeshp
Level 10
Level 10
Posts: 3371
Joined: Sun Aug 09, 2015 10:00 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by deepakdeshp » Tue Aug 02, 2016 3:40 pm

I guess Ubuntu people are specialists in Ubuntu and this forum has very helpful and knowledgeable Mint spcialists
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by austin.texas » Tue Aug 02, 2016 5:04 pm

Open a terminal and enter:

Code: Select all

dmesg > dmesg.txt
Then:

Code: Select all

xed dmesg.txt
Check the time (in seconds) in the first column.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Tue Aug 02, 2016 5:25 pm

DualCore tux # dmesg > dmesg.txt
DualCore tux # xed dmesg.txt
No protocol specified
Failed to connect to Mir: Failed to connect to server socket: Datei oder Verzeichnis nicht gefunden
Unable to init server: Verbindung ist gescheitert: Verbindungsaufbau abgelehnt

(xed:9309): Gtk-WARNING **: cannot open display: :0
DualCore tux #
Become a Linux Mint donor today

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by austin.texas » Tue Aug 02, 2016 5:34 pm

Try it as USER, not root.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Tue Aug 02, 2016 5:34 pm

@austin.texas:
I encounter 3 min boot delay; see my paste bin of my dmseg, pls:

http://pastebin.com/zCV1Wbt3
Become a Linux Mint donor today

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Tue Aug 02, 2016 5:37 pm

austin.texas wrote:Try it as USER, not root.

= no way :
permitted. &

sudo dmesg > dmesg.txt
= same; permitted.
Become a Linux Mint donor today

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Tue Aug 02, 2016 5:41 pm

@austin.texas:
pls see:
Sarah Ci 64bit - boot delay _# systemd-analyze blame

http://pastebin.com/ukgy8rhF
Become a Linux Mint donor today

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by austin.texas » Tue Aug 02, 2016 5:43 pm

Code: Select all

[   34.014410] usblp 6-2:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1117
[   34.014731] usbcore: registered new interface driver usblp
[  105.850238] cgroup: new mount options do not match the existing superblock, will be ignored
[  109.246989] usblp0: removed

Code: Select all

[  115.241891] wlx7cdd905f667a: associated
[  115.241950] IPv6: ADDRCONF(NETDEV_CHANGE): wlx7cdd905f667a: link becomes ready
[  764.981653] usblp 6-2:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1117
[ 2141.589768] usblp0: removed
[ 2144.865187] usblp 6-2:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1117
[ 2323.517592] usblp0: removed
Both of these big delays are your printer. Try it without your printer.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
Rebel450
Level 1
Level 1
Posts: 31
Joined: Wed Aug 20, 2014 9:09 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by Rebel450 » Tue Aug 02, 2016 5:46 pm

austin.texas wrote:

Code: Select all

[   34.014410] usblp 6-2:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1117
[   34.014731] usbcore: registered new interface driver usblp
[  105.850238] cgroup: new mount options do not match the existing superblock, will be ignored
[  109.246989] usblp0: removed

Code: Select all

[  115.241891] wlx7cdd905f667a: associated
[  115.241950] IPv6: ADDRCONF(NETDEV_CHANGE): wlx7cdd905f667a: link becomes ready
[  764.981653] usblp 6-2:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1117
[ 2141.589768] usblp0: removed
[ 2144.865187] usblp 6-2:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1117
[ 2323.517592] usblp0: removed
Both of these big delays are your printer. Try it without your printer.
right. but thatz printer was attached / removed today - the problem alraedy exists before the printer was there.
Btw:
Same funny thing like the othjer guy inhere:
Rafaela and Rosa are running just fine - on the same machine ....

So what do you think about the :
"# systemd-analyze blame
3min 45.013s ntp.service" ...
Become a Linux Mint donor today

deepakdeshp
Level 10
Level 10
Posts: 3371
Joined: Sun Aug 09, 2015 10:00 am

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by deepakdeshp » Tue Aug 02, 2016 6:36 pm

austin.texas wrote:Open a terminal and enter:

Code: Select all

dmesg > dmesg.txt
Then:

Code: Select all

xed dmesg.txt
Check the time (in seconds) in the first column.
Thank you. I have posted the dmesg command output below. But I am not able to draw any conclusion'

Code: Select all

 55.038567] [drm] ib test on ring 4 succeeded in 0 usecs
[  148.452514] Bluetooth: RFCOMM TTY layer initialized
[  148.452530] Bluetooth: RFCOMM socket layer initialized
[  148.452543] Bluetooth: RFCOMM ver 1.11
[ 2854.991399] userif-3: sent link down event.
[ 2854.991409] userif-3: sent link up event.
[ 6082.882435] userif-3: sent link down event.
[ 6082.882448] userif-3: sent link up event.

Code: Select all

 systemd-analyze blame
         18.672s NetworkManager-wait-online.service
         16.832s apt-daily.service
          9.696s dev-sda12.device
          8.942s vmware-USBArbitrator.service
          5.440s vmware-workstation-server.service
          5.086s accounts-daemon.service
          4.758s loadcpufreq.service
          4.711s systemd-fsck@dev-disk-by\x2duuid-3446\x2d8563.service
          3.894s networking.service
          3.698s ModemManager.service
          3.492s NetworkManager.service
          3.079s lvm2-monitor.service
          2.924s vmware.service
          2.840s samba-ad-dc.service
          2.708s speech-dispatcher.service
          2.688s console-kit-log-system-start.service
          2.641s lm-sensors.service
          2.622s gpu-manager.service
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB

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

Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by venik212 » Wed Aug 03, 2016 8:30 am

I did not learn much from the response to dmesg, but
systemd-analyze produced:
Startup finished in 6.946s (firmware) + 10.648s (loader) + 1.798s (kernel) + 3min 518ms (userspace) = 3min 19.911s
-----
and systemd-analyze critical-chain produced this suggestive output. The problem is how to use it to cut the boot time to its pre-18 level of about 10 seconds:
$ sudo systemd-analyze critical-chain
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 30.911s
└─mdm.service @1min 30.911s
└─systemd-user-sessions.service @1min 30.326s +20ms
└─basic.target @1min 30.289s
└─sockets.target @1min 30.289s
└─cups.socket @1min 30.289s
└─sysinit.target @1min 30.268s
└─systemd-update-utmp.service @1.330s +25ms
└─systemd-tmpfiles-setup.service @1.291s +22ms
└─local-fs.target @1.287s
└─run-user-1000-gvfs.mount @1min 31.738s
└─run-user-1000.mount @1min 31.112s
└─local-fs-pre.target @702ms
└─lvm2-monitor.service @139ms +563ms
└─lvm2-lvmetad.service @189ms
└─system.slice @118ms
└─-.slice @115ms
----
What is "userspace"?

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

SOLVED--Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by venik212 » Thu Aug 04, 2016 10:38 am

I finally figured it out.
During the upgrade from 17.3 to 18, the UUID of my swap partition changed so it did not match the UUID listed in fstab. The system was trying to find the swap partition with the wrong UUID, and wasted almost 3 minutes doing so before it gave up and proceeded with the boot process.
Once I turned swapoff (in gparted) (and commented out the swap-related line in /etc/fstab), the same system now boots in 8.8 seconds instead of approximately 3 minutes.
It seems to be a soft spot in Linux, which enables the UUID listed in fstab to differ from the one you get with the blkid command.
Since I have 16 gb of ram, I doubt whether I shall ever need a swap partition, so I shall live swapless, at least for now.
Perhaps I should add my disappointment that the clever and useful debugging tools like systemd-xxxx etc. failed to finger the problem.

System: NUC5i5RYK, 16 gb RAM, 250 gb SSD, Mint 18.0/cinnamon.
Last edited by venik212 on Thu Aug 04, 2016 1:51 pm, edited 1 time in total.

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: SOLVED--Re: Mint 18 Cinnamon slow boot time 2 min 50 second

Post by austin.texas » Thu Aug 04, 2016 11:39 am

I also deleted my swap partition, for some different reasons. With 8 GB ram, I probably will never need it.
However, I covered the possibility of needing swap by installing the swapspace program, which is a dynamic swap space manager.
Small, stable system add-on that continuously and automatically adapts available virtual memory space to your
actual memory needs. Claims disk space for use as swap space when needed; frees it up for use by the filesystem when not needed.
Homepage: http://pqxx.org/development/swapspace

Code: Select all

sudo apt-get install swapspace
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Post Reply

Return to “Installation & Boot”