pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.47k stars 87 forks source link

30 sec boot time on SSD #529

Open PolyakB opened 5 years ago

PolyakB commented 5 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS" VERSION="18.10"

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Issue/Bug Description:

My boot is a bit slow (~30 sec), but when I used normal Ubuntu it was like 10 sec. I ran systemd-analyze, and can't figure it out, how to solve the problem. Screenshot from 2019-04-29 19-57-49

It seems to have some problem with plymouth-quit-wait.service, it needs ~21 sec to finish

Screenshot from 2019-04-29 20-17-24

Steps to reproduce (if you know):

Expected behavior:

Other Notes:

mmstick commented 5 years ago

This may be https://github.com/pop-os/pop/issues/520

mmstick commented 5 years ago

The plymouth-quit-wait.service executes plymouth --wait. It should wait no longer than 5s, as we have a timeout service that kills it after 5s if it persists past the time the display manager is ready.

PolyakB commented 5 years ago

This may be #520

I tried it out, but no change. I don't know if the freakin ROG logo makes the whole process different (Unfortunately I cannot remove it)

PolyakB commented 5 years ago

The plymouth-quit-wait.service executes plymouth --wait. It should wait no longer than 5s, as we have a timeout service that kills it after 5s if it persists past the time the display manager is ready.

Is it possible that it is in relation with the selected GPU? I use the Intel one, because it uses less power, but I don't know if the NVIDIA one has better boot time

mmstick commented 5 years ago

Booting in Intel graphics mode should be faster than NVIDIA, because it doesn't need to attempt to initialize the driver module for NVIDIA.

PolyakB commented 5 years ago

Booting in Intel graphics mode should be faster than NVIDIA, because it doesn't need to attempt to initialize the driver module for NVIDIA.

I tried this one out, they are about the same time (~1 sec difference)

mmstick commented 5 years ago

Perhaps the contents of system logs since boot would be helpful?

journalctl -b0

Something's holding up the multi-user / graphical targets.

PolyakB commented 5 years ago

Thats all I see:

Screenshot from 2019-04-29 20-57-19 Screenshot from 2019-04-29 20-57-20

Does it matter if I use pop os dualbooting with windows? In my opinion it shouldn't change the time, since pop is booting with systemd

mmstick commented 5 years ago

You'll want to upload the entire log.

journalctl -b0 > boot.log
PolyakB commented 5 years ago

Oops, sorry! boot.log

mmstick commented 5 years ago

Looks like the kernel started booting at 35:43, X11 finished loading at 35:46, and you logged in at 35:53.

PolyakB commented 5 years ago

The ROG logo takes about 10 sec, so it means that this can't be any faster? I assume that the other 10 sec is needed to the systems other parts