Find boot-up time in linux ๐ง
January 18, 2025 ยท View on GitHub
We can achieve this using the systemd service. Just run this
systemd-analyze
Demo:
Startup finished in 36.655s (kernel) + 58.030s (userspace) = 1min 34.685s
graphical.target reached after 57.709s in userspace
The
graphical.targetspecifies how long it took to reach to the log-in screen.
Other tricks
- You can also plot service initializations in a SVG graph.
systemd-analyze plot > demo.svg
- Check which service takes most of the time.
systemd-analyze blame