2 .TH "SYSTEMD\-CGTOP" "1" "" "systemd 218" "systemd-cgtop"
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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 systemd-cgtop \- Show top control groups by their resource usage
25 .HP \w'\fBsystemd\-cgtop\fR\ 'u
26 \fBsystemd\-cgtop\fR [OPTIONS...]
30 shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load\&. The display is refreshed in regular intervals (by default every 1s), similar in style to
33 is not connected to a tty, only one iteration is performed and no columns headers are printed\&. This mode is suitable for scripting\&.
35 Resource usage is only accounted for control groups in the relevant hierarchy, i\&.e\&. CPU usage is only accounted for control groups in the
37 hierarchy, memory usage only for those in
39 and disk I/O usage for those in
40 "blkio"\&. If resource monitoring for these resources is required, it is recommended to add the
41 \fICPUAccounting=1\fR,
42 \fIMemoryAccounting=1\fR
44 \fIBlockIOAccounting=1\fR
45 settings in the unit files in question\&. See
46 \fBsystemd.resource-control\fR(5)
49 To emphasize this: unless
54 are enabled for the services in question, no resource accounting will be available for system services and the data shown by
59 The following options are understood:
63 Order by control group path name\&.
68 Order by number of tasks in control group (i\&.e\&. threads and processes)\&.
78 Order by memory usage\&.
83 Order by disk I/O load\&.
86 \fB\-b\fR, \fB\-\-batch\fR
88 Run in "batch" mode: do not accept input and run until the iteration limit set with
90 is exhausted or until killed\&. This mode could be useful for sending output from
92 to other programs or to a file\&.
95 \fB\-n\fR, \fB\-\-iterations=\fR
97 Perform only this many iterations\&.
100 \fB\-d\fR, \fB\-\-delay=\fR
102 Specify refresh delay in seconds (or if one of
106 is specified as unit in this time unit)\&.
111 Maximum control group tree traversal depth\&. Specifies how deep
113 shall traverse the control group hierarchies\&. If 0 is specified, only the root group is monitored\&. For 1, only the first level of control groups is monitored, and so on\&. Defaults to 3\&.
116 \fB\-h\fR, \fB\-\-help\fR
118 Print a short help text and exit\&.
123 Print a short version string and exit\&.
128 is an interactive tool and may be controlled via user input using the following keys:
132 Shows a short help text\&.
137 Immediately refresh output\&.
142 Terminate the program\&.
147 Sort the control groups by path, number of tasks, CPU load, memory usage, or IO load, respectively\&.
152 Toggle between showing CPU time as time or percentage\&.
157 Increase or decrease refresh delay, respectively\&.
161 On success, 0 is returned, a non\-zero failure code otherwise\&.
166 \fBsystemd-cgls\fR(1),
167 \fBsystemd.resource-control\fR(5),