1SYSTEMD-CGTOP(1)                 systemd-cgtop                SYSTEMD-CGTOP(1)
2
3
4

NAME

6       systemd-cgtop - Show top control groups by their resource usage
7

SYNOPSIS

9       systemd-cgtop [OPTIONS...]
10

DESCRIPTION

12       systemd-cgtop shows the top control groups of the local Linux control
13       group hierarchy, ordered by their CPU, memory, or disk I/O load. The
14       display is refreshed in regular intervals (by default every 1s),
15       similar in style to top(1). If systemd-cgtop is not connected to a tty,
16       only one iteration is performed and no columns headers are printed.
17       This mode is suitable for scripting.
18
19       Resource usage is only accounted for control groups in the relevant
20       hierarchy, i.e. CPU usage is only accounted for control groups in the
21       "cpuacct" hierarchy, memory usage only for those in "memory" and disk
22       I/O usage for those in "blkio". If resource monitoring for these
23       resources is required, it is recommended to add the CPUAccounting=1,
24       MemoryAccounting=1 and BlockIOAccounting=1 settings in the unit files
25       in question. See systemd.resource-control(5) for details.
26
27       To emphasize this: unless "CPUAccounting=1", "MemoryAccounting=1" and
28       "BlockIOAccounting=1" are enabled for the services in question, no
29       resource accounting will be available for system services and the data
30       shown by systemd-cgtop will be incomplete.
31

OPTIONS

33       The following options are understood:
34
35       -p
36           Order by control group path name.
37
38       -t
39           Order by number of tasks in control group (i.e. threads and
40           processes).
41
42       -c
43           Order by CPU load.
44
45       -m
46           Order by memory usage.
47
48       -i
49           Order by disk I/O load.
50
51       -b, --batch
52           Run in "batch" mode: do not accept input and run until the
53           iteration limit set with --iterations is exhausted or until killed.
54           This mode could be useful for sending output from systemd-cgtop to
55           other programs or to a file.
56
57       -n, --iterations=
58           Perform only this many iterations.
59
60       -d, --delay=
61           Specify refresh delay in seconds (or if one of "ms", "us", "min" is
62           specified as unit in this time unit).
63
64       --depth=
65           Maximum control group tree traversal depth. Specifies how deep
66           systemd-cgtop shall traverse the control group hierarchies. If 0 is
67           specified, only the root group is monitored. For 1, only the first
68           level of control groups is monitored, and so on. Defaults to 3.
69
70       -h, --help
71           Print a short help text and exit.
72
73       --version
74           Print a short version string and exit.
75

KEYS

77       systemd-cgtop is an interactive tool and may be controlled via user
78       input using the following keys:
79
80       h
81           Shows a short help text.
82
83       SPACE
84           Immediately refresh output.
85
86       q
87           Terminate the program.
88
89       p, t, c, m, i
90           Sort the control groups by path, number of tasks, CPU load, memory
91           usage, or IO load, respectively.
92
93       %
94           Toggle between showing CPU time as time or percentage.
95
96       +, -
97           Increase or decrease refresh delay, respectively.
98

EXIT STATUS

100       On success, 0 is returned, a non-zero failure code otherwise.
101

SEE ALSO

103       systemd(1), systemctl(1), systemd-cgls(1), systemd.resource-control(5),
104       top(1)
105
106
107
108systemd 219                                                   SYSTEMD-CGTOP(1)
Impressum