table of contents
SYSTEMD-CGTOP(1) | systemd-cgtop | SYSTEMD-CGTOP(1) |
NAME¶
systemd-cgtop - Show top control groups by their resource usage
SYNOPSIS¶
systemd-cgtop [OPTIONS...]
DESCRIPTION¶
systemd-cgtop 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 top(1). If systemd-cgtop is not connected to a tty, only one iteration is performed and no columns headers are printed. This mode is suitable for scripting.
Resource usage is only accounted for control groups in the relevant hierarchy, i.e. CPU usage is only accounted for control groups in the "cpuacct" hierarchy, memory usage only for those in "memory" and disk I/O usage for those in "blkio". If resource monitoring for these resources is required, it is recommended to add the CPUAccounting=1, MemoryAccounting=1 and BlockIOAccounting=1 settings in the unit files in question. See systemd.resource-control(5) for details.
To emphasize this: unless "CPUAccounting=1", "MemoryAccounting=1" and "BlockIOAccounting=1" are enabled for the services in question, no resource accounting will be available for system services and the data shown by systemd-cgtop will be incomplete.
OPTIONS¶
The following options are understood:
-p
-t
-c
-m
-i
-b, --batch
-n, --iterations=
-d, --delay=
--depth=
-h, --help
--version
KEYS¶
systemd-cgtop is an interactive tool and may be controlled via user input using the following keys:
h
SPACE
q
p, t, c, m, i
%
+, -
EXIT STATUS¶
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO¶
systemd(1), systemctl(1), systemd-cgls(1), systemd.resource-control(5), top(1)
systemd 219 |