]>
Commit | Line | Data |
---|---|---|
14228c0d | 1 | '\" t |
60f067b4 | 2 | .TH "SYSTEMD\-ANALYZE" "1" "" "systemd 214" "systemd-analyze" |
14228c0d MB |
3 | .\" ----------------------------------------------------------------- |
4 | .\" * Define some portability stuff | |
5 | .\" ----------------------------------------------------------------- | |
6 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
7 | .\" http://bugs.debian.org/507673 | |
8 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html | |
9 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
10 | .ie \n(.g .ds Aq \(aq | |
11 | .el .ds Aq ' | |
12 | .\" ----------------------------------------------------------------- | |
13 | .\" * set default formatting | |
14 | .\" ----------------------------------------------------------------- | |
15 | .\" disable hyphenation | |
16 | .nh | |
17 | .\" disable justification (adjust text to left margin only) | |
18 | .ad l | |
19 | .\" ----------------------------------------------------------------- | |
20 | .\" * MAIN CONTENT STARTS HERE * | |
21 | .\" ----------------------------------------------------------------- | |
22 | .SH "NAME" | |
23 | systemd-analyze \- Analyze system boot\-up performance | |
24 | .SH "SYNOPSIS" | |
25 | .HP \w'\fBsystemd\-analyze\fR\ 'u | |
26 | \fBsystemd\-analyze\fR [OPTIONS...] [time] | |
27 | .HP \w'\fBsystemd\-analyze\fR\ 'u | |
28 | \fBsystemd\-analyze\fR [OPTIONS...] blame | |
29 | .HP \w'\fBsystemd\-analyze\fR\ 'u | |
30 | \fBsystemd\-analyze\fR [OPTIONS...] critical\-chain [\fIUNIT\fR...] | |
31 | .HP \w'\fBsystemd\-analyze\fR\ 'u | |
32 | \fBsystemd\-analyze\fR [OPTIONS...] plot [>\ file\&.svg] | |
33 | .HP \w'\fBsystemd\-analyze\fR\ 'u | |
34 | \fBsystemd\-analyze\fR [OPTIONS...] dot [\fIPATTERN\fR...] [>\ file\&.dot] | |
35 | .HP \w'\fBsystemd\-analyze\fR\ 'u | |
36 | \fBsystemd\-analyze\fR [OPTIONS...] dump | |
37 | .HP \w'\fBsystemd\-analyze\fR\ 'u | |
38 | \fBsystemd\-analyze\fR [OPTIONS...] set\-log\-level [\fILEVEL\fR] | |
39 | .SH "DESCRIPTION" | |
40 | .PP | |
41 | \fBsystemd\-analyze\fR | |
42 | may be used to determine system boot\-up performance statistics and retrieve other state and tracing information from the system and service manager\&. | |
43 | .PP | |
44 | \fBsystemd\-analyze time\fR | |
45 | prints the time spent in the kernel before userspace has been reached, the time spent in the initial RAM disk (initrd) before normal system userspace has been reached, and the time normal system userspace took to initialize\&. Note that these measurements simply measure the time passed up to the point where all system services have been spawned, but not necessarily until they fully finished initialization or the disk is idle\&. | |
46 | .PP | |
47 | \fBsystemd\-analyze blame\fR | |
48 | prints a list of all running units, ordered by the time they took to initialize\&. This information may be used to optimize boot\-up times\&. Note that the output might be misleading as the initialization of one service might be slow simply because it waits for the initialization of another service to complete\&. | |
49 | .PP | |
50 | \fBsystemd\-analyze critical\-chain [\fR\fB\fIUNIT\&.\&.\&.\fR\fR\fB]\fR | |
51 | prints a tree of the time\-critical chain of units (for each of the specified | |
52 | \fIUNIT\fRs or for the default target otherwise)\&. The time after the unit is active or started is printed after the "@" character\&. The time the unit takes to start is printed after the "+" character\&. Note that the output might be misleading as the initialization of one service might depend on socket activation and because of the parallel execution of units\&. | |
53 | .PP | |
54 | \fBsystemd\-analyze plot\fR | |
55 | prints an SVG graphic detailing which system services have been started at what time, highlighting the time they spent on initialization\&. | |
56 | .PP | |
57 | \fBsystemd\-analyze dot\fR | |
58 | generates textual dependency graph description in dot format for further processing with the GraphViz | |
59 | \fBdot\fR(1) | |
60 | tool\&. Use a command line like | |
61 | \fBsystemd\-analyze dot | dot \-Tsvg > systemd\&.svg\fR | |
62 | to generate a graphical dependency tree\&. Unless | |
63 | \fB\-\-order\fR | |
64 | or | |
65 | \fB\-\-require\fR | |
66 | is passed, the generated graph will show both ordering and requirement dependencies\&. Optional pattern globbing style specifications (e\&.g\&. | |
67 | *\&.target) may be given at the end\&. A unit dependency is included in the graph if any of these patterns match either the origin or destination node\&. | |
68 | .PP | |
69 | \fBsystemd\-analyze dump\fR | |
70 | outputs a (usually very long) human\-readable serialization of the complete server state\&. Its format is subject to change without notice and should not be parsed by applications\&. | |
71 | .PP | |
72 | \fBsystemd\-analyze set\-log\-level \fR\fB\fILEVEL\fR\fR | |
73 | changes the current log level of the | |
74 | \fBsystemd\fR | |
75 | daemon to | |
76 | \fILEVEL\fR | |
77 | (accepts the same values as | |
78 | \fB\-\-log\-level=\fR | |
79 | described in | |
80 | \fBsystemd\fR(1))\&. | |
81 | .PP | |
82 | If no command is passed, | |
83 | \fBsystemd\-analyze time\fR | |
84 | is implied\&. | |
85 | .SH "OPTIONS" | |
86 | .PP | |
87 | The following options are understood: | |
88 | .PP | |
60f067b4 | 89 | \fB\-\-user\fR |
14228c0d | 90 | .RS 4 |
60f067b4 | 91 | Shows performance data of user sessions instead of the system manager\&. |
14228c0d MB |
92 | .RE |
93 | .PP | |
60f067b4 | 94 | \fB\-\-system\fR |
14228c0d | 95 | .RS 4 |
60f067b4 | 96 | Shows performance data of the system manager\&. This is the implied default\&. |
14228c0d MB |
97 | .RE |
98 | .PP | |
99 | \fB\-\-order\fR, \fB\-\-require\fR | |
100 | .RS 4 | |
101 | When used in conjunction with the | |
102 | \fBdot\fR | |
103 | command (see above), selects which dependencies are shown in the dependency graph\&. If | |
104 | \fB\-\-order\fR | |
105 | is passed, only dependencies of type | |
106 | \fIAfter=\fR | |
107 | or | |
108 | \fIBefore=\fR | |
109 | are shown\&. If | |
110 | \fB\-\-require\fR | |
111 | is passed, only dependencies of type | |
112 | \fIRequires=\fR, | |
113 | \fIRequiresOverridable=\fR, | |
114 | \fIRequisite=\fR, | |
115 | \fIRequisiteOverridable=\fR, | |
116 | \fIWants=\fR | |
117 | and | |
118 | \fIConflicts=\fR | |
119 | are shown\&. If neither is passed, this shows dependencies of all these types\&. | |
120 | .RE | |
121 | .PP | |
122 | \fB\-\-from\-pattern=\fR, \fB\-\-to\-pattern=\fR | |
123 | .RS 4 | |
124 | When used in conjunction with the | |
125 | \fBdot\fR | |
126 | command (see above), this selects which relationships are shown in the dependency graph\&. They both require | |
127 | \fBglob\fR(7) | |
128 | patterns as arguments, which are matched against left\-hand and right\-hand, respectively, nodes of a relationship\&. Each of these can be used more than once, which means a unit name must match one of the given values\&. | |
129 | .RE | |
130 | .PP | |
131 | \fB\-\-fuzz=\fR\fItimespan\fR | |
132 | .RS 4 | |
133 | When used in conjunction with the | |
134 | \fBcritical\-chain\fR | |
135 | command (see above), also show units, which finished | |
136 | \fItimespan\fR | |
137 | earlier, than the latest unit in the same level\&. The unit of | |
138 | \fItimespan\fR | |
139 | is seconds unless specified with a different unit, e\&.g\&. "50ms"\&. | |
140 | .RE | |
141 | .PP | |
60f067b4 JS |
142 | \fB\-H\fR, \fB\-\-host=\fR |
143 | .RS 4 | |
144 | Execute the operation remotely\&. Specify a hostname, or username and hostname separated by | |
145 | "@", to connect to\&. This will use SSH to talk to the remote machine manager instance\&. | |
146 | .RE | |
147 | .PP | |
148 | \fB\-M\fR, \fB\-\-machine=\fR | |
149 | .RS 4 | |
150 | Execute operation on a local container\&. Specify a container name to connect to\&. | |
151 | .RE | |
152 | .PP | |
153 | \fB\-h\fR, \fB\-\-help\fR | |
154 | .RS 4 | |
155 | Print a short help text and exit\&. | |
156 | .RE | |
157 | .PP | |
158 | \fB\-\-version\fR | |
159 | .RS 4 | |
160 | Print a short version string and exit\&. | |
161 | .RE | |
162 | .PP | |
14228c0d MB |
163 | \fB\-\-no\-pager\fR |
164 | .RS 4 | |
165 | Do not pipe output into a pager\&. | |
166 | .RE | |
167 | .SH "EXIT STATUS" | |
168 | .PP | |
60f067b4 | 169 | On success, 0 is returned, a non\-zero failure code otherwise\&. |
14228c0d MB |
170 | .SH "EXAMPLES" |
171 | .PP | |
172 | This plots all dependencies of any unit whose name starts with | |
173 | "avahi\-daemon\&.": | |
174 | .sp | |
175 | .if n \{\ | |
176 | .RS 4 | |
177 | .\} | |
178 | .nf | |
179 | $ systemd\-analyze dot \*(Aqavahi\-daemon\&.*\*(Aq | dot \-Tsvg > avahi\&.svg | |
180 | $ eog avahi\&.svg | |
181 | .fi | |
182 | .if n \{\ | |
183 | .RE | |
184 | .\} | |
185 | .PP | |
186 | This plots the dependencies between all known target units: | |
187 | .sp | |
188 | .if n \{\ | |
189 | .RS 4 | |
190 | .\} | |
191 | .nf | |
192 | systemd\-analyze dot \-\-to\-pattern=\*(Aq*\&.target\*(Aq \-\-from\-pattern=\*(Aq*\&.target\*(Aq | dot \-Tsvg > targets\&.svg | |
193 | $ eog targets\&.svg | |
194 | .fi | |
195 | .if n \{\ | |
196 | .RE | |
197 | .\} | |
198 | .SH "ENVIRONMENT" | |
199 | .PP | |
200 | \fI$SYSTEMD_PAGER\fR | |
201 | .RS 4 | |
202 | Pager to use when | |
203 | \fB\-\-no\-pager\fR | |
204 | is not given; overrides | |
205 | \fI$PAGER\fR\&. Setting this to an empty string or the value | |
206 | "cat" | |
207 | is equivalent to passing | |
208 | \fB\-\-no\-pager\fR\&. | |
209 | .RE | |
60f067b4 JS |
210 | .PP |
211 | \fI$SYSTEMD_LESS\fR | |
212 | .RS 4 | |
213 | Override the default options passed to | |
214 | \fBless\fR | |
215 | ("FRSXMK")\&. | |
216 | .RE | |
14228c0d MB |
217 | .SH "SEE ALSO" |
218 | .PP | |
219 | \fBsystemd\fR(1), | |
220 | \fBsystemctl\fR(1) |