Optimizing kernel startup times

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.
t42
Level 11
Level 11
Posts: 3744
Joined: Mon Jan 20, 2014 6:48 pm

Re: Optimizing kernel startup times

Post by t42 »

...disconnect individual USB ports one by one. Considering ambiguous recovery I'd try kernel of another series, for LM19 there is an older one 4.15 in Grub advanced menu or to install newer 5.11.16 from Ubuntu mainline.
-=t42=-
caranthir
Level 1
Level 1
Posts: 20
Joined: Fri Jan 17, 2020 1:24 am

Re: Optimizing kernel startup times

Post by caranthir »

Here are my testing results so far:

Unplug headset USB only

Startup finished in 13.385s (kernel) + 2.679s (userspace) = 16.064s
graphical.target reached after 2.672s in userspace

---
Unplug mouse only

Startup finished in 13.221s (kernel) + 2.845s (userspace) = 16.067s
graphical.target reached after 2.766s in userspace

---
Unplug keyboard only

Startup finished in 12.289s (kernel) + 2.723s (userspace) = 15.013s
graphical.target reached after 2.717s in userspace

---
Unplug all

Startup finished in 6.374s (kernel) + 2.931s (userspace) = 9.305s
graphical.target reached after 2.924s in userspace

---

Switch temporarily to 4.15 kernel
Startup finished in 5.974s (kernel) + 14.377s (userspace) = 20.352s
graphical.target reached after 14.371s in userspace

---

So, this raises a question...
Why is it all-or-nothing (I have to unplug everything and the boot is much faster; it's apparently not tied to any one device)?
t42
Level 11
Level 11
Posts: 3744
Joined: Mon Jan 20, 2014 6:48 pm

Re: Optimizing kernel startup times

Post by t42 »

The systemd-analyze results probably should be confronted with time intervals measured with real stopwatch, for example from grub menu to the login prompt. It may be that the difference will be not of practical significance.
-=t42=-
Locked

Return to “Installation & Boot”