[systemd-devel] Q: Reducing systemd Userspace Boot Time Below 2 Seconds on Minimal Embedded ARM Board
Michal Koutný
mkoutny at suse.com
Tue Jul 22 16:35:47 UTC 2025
Hello Dharma.
What a challenge!
On Fri, Jul 18, 2025 at 05:51:39AM +0000, Dharma.B at microchip.com wrote:
> I've reviewed
> systemd.io/OPTIMIZATIONS<https://systemd.io/OPTIMIZATIONS/> and
> applied all recommendations relevant to my scenario (disabling settle
> services, removing legacy storage stacks, fixing locale, etc.).
> Question:
> Given the above, is it realistic to further reduce systemd userspace
> boot time below 2 seconds on such an SD-boot, minimal embedded board?
IIUC, your main workload is hmi.service. It looks like its startup is
the main contributor to the boot time. You may learn simply from journal
what are the events that it waits for.
> Are there advanced tunables, overlooked dependencies, or
> hardware-specific factors I should consider to claw back a few hundred
> milliseconds? Any experience or pointers—especially from similar
> setups—are very welcome.
I can certainly recommend Brendan Gregg's materials on on-cpu profiling
[1] (in case your boot is CPU bound) or off-cpu profiling [2] (in case
it's IO or parallelization issue). Though you may need to customize your
build to make the infrastructure working (and risk observer impact :-/).
Good luck,
Michal
[1] https://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
[2] https://www.brendangregg.com/offcpuanalysis.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20250722/fef78e3d/attachment.sig>
More information about the systemd-devel
mailing list