3 Copyright © 2012 Oracle.
6 Dwight Engen <dwight.engen@oracle.com>
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 <!DOCTYPE refentry PUBLIC @docdtd@ [
26 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
31 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
34 <refentrytitle>lxc-top</refentrytitle>
35 <manvolnum>1</manvolnum>
39 <refname>lxc-top</refname>
42 monitor container statistics
48 <command>lxc-top</command>
49 <arg choice="opt">--help</arg>
50 <arg choice="opt">--delay <replaceable>delay</replaceable></arg>
51 <arg choice="opt">--sort <replaceable>sortby</replaceable></arg>
52 <arg choice="opt">--reverse</arg>
57 <title>Description</title>
59 <command>lxc-top</command> displays container statistics. The output
60 is updated every <replaceable>delay</replaceable> seconds, and is
61 ordered according to the <replaceable>sortby</replaceable> value
62 given. <command>lxc-top</command> will display as many containers as
63 can fit in your terminal. Press 'q' to quit. Press one of the sort
64 key letters to sort by that statistic. Pressing a sort key letter a
65 second time reverses the sort order.
70 <title>Options</title>
75 <option>-d, --delay <replaceable>delay</replaceable></option>
79 Amount of time in seconds to delay between screen updates.
80 The default is 3 seconds.
86 <option>-s, --sort <replaceable>sortby</replaceable></option>
90 Sort the containers by name, cpu use, or memory use. The
91 <replaceable>sortby</replaceable> argument should be one of
92 the letters n,c,b,m,k to sort by name, cpu use, block I/O, memory,
93 or kernel memory use respectively. The default is 'n'.
99 <option>-r, --reverse</option>
103 Reverse the default sort order. By default, names sort in
104 ascending alphabetical order and values sort in descending
105 amounts (ie. largest value first).
113 <title>Example</title>
116 <term>lxc-top --delay 1 --sort m</term>
119 Display containers, updating every second, sorted by memory use.
129 For performance reasons the kernel does not account kernel memory use
130 unless a kernel memory limit is set. If a limit is not set, <command>
131 lxc-top</command> will display kernel memory use as 0. If no containers
132 are being accounted, the KMem column will not be displayed. A limit can
135 lxc.cgroup.memory.kmem.limit_in_bytes = <replaceable>number</replaceable>
137 in your container configuration file, see
139 <refentrytitle>lxc.conf</refentrytitle>
140 <manvolnum>5</manvolnum>
148 <title>Author</title>
149 <para>Dwight Engen <email>dwight.engen@oracle.com</email></para>
154 <!-- Keep this comment at the end of the file
159 sgml-minimize-attributes:nil
160 sgml-always-quote-attributes:t
163 sgml-parent-document:nil
164 sgml-default-dtd-file:nil
165 sgml-exposed-tags:nil
166 sgml-local-catalogs:nil
167 sgml-local-ecat-files:nil