Slow Mint 19 boot and reporting discrepancies

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
larryw
Level 2
Level 2
Posts: 62
Joined: Mon Jan 02, 2017 7:31 pm

Slow Mint 19 boot and reporting discrepancies

Post by larryw »

When I boot LInux reporting says it takes 10 secs and but actual stopwatch says 26 secs. Why the difference? And what can be done about it?

systemd-analyze blame reports

3.175s NetworkManager.service
3.018s networkd-dispatcher.service
2.993s ubuntu-system-adjustments.service
2.140s udisks2.service
886ms systemd-fsck@dev-disk-by\x2duuid-AD83\x2d1B10.service
730ms thermald.service
674ms ModemManager.service
608ms dev-sda2.device
598ms keyboard-setup.service
585ms accounts-daemon.service
548ms grub-common.service
504ms apport.service
418ms gpu-manager.service
340ms colord.service
321ms dns-clean.service
284ms systemd-tmpfiles-setup.service
253ms plymouth-start.service
248ms systemd-logind.service
246ms iio-sensor-proxy.service
201ms avahi-daemon.service
200ms speech-dispatcher.service
158ms wpa_supplicant.service
146ms polkit.service


and systemd-analyze reports

systemd-analyze
Startup finished in 4.055s (kernel) + 6.065s (userspace) = 10.120s
graphical.target reached after 6.018s in userspace
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.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Slow Mint 19 boot and reporting discrepancies

Post by smurphos »

Do you auto-login? If so I'm pretty sure these commands measure the time to the login-screen, not the time for the desktop session to load after log-in (even automated log-in)

They also don't include any time for grub to load or time sat on the grub menu if it's visible, or the grub hidden timeout if it's not (the time window you've got to display grub if you need it)

Edit - just tried mine
Startup finished in 9.063s (kernel) + 8.492s (userspace) = 17.556s
graphical.target reached after 8.459s in userspace


Stop watch from selecting the grub entry to the log in window being displayed was 20s. The mouse appeared a few seconds before....(graphical.target reached?)

dmesg can you give you insight into what it is doing in that time.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
larryw
Level 2
Level 2
Posts: 62
Joined: Mon Jan 02, 2017 7:31 pm

Re: Slow Mint 19 boot and reporting discrepancies

Post by larryw »

I ran dmesg and there are number of lines in red which I assume is a bad thing. Below are some from near the beginning of the output but I don't know what they mean

ACPI Error: [_UPC] Namespace lookup failure, AE_ALREADY_EXISTS (20170831/dswload-378)
[ 0.000000] ACPI Exception: AE_ALREADY_EXISTS, During name lookup/catalog (20170831/psobject-252)
[ 0.000000] ACPI Exception: AE_ALREADY_EXISTS, (SSDT:xh_rvp07) while loading table (20170831/tbxfload-228)
[ 0.000000] ACPI Error: 1 table load failures, 7 successful (20170831/tbxfload-246)
n.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Slow Mint 19 boot and reporting discrepancies

Post by smurphos »

That's the kernel chatting to the hardware/BIOS about power management support. I'd guess there is something your hardware doesn't support or perhaps your BIOS is buggy. But if it's not causing any symptoms I wouldn't worry about it.

Back to boot times. Your kernel and user space times are fine. Where you can save some seconds is by reducing grub timeout (the time the system pauses waiting for you to press the key to show the grub menu before loading the default kernel)

The default mint grub is set up like this.

Code: Select all

cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Note the GRUB_TIMEOUT_STYLE=hidden & GRUB_TIMEOUT=10. That's adding 10 seconds of black screen to your boot time before the kernel starts to load which is the time you have to press Esc or Shift to show the grub menu. I'd recommend showing the grub menu by default - GRUB_TIMEOUT_STYLE=menu and reducing the timeout to 2 seconds - GRUB_TIMEOUT=2. You've still got time to interact with it if necessary (i.e. you ever need to boot an older kernel or get into recovery) but it's not slowing things down unnecessarily.

To edit the default grub open it in a root text editor - sudo nano /etc/default/grub. Navigate with the arrow keys, make the edits and save by pressing Ctrl-O and then close with Ctrl-X. Immediately run sudo update-grub. Assuming no errors, reboot and admire your grub menu flashing by.

The other time sink not caught by systemd-analyze is your desktop session loading after login. Best place to look for anything causing a slow-down here is via cat ~/.xsession-errors.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
larryw
Level 2
Level 2
Posts: 62
Joined: Mon Jan 02, 2017 7:31 pm

Re: Slow Mint 19 boot and reporting discrepancies

Post by larryw »

Thank you.

I don't use grub menu. When I've needed it I've had to manually load it at startup, which is fine.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Slow Mint 19 boot and reporting discrepancies

Post by smurphos »

It is still slowing down your boot by 10 seconds whether it's visible or not. I thought that was your concern?
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Locked

Return to “Installation & Boot”