'\" t .\" Title: systemd-cgtop .\" Author: Lennart Poettering .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 10/07/2013 .\" Manual: systemd-cgtop .\" Source: systemd .\" Language: English .\" .TH "SYSTEMD\-CGTOP" "1" "10/07/2013" "systemd" "systemd-cgtop" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" systemd-cgtop \- Show top control groups by their resource usage .SH "SYNOPSIS" .HP \w'\fBsystemd\-cgtop\ \fR\fB[OPTIONS...]\fR\ 'u \fBsystemd\-cgtop \fR\fB[OPTIONS...]\fR .SH "DESCRIPTION" .PP \fBsystemd\-cgtop\fR 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 \fBtop\fR(1)\&. .PP 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\&. \fBsystemd\fR(1) by default places all services in their own control group in the cpuacct hierarchy, but not in memory nor blkio\&. If resource monitoring for these resources is required it is recommended to add blkio and memory to the \fIDefaultControllers=\fR setting in /etc/systemd/system\&.conf (see \fBsystemd.conf\fR(5) for details)\&. Alternatively, it is possible to enable resource accounting individually for services, by making use of the \fIControlGroup=\fR option in the unit files (See \fBsystemd.exec\fR(5) for details)\&. .PP To emphasize this: unless blkio and memory 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 \fBsystemd\-cgtop\fR will be incomplete\&. .SH "OPTIONS" .PP The following options are understood: .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Prints a short help text and exits\&. .RE .PP \fB\-p\fR .RS 4 Order by control group path name\&. .RE .PP \fB\-t\fR .RS 4 Order by number of tasks in control group (i\&.e\&. threads and processes)\&. .RE .PP \fB\-c\fR .RS 4 Order by CPU load\&. .RE .PP \fB\-m\fR .RS 4 Order by memory usage\&. .RE .PP \fB\-i\fR .RS 4 Order by disk I/O load\&. .RE .PP \fB\-d\fR, \fB\-\-delay=\fR .RS 4 Specify refresh delay in seconds (or if one of ms, us, min is specified as unit in this time unit)\&. .RE .PP \fB\-\-depth=\fR .RS 4 Maximum control group tree traversal depth\&. Specifies how deep \fBsystemd\-cgtop\fR 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\&. .RE .SH "KEYS" .PP \fBsystemd\-cgtop\fR is an interactive tool and may be controlled via user input using the following keys: .PP h .RS 4 Shows a short help text\&. .RE .PP SPACE .RS 4 Immediately refresh output\&. .RE .PP q .RS 4 Terminate the program\&. .RE .PP p, t, c, m, i .RS 4 Change ordering of control groups by path, number of tasks, CPU load, memory usage resp\&. IO load\&. .RE .PP +, \- .RS 4 Increase, resp\&. decrease refresh delay\&. .RE .SH "EXIT STATUS" .PP On success 0 is returned, a non\-zero failure code otherwise\&. .SH "SEE ALSO" .PP \fBsystemd\fR(1), \fBsystemctl\fR(1), \fBsystemd-cgls\fR(1), \fBtop\fR(1) .SH "AUTHOR" .PP \fBLennart Poettering\fR <\&lennart@poettering\&.net\&> .RS 4 Developer .RE