daveyp1
Posts: 5
Joined: Sat Aug 26, 2017 5:31 pm

Very Slow Boot Time - 2 minutes to usable desktop

Sat Aug 26, 2017 5:43 pm

Hi
I am experiencing extremely slow boot times.
Approx 60 - 70 seconds to Log in Screen, and once I have placed my password am waiting another 50ish seconds to a usable desktop.
I have no idea why, it is a New PC, with specs that should be well below this sort of time.
Would really appreciate any advice :) , here are my details should they help.

Running Solus 3 Budgie with Kernel 4.12.9-14
CPU: Intel® Pentium(R) CPU G4560 @ 3.50GHz × 4
8 GB DDR 4 RAM

Output from systemd-analyse:
Startup finished in 11.438s (firmware) + 245ms (loader) + 1.088s (kernel) + 1.577s (initrd) + 48.618s (userspace) = 1min 2.969s

Output from systemd-analyse-blame:
40.451s systemd-journal-flush.service
23.568s udisks2.service
4.904s systemd-journald.service
4.183s ufw.service
1.448s apparmor.service
1.258s lightdm.service
1.155s systemd-logind.service
1.149s systemd-resolved.service
1.054s NetworkManager.service
961ms systemd-sysctl.service
860ms bluetooth.service
795ms on-demand-cpupower.service
786ms sys-kernel-debug.mount
751ms tmp.mount
751ms dev-mqueue.mount
750ms systemd-vconsole-setup.service
734ms systemd-remount-fs.service
733ms dev-hugepages.mount
700ms systemd-udevd.service
598ms systemd-udev-trigger.service
586ms polkit.service
473ms user@1000.service
416ms colord.service
388ms systemd-user-sessions.service
387ms clr-boot-manager-booted.service
301ms geoclue.service
286ms systemd-tmpfiles-setup-dev.service
286ms accounts-daemon.service
273ms dev-sda2.swap
273ms dev-disk-by\x2duuid-87fcb964\x2d7e89\x2d487e\x2da452\x2d5f14326
263ms systemd-tmpfiles-setup.service
225ms upower.service
137ms wpa_supplicant.service
112ms kmod-static-nodes.service
106ms systemd-timesyncd.service
74ms systemd-random-seed.service
74ms systemd-update-utmp.service
28ms systemd-rfkill@rfkill0.service
12ms alsa-restore.service
4ms sys-fs-fuse-connections.mount
177us snapd.socket

Output from systemd-analyze critical-chain:
graphical.target @48.200s
└─multi-user.target @48.200s
└─plexmediaserver.service @48.200s
└─network.target @48.199s
└─NetworkManager.service @47.142s +1.054s
└─dbus.service @46.354s
└─basic.target @46.352s
└─sockets.target @46.352s
└─snapd.socket @46.352s +177us
└─sysinit.target @46.352s
└─systemd-timesyncd.service @46.245s +106ms
└─systemd-tmpfiles-setup.service @45.965s +263ms
└─systemd-journal-flush.service @5.513s +40.451s
└─systemd-journald.service @608ms +4.904s
└─systemd-journald.socket
└─-.slice

User avatar
kyrios
Posts: 2161
Joined: Thu Sep 22, 2016 4:20 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Sat Aug 26, 2017 5:56 pm

daveyp1 wrote:
Sat Aug 26, 2017 5:43 pm
40.451s systemd-journal-flush.service
what's the output of

Code: Select all

journalctl --disk-usage

daveyp1
Posts: 5
Joined: Sat Aug 26, 2017 5:31 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Sat Aug 26, 2017 7:19 pm

kyrios wrote:
Sat Aug 26, 2017 5:56 pm
daveyp1 wrote:
Sat Aug 26, 2017 5:43 pm
40.451s systemd-journal-flush.service
what's the output of

Code: Select all

journalctl --disk-usage
Hi, thanks for the response. The output is:

Archived and active journals take up 16.0M on disk.

daveyp1
Posts: 5
Joined: Sat Aug 26, 2017 5:31 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Sun Aug 27, 2017 5:16 pm

Okay, I think I have managed to resolve this now.
It looks like Systemd could not find my Swap Partition and eventually gave up looking.
I will look into what could have caused this later, but once I have turned Swapoff I am now returning much faster boot times

Startup finished in 11.487s (firmware) + 247ms (loader) + 1.090s (kernel) + 1.597s (initrd) + 11.155s (userspace) = 25.578s

User avatar
kyrios
Posts: 2161
Joined: Thu Sep 22, 2016 4:20 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Sun Aug 27, 2017 6:08 pm

daveyp1 wrote:
Sun Aug 27, 2017 5:16 pm
Okay, I think I have managed to resolve this now.
It looks like Systemd could not find my Swap Partition and eventually gave up looking.
I will look into what could have caused this later, but once I have turned Swapoff I am now returning much faster boot times

Startup finished in 11.487s (firmware) + 247ms (loader) + 1.090s (kernel) + 1.597s (initrd) + 11.155s (userspace) = 25.578s
What have you done to reduce the userspace loading time ?

daveyp1
Posts: 5
Joined: Sat Aug 26, 2017 5:31 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Mon Aug 28, 2017 8:49 pm

kyrios wrote:
Sun Aug 27, 2017 6:08 pm
daveyp1 wrote:
Sun Aug 27, 2017 5:16 pm
Okay, I think I have managed to resolve this now.
It looks like Systemd could not find my Swap Partition and eventually gave up looking.
I will look into what could have caused this later, but once I have turned Swapoff I am now returning much faster boot times

Startup finished in 11.487s (firmware) + 247ms (loader) + 1.090s (kernel) + 1.597s (initrd) + 11.155s (userspace) = 25.578s
What have you done to reduce the userspace loading time ?
Nothing that I know of, seemed that when I turned swap off the boot time has improved.
That said the whole start up process seems very clunky and slow overall.
I am reaching LightDM in approx 30 - 40 seconds now
Once I enter my password, the following occurs:
Black screen for approx 10 seconds
Black screen with cursor for approx 10 seconds
Wallpaper appears with no panels for approx 20 seconds
At this point the panels appear and the desktop becomes usable
Not sure if there are any logs I could post to try and understand what is occurring here, I am pretty certain it would not be expected behaviour

sunnyflunk
Development Team
Posts: 2974
Joined: Sun Mar 13, 2016 11:35 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Tue Aug 29, 2017 2:23 am

daveyp1 wrote:
Mon Aug 28, 2017 8:49 pm
kyrios wrote:
Sun Aug 27, 2017 6:08 pm
daveyp1 wrote:
Sun Aug 27, 2017 5:16 pm
Okay, I think I have managed to resolve this now.
It looks like Systemd could not find my Swap Partition and eventually gave up looking.
I will look into what could have caused this later, but once I have turned Swapoff I am now returning much faster boot times

Startup finished in 11.487s (firmware) + 247ms (loader) + 1.090s (kernel) + 1.597s (initrd) + 11.155s (userspace) = 25.578s
What have you done to reduce the userspace loading time ?
Nothing that I know of, seemed that when I turned swap off the boot time has improved.
That said the whole start up process seems very clunky and slow overall.
I am reaching LightDM in approx 30 - 40 seconds now
Once I enter my password, the following occurs:
Black screen for approx 10 seconds
Black screen with cursor for approx 10 seconds
Wallpaper appears with no panels for approx 20 seconds
At this point the panels appear and the desktop becomes usable
Not sure if there are any logs I could post to try and understand what is occurring here, I am pretty certain it would not be expected behaviour
So it appears that your machine is making a large amount of journal entries. This gets trimmed on boot. This will show how big the journal is really getting. Particularly the difference between when you boot and when you reboot.

Code: Select all

ls -al /var/log/journal/*/

daveyp1
Posts: 5
Joined: Sat Aug 26, 2017 5:31 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Tue Aug 29, 2017 7:56 pm

Hi
Here is the output from the command suggested. Thanks for your help.

Code: Select all

total 29204
drwxr-sr-x  2 root systemd-journal    4096 Aug 29 19:46 .
drwxr-sr-x  3 root systemd-journal    4096 Aug 19 15:10 ..
-rw-r-----  1 root systemd-journal 8388608 Aug 27 19:44 system@000557c092b63840-46d02d96580a490f.journal~
-rw-r-----  1 root systemd-journal 6553600 Aug 29 19:46 system@d6d90c8ba7dd4e1ca21a5f8a77a690f0-0000000000000001-000557c09273650f.journal
-rw-r-----  1 root systemd-journal 6553600 Aug 29 19:51 system.journal
-rw-r-----+ 1 root systemd-journal 8388608 Aug 29 19:52 user-1000.journal

sunnyflunk
Development Team
Posts: 2974
Joined: Sun Mar 13, 2016 11:35 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Tue Sep 12, 2017 12:45 am

daveyp1 wrote:
Tue Aug 29, 2017 7:56 pm
Hi
Here is the output from the command suggested. Thanks for your help.

Code: Select all

total 29204
drwxr-sr-x  2 root systemd-journal    4096 Aug 29 19:46 .
drwxr-sr-x  3 root systemd-journal    4096 Aug 19 15:10 ..
-rw-r-----  1 root systemd-journal 8388608 Aug 27 19:44 system@000557c092b63840-46d02d96580a490f.journal~
-rw-r-----  1 root systemd-journal 6553600 Aug 29 19:46 system@d6d90c8ba7dd4e1ca21a5f8a77a690f0-0000000000000001-000557c09273650f.journal
-rw-r-----  1 root systemd-journal 6553600 Aug 29 19:51 system.journal
-rw-r-----+ 1 root systemd-journal 8388608 Aug 29 19:52 user-1000.journal
The journal is quite large, if you have a slow disk it could certainly slowdown boot somewhat (a spinny disk reading from multiple locations at once triples the slowness).

Will probably want to remove /var/log/journal/* to test the difference in boot time.

NapoRen
Posts: 5
Joined: Mon Mar 05, 2018 5:24 pm

Re: Very Slow Boot Time - 2 minutes to usable desktop

Mon Mar 05, 2018 5:52 pm

Hi,
I also have this problem, but setting swap off didn't resolve it. I also checked the Help Center, ran cat /etc/fstab and got :

Code: Select all

# /etc/fstab: static file system information.
#
# <fs>      <mountpoint> <type> <opts>      <dump/pass>

# /dev/ROOT   /            ext3    noatime        0 1
# /dev/SWAP   none         swap    sw             0 0
# /dev/fd0    /mnt/floppy  auto    noauto         0 0
none        /proc        proc    nosuid,noexec  0 0
none        /dev/shm     tmpfs   defaults       0 0
/dev/sda2	swap	swap	sw	0	0
# /dev/sda3 at time of installation
UUID=c245f670-b43b-4c72-9e69-bbcde2939c78	/	ext4	rw,relatime,errors=remount-ro	0	1
ls /dev/disk/by-uuid/* show :

Code: Select all

/dev/disk/by-uuid/0A42192042191255
/dev/disk/by-uuid/A8A0F95DA0F93284
/dev/disk/by-uuid/c245f670-b43b-4c72-9e69-bbcde2939c78
So it's the right UUID, as not expected.

I run solus in dual boot with Windows 10 if it can help.

Return to “Other Questions”