lxc-top.sgml.in revision dc421f3aac1f0e516c763dd156629a8ed2a7b4ca
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherCopyright © 2012 Oracle.
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherDwight Engen <dwight.engen@oracle.com>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherThis library is free software; you can redistribute it and/or
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallaghermodify it under the terms of the GNU Lesser General Public
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherLicense as published by the Free Software Foundation; either
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagherversion 2.1 of the License, or (at your option) any later version.
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherThis library is distributed in the hope that it will be useful,
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagherbut WITHOUT ANY WARRANTY; without even the implied warranty of
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherLesser General Public License for more details.
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherYou should have received a copy of the GNU Lesser General Public
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherLicense along with this library; if not, write to the Free Software
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose <refnamediv>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose <refpurpose>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose monitor container statistics
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose コンテナの統計情報の表示
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose </refnamediv>
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose <refsynopsisdiv>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose <cmdsynopsis>
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov <arg choice="opt">--max <replaceable>count</replaceable></arg>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose <arg choice="opt">--delay <replaceable>delay</replaceable></arg>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose <arg choice="opt">--sort <replaceable>sortby</replaceable></arg>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose </cmdsynopsis>
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose </refsynopsisdiv>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose <command>lxc-top</command> displays container statistics. The output
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose is updated every <replaceable>delay</replaceable> seconds, and is
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose ordered according to the <replaceable>sortby</replaceable> value
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose given. Specifying <replaceable>count</replaceable> will limit the
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose number of containers displayed, otherwise <command>lxc-top</command>
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose will display as many containers as can fit in your terminal.
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose <command>lxc-top</command> はコンテナの統計情報を表示します。出力は <replaceable>delay</replaceable> 秒ごとに更新されます。
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose そして、<replaceable>sortby</replaceable> で指定した値に従ってソートされます。<replaceable>count</replaceable> を指定すると表示するコンテナ数を制限しますが、指定しなければ使用しているターミナルに合うようなコンテナ数で表示します。
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose <variablelist>
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose <varlistentry>
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose <option><optional>-m, --max <replaceable>count</replaceable></optional></option>
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose Limit the number of containers displayed to
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose <replaceable>count</replaceable>.
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose 表示するコンテナ数を <replaceable>count</replaceable> に制限します。
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose </varlistentry>
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose <varlistentry>
8babbeee01e67893af4828ddfc922ecac0be4197Pavel Reichl <option><optional>-d, --delay <replaceable>delay</replaceable></optional></option>
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose Amount of time in seconds to delay between screen updates.
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov This can be specified as less than a second by giving a
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov rational number, for example 0.5 for a half second delay. The
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose default is 3 seconds.
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose 表示を更新する間隔を秒で指定します。有理数を指定することにより、1 秒以下を指定することも可能です。
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose 例えば、1 秒の半分で更新を行うために 0.5 を指定します。デフォルトは 3 秒です。
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose </varlistentry>
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose <varlistentry>
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose <option><optional>-s, --sort <replaceable>sortby</replaceable></optional></option>
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose Sort the containers by name, cpu use, or memory use. The
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose <replaceable>sortby</replaceable> argument should be one of
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose the letters n,c,d,m,k to sort by name, cpu use, disk I/O, memory,
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov or kernel memory use respectively. The default is 'n'.
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose 名前、CPU 使用量、メモリ使用量でコンテナをソートします。<replaceable>sortby</replaceable> で指定する引数は n,c,d,m,k のどれかでなければなりません。
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose これはそれぞれ名前、CPU 使用量、disk I/O、メモリ使用量、カーネルメモリ使用量を表します。デフォルトは 'n' です。
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose </varlistentry>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher <varlistentry>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher <option><optional>-r, --reverse</optional></option>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher Reverse the default sort order. By default, names sort in
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher ascending alphabetical order and values sort in descending
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher amounts (ie. largest value first).
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher デフォルトのソート順を逆転させます。デフォルトでは、名前のソートはアルファベットの昇順、値のソートは量の降順 (最も大きい数が最初) です。
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek </varlistentry>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek </variablelist>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher <variablelist>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher <varlistentry>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher Display containers, updating every second, sorted by memory use.
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher コンテナを 1 秒ごとに更新し、メモリ使用量でソートして表示します。
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek </varlistentry>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek </variablelist>
8babbeee01e67893af4828ddfc922ecac0be4197Pavel Reichl For performance reasons the kernel does not account kernel memory use
8babbeee01e67893af4828ddfc922ecac0be4197Pavel Reichl unless a kernel memory limit is set. If a limit is not set, <command>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek lxc-top</command> will display kernel memory use as 0. If no containers
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek are being accounted, the KMem column will not be displayed. A limit can
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek be set by specifying
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek <programlisting>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek lxc.cgroup.memory.kmem.limit_in_bytes = <replaceable>number</replaceable>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek </programlisting>
bfdb2eeed95bde6cd065a9a47a7cb1773990ccfbOndrej Kos in your container configuration file, see
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov <citerefentry>
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik <refentrytitle>lxc.conf</refentrytitle>
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov <manvolnum>5</manvolnum>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek </citerefentry>.
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek パフォーマンスへの影響を考慮して、カーネルメモリの使用量は、カーネルメモリの制限値が設定されない限りはカウントされません。
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek もし、制限が設定されていない場合、<command>lxc-top</command> はカーネルメモリの使用量を 0 と表示します。
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek もし、カウントされているコンテナが存在しない場合、KMem カラムは表示されません。制限は
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek <programlisting>
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov lxc.cgroup.memory.kmem.limit_in_bytes = <replaceable>number</replaceable>
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov </programlisting>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek のように、コンテナの設定ファイルで指定することができます。詳しくは、
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek <citerefentry>
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina </citerefentry>
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher <para>Dwight Engen <email>dwight.engen@oracle.com</email></para>
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek<!-- Keep this comment at the end of the file
46222e5191473f9a46aec581273eb2eef22e23beMichal ZidekLocal variables:
46222e5191473f9a46aec581273eb2eef22e23beMichal Zideksgml-omittag:t
8babbeee01e67893af4828ddfc922ecac0be4197Pavel Reichlsgml-shorttag:t
46222e5191473f9a46aec581273eb2eef22e23beMichal Zideksgml-minimize-attributes:nil
46222e5191473f9a46aec581273eb2eef22e23beMichal Zideksgml-always-quote-attributes:t
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashovsgml-indent-step:2
3fa03d5816d6a401d8e894b77236d3cfd95dbd96Pavel Reichlsgml-indent-data:t
3fa03d5816d6a401d8e894b77236d3cfd95dbd96Pavel Reichlsgml-parent-document:nil
46222e5191473f9a46aec581273eb2eef22e23beMichal Zideksgml-default-dtd-file:nil
46222e5191473f9a46aec581273eb2eef22e23beMichal Zideksgml-exposed-tags:nil
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bosesgml-local-catalogs:nil
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bosesgml-local-ecat-files:nil