[bootlin/training-materials updates] master: boot time slides: systemd-analyze updates (8967e5dd)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:30 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/8967e5dddbd9de59460b112b8df919d4eb817eca
>---------------------------------------------------------------
commit 8967e5dddbd9de59460b112b8df919d4eb817eca
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Wed Apr 7 08:22:48 2021 +0200
boot time slides: systemd-analyze updates
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
8967e5dddbd9de59460b112b8df919d4eb817eca
.../boot-time-init-scripts.tex | 41 +++++++++++++---------
1 file changed, 24 insertions(+), 17 deletions(-)
diff --git a/slides/boot-time-init-scripts/boot-time-init-scripts.tex b/slides/boot-time-init-scripts/boot-time-init-scripts.tex
index f9968b99..b232e201 100644
--- a/slides/boot-time-init-scripts/boot-time-init-scripts.tex
+++ b/slides/boot-time-init-scripts/boot-time-init-scripts.tex
@@ -55,27 +55,34 @@ If you are using \code{systemd} as your \code{init} program, you can use
\begin{block}{}
\tiny
\begin{verbatim}
-$ systemd-analyze blame
- 6207ms udev-settle.service
- 735ms NetworkManager.service
- 642ms avahi-daemon.service
- 600ms abrtd.service
- 517ms rtkit-daemon.service
- 396ms dbus.service
- 390ms rpcidmapd.service
- 346ms systemd-tmpfiles-setup.service
- 316ms cups.service
- 310ms console-kit-log-system-start.service
- 309ms libvirtd.service
- 303ms rpcbind.service
- 298ms ksmtuned.service
- 281ms rpcgssd.service
- 277ms sshd.service
-...
+$ systemd-analyze critical-chain
+multi-user.target @47.820s
+└─pmie.service @35.968s +548ms
+ └─pmcd.service @33.715s +2.247s
+ └─network-online.target @33.712s
+ └─systemd-networkd-wait-online.service @12.804s +20.905s
+ └─systemd-networkd.service @11.109s +1.690s
+ └─systemd-udevd.service @9.201s +1.904s
+ └─systemd-tmpfiles-setup-dev.service @7.306s +1.776s
+ └─kmod-static-nodes.service @6.976s +177ms
+ └─systemd-journald.socket
+ └─system.slice
+ └─-.slice
\end{verbatim}
\end{block}
\end{frame}
+\begin{frame}[fragile]
+\frametitle{systemd-analyze plot}
+This command prints an SVG graphic detailing which system services have been started at what time,
+highlighting the time they spent on initialization.
+\begin{verbatim}
+$ systemd-analyze plot >bootup.svg
+$ inkscape bootup.svg
+\end{verbatim}
+\end{frame}
+
+
\begin{frame}
\frametitle{Init}
Starting as soon as possible after all the dependencies are started:
More information about the training-materials-updates
mailing list