]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-top.sgml.in
download: Make --keyserver actually work
[mirror_lxc.git] / doc / lxc-top.sgml.in
CommitLineData
f080ffd7
DE
1<!--
2
3Copyright © 2012 Oracle.
4
5Authors:
6Dwight Engen <dwight.engen@oracle.com>
7
8This library is free software; you can redistribute it and/or
9modify it under the terms of the GNU Lesser General Public
10License as published by the Free Software Foundation; either
11version 2.1 of the License, or (at your option) any later version.
12
13This library is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16Lesser General Public License for more details.
17
18You should have received a copy of the GNU Lesser General Public
19License along with this library; if not, write to the Free Software
250b1eec 20Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
f080ffd7
DE
21
22-->
23
7f951458 24<!DOCTYPE refentry PUBLIC @docdtd@ [
f080ffd7
DE
25
26<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
27]>
28
29<refentry>
30
31 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
32
33 <refmeta>
34 <refentrytitle>lxc-top</refentrytitle>
35 <manvolnum>1</manvolnum>
36 </refmeta>
37
38 <refnamediv>
39 <refname>lxc-top</refname>
40
41 <refpurpose>
42 monitor container statistics
43 </refpurpose>
44 </refnamediv>
45
46 <refsynopsisdiv>
47 <cmdsynopsis>
48 <command>lxc-top</command>
49 <arg choice="opt">--help</arg>
50 <arg choice="opt">--max <replaceable>count</replaceable></arg>
51 <arg choice="opt">--delay <replaceable>delay</replaceable></arg>
52 <arg choice="opt">--sort <replaceable>sortby</replaceable></arg>
53 <arg choice="opt">--reverse</arg>
54 </cmdsynopsis>
55 </refsynopsisdiv>
56
57 <refsect1>
58 <title>Description</title>
59 <para>
60 <command>lxc-top</command> displays container statistics. The output
2752ecec
DE
61 is updated every <replaceable>delay</replaceable> seconds, and is
62 ordered according to the <replaceable>sortby</replaceable> value
63 given. Specifying <replaceable>count</replaceable> will limit the
64 number of containers displayed, otherwise <command>lxc-top</command>
65 will display as many containers as can fit in your terminal.
f080ffd7
DE
66 </para>
67 </refsect1>
68
69 <refsect1>
70 <title>Options</title>
71 <variablelist>
72
73 <varlistentry>
74 <term>
75 <option><optional>-m, --max <replaceable>count</replaceable></optional></option>
76 </term>
77 <listitem>
78 <para>
79 Limit the number of containers displayed to
80 <replaceable>count</replaceable>.
81 </para>
82 </listitem>
83 </varlistentry>
84
85 <varlistentry>
86 <term>
87 <option><optional>-d, --delay <replaceable>delay</replaceable></optional></option>
88 </term>
89 <listitem>
90 <para>
91 Amount of time in seconds to delay between screen updates.
92 This can be specified as less than a second by giving a
93 rational number, for example 0.5 for a half second delay. The
94 default is 3 seconds.
95 </para>
96 </listitem>
97 </varlistentry>
98 <varlistentry>
99 <term>
100 <option><optional>-s, --sort <replaceable>sortby</replaceable></optional></option>
101 </term>
102 <listitem>
103 <para>
104 Sort the containers by name, cpu use, or memory use. The
105 <replaceable>sortby</replaceable> argument should be one of
2752ecec
DE
106 the letters n,c,d,m,k to sort by name, cpu use, disk I/O, memory,
107 or kernel memory use respectively. The default is 'n'.
f080ffd7
DE
108 </para>
109 </listitem>
110 </varlistentry>
111 <varlistentry>
112 <term>
113 <option><optional>-r, --reverse</optional></option>
114 </term>
115 <listitem>
116 <para>
117 Reverse the default sort order. By default, names sort in
118 ascending alphabetical order and values sort in descending
119 amounts (ie. largest value first).
120 </para>
121 </listitem>
122 </varlistentry>
123 </variablelist>
124 </refsect1>
125
126 <refsect1>
127 <title>Example</title>
128 <variablelist>
129 <varlistentry>
130 <term>lxc-top --delay 1 --sort m</term>
131 <listitem>
132 <para>
133 Display containers, updating every second, sorted by memory use.
134 </para>
135 </listitem>
136 </varlistentry>
137 </variablelist>
138 </refsect1>
139
2752ecec
DE
140 <refsect1>
141 <title>Notes</title>
142 <para>
143 For performance reasons the kernel does not account kernel memory use
144 unless a kernel memory limit is set. If a limit is not set, <command>
145 lxc-top</command> will display kernel memory use as 0. If no containers
146 are being accounted, the KMem column will not be displayed. A limit can
147 be set by specifying
148 <programlisting>
149 lxc.cgroup.memory.kmem.limit_in_bytes = <replaceable>number</replaceable>
150 </programlisting>
151 in your container configuration file, see
152 <citerefentry>
153 <refentrytitle>lxc.conf</refentrytitle>
154 <manvolnum>5</manvolnum>
155 </citerefentry>.
156 </para>
157 </refsect1>
158
f080ffd7
DE
159 &seealso;
160
161 <refsect1>
162 <title>Author</title>
163 <para>Dwight Engen <email>dwight.engen@oracle.com</email></para>
164 </refsect1>
165
166</refentry>
167
168<!-- Keep this comment at the end of the file
169Local variables:
170mode: sgml
171sgml-omittag:t
172sgml-shorttag:t
173sgml-minimize-attributes:nil
174sgml-always-quote-attributes:t
175sgml-indent-step:2
176sgml-indent-data:t
177sgml-parent-document:nil
178sgml-default-dtd-file:nil
179sgml-exposed-tags:nil
180sgml-local-catalogs:nil
181sgml-local-ecat-files:nil
182End:
183-->