1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 This file is part of systemd.
8 Copyright 2012 Lennart Poettering
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 <refentry id="systemd-analyze">
27 <title>systemd-analyze</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
41 <refentrytitle>systemd-analyze</refentrytitle>
42 <manvolnum>1</manvolnum>
46 <refname>systemd-analyze</refname>
47 <refpurpose>Analyze system boot-up performance</refpurpose>
52 <command>systemd-analyze <arg choice="opt" rep="repeat">OPTIONS</arg> time</command>
55 <command>systemd-analyze <arg choice="opt" rep="repeat">OPTIONS</arg> blame </command>
58 <command>systemd-analyze <arg choice="opt" rep="repeat">OPTIONS</arg> plot <arg choice="opt">> file.svg</arg></command>
63 <title>Description</title>
65 <para><command>systemd-analyze</command> may be used
66 to determine system boot-up performance of the current
69 <para><command>systemd-analyze time</command>
70 prints the time spent in the kernel before
71 userspace has been reached, the time spent in the
72 initial RAM disk (initrd) before normal system
73 userspace has been reached and the time normal system
74 userspace took to initialize. Note that these
75 measurements simply measure the time passed up to the
76 point where all system services have been spawned, but
77 not necessarily until they fully finished
78 initialization or the disk is idle.</para>
80 <para><command>systemd-analyze blame</command> prints
81 a list of all running units, ordered by the time they
82 took to initialize. This information may be used to
83 optimize boot-up times. Note that the output might be
84 misleading as the initialization of one service might
85 be slow simply because it waits for the initialization
86 of another service to complete.</para>
88 <para><command>systemd-analyze plot</command> prints
89 an SVG graphic detailing which system services have
90 been started at what time, highlighting the time they
91 spent on initialization.</para>
93 <para>If no command is passed <command>systemd-analyze
94 time</command> is implied.</para>
99 <title>Options</title>
101 <para>The following options are understood:</para>
105 <term><option>-h</option></term>
106 <term><option>--help</option></term>
108 <listitem><para>Prints a short help
109 text and exits.</para></listitem>
113 <term><option>--user</option></term>
115 <listitem><para>Shows performance data
116 of user sessions instead of the system
117 manager.</para></listitem>
124 <title>Exit status</title>
126 <para>On success 0 is returned, a non-zero failure
127 code otherwise.</para>
131 <title>See Also</title>
133 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
134 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>