Comment 26 for bug 1947099

Revision history for this message
Fabio Augusto Miranda Martins (fabio.martins) wrote :

I've tested the klibc-utils patch using Mauricio's ppa:

sudo add-apt-repository ppa:mfo/lp1947099
sudo apt install klibc-utils
sudo update-initramfs -u -k all

And I can confirm that it does improve the boot time in more than 3 minutes, without causing any noticeable issues.

- Without the patch:

https://pastebin.ubuntu.com/p/6M7M2FfCGQ/

root@ubuntu1804:~# sudo systemd-analyze time
Startup finished in 4min 2.098s (firmware) + 2min 23.684s (loader) + 6min 226ms (kernel) + 38.766s (userspace) = 13min 4.776s
graphical.target reached after 38.374s in userspace

We can see it spent 6min 226ms in kernel, and looking through the serial console (or dmesg) it was running the ipconfig commands for each of the Mellanox NICs from 211.972259 up to 386.155116 = 174.182857 seconds

- With the patch:

https://pastebin.ubuntu.com/p/JxDs8WPqc4/

root@ubuntu1804:~# sudo systemd-analyze time
Startup finished in 4min 890ms (firmware) + 2min 23.278s (loader) + 3min 46.413s (kernel) + 40.734s (userspace) = 10min 51.317s
graphical.target reached after 40.354s in userspace

We can see the kernel time decreased to a bit more than 3 minutes and we spent only 41 seconds (as opposed to 174 seconds) in the ipconfig commands:

210.675050 to 252.432441 = 41.757391 seconds

That definitely has helped to resolve the issue we are chasing here.