2
.\" Title: systemd-cgtop
3
.\" Author: Lennart Poettering <lennart@poettering.net>
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6
.\" Manual: systemd-cgtop
10
.TH "SYSTEMD\-CGTOP" "1" "03/16/2012" "systemd" "systemd-cgtop"
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
25
.\" disable justification (adjust text to left margin only)
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
31
systemd-cgtop \- Show top control groups by their resource usage
33
.HP \w'\fBsystemd\-cgtop\ \fR\fB[OPTIONS...]\fR\ 'u
34
\fBsystemd\-cgtop \fR\fB[OPTIONS...]\fR
38
shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory and disk I/O load\&. The display is refreshed in regular intervals (by default every 1s), similar in style to
41
Resource usage is only accounted for control groups in the relevant hierarchy, i\&.e\&. CPU usage is only accounted for control groups in the
43
hierarchy, memory usage only for those in
45
and disk I/O usage for those in
48
by default places all services in their own control group in the
53
blkio\&. If resource monitoring for these resources is required it is recommended to add
58
\fIDefaultControllers=\fR
60
/etc/systemd/system\&.conf
63
for details)\&. Alternatively, it is possible to enable resource accounting individually for services, by making use of the
65
option in the unit files (See
69
To emphasize this: unless
73
are enabled for the services in question with either of the options suggested above no resource accounting will be available for system services and the data shown by
78
The following options are understood:
80
\fB\-h\fR, \fB\-\-help\fR
82
Prints a short help text and exits\&.
87
Order by control group path name\&.
92
Order by number of tasks in control group (i\&.e\&. threads and processes)\&.
102
Order by memory usage\&.
107
Order by disk I/O load\&.
110
\fB\-d\fR, \fB\-\-delay=\fR
112
Specify refresh delay in seconds (or if one of
116
is specified as unit in this time unit)\&.
121
Maximum control group tree traversal depth\&. Specifies how deep
123
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 2\&.
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
Change ordering of control groups by path, number of tasks, CPU load, memory usage resp\&. IO load\&.
152
Increase, resp\&. decrease refresh delay\&.
156
On success 0 is returned, a non\-zero failure code otherwise\&.
162
\fBsystemd-cgls\fR(1),
166
\fBLennart Poettering\fR <\&lennart@poettering\&.net\&>