DevHeads.net

profiling startup

I see there was some discussion over startup times on IRC.

If you want to profile startup you'll want to use systemd-bootchart
[1] it tracks resources usage during boot, which is valuable
information in finding out why it may be slow (outside slowness in
software).

For debugging the actual session-start you can have a look at [2]
which will tell you how to profile a plasma session on x or wayland.

[1] <a href="http://manpages.ubuntu.com/manpages/bionic/man1/systemd-bootchart.1.html" title="http://manpages.ubuntu.com/manpages/bionic/man1/systemd-bootchart.1.html">http://manpages.ubuntu.com/manpages/bionic/man1/systemd-bootchart.1.html</a>
[2] <a href="http://blog.davidedmundson.co.uk/blog/plasma-startup/" title="http://blog.davidedmundson.co.uk/blog/plasma-startup/">http://blog.davidedmundson.co.uk/blog/plasma-startup/</a>

HS

Comments

Re: profiling startup

By Darin Miller at 03/11/2019 - 22:43

Thanks Harold!

I forgot about the boot profiler. I created 2 profiles and uploaded to an
existing bug:

<a href="https://bugs.kde.org/show_bug.cgi?id=392556" title="https://bugs.kde.org/show_bug.cgi?id=392556">https://bugs.kde.org/show_bug.cgi?id=392556</a>

Looks like ksplash interacts with plasmashell causing high process usage
for 8 or more seconds longer than plasmashell requires without splash.

But the resulting "boot to desktop" is actually 30s longer with splash.
o__