lxc-cgroup.sgml.in revision 10fba81b9d0221b8e47aa1e0b43236413b7d28df
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano<!--
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanolxc: linux Container library
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano(C) Copyright IBM Corp. 2007, 2008
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoAuthors:
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoDaniel Lezcano <dlezcano at fr.ibm.com>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoThis library is free software; you can redistribute it and/or
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanomodify it under the terms of the GNU Lesser General Public
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoLicense as published by the Free Software Foundation; either
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoversion 2.1 of the License, or (at your option) any later version.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoThis library is distributed in the hope that it will be useful,
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanobut WITHOUT ANY WARRANTY; without even the implied warranty of
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoLesser General Public License for more details.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoYou should have received a copy of the GNU Lesser General Public
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoLicense along with this library; if not, write to the Free Software
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano-->
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand
10fba81b9d0221b8e47aa1e0b43236413b7d28dfMichel Normand<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand]>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano<refentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refmeta>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refentrytitle>lxc-cgroup</refentrytitle>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <manvolnum>1</manvolnum>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refmeta>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refnamediv>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refname>lxc-cgroup</refname>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refpurpose>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano manage the control group associated with a container
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refpurpose>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refnamediv>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refsynopsisdiv>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <cmdsynopsis>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <command>lxc-start <replaceable>-n name</replaceable>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <replaceable>subsystem</replaceable> <optional>value</optional>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </command>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </cmdsynopsis>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refsynopsisdiv>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <title>Description</title>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <command>lxc-cgroup</command> get or set value from the control
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano group associated with the
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano container <replaceable>name</replaceable>. If
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano no <optional>value</optional> is specified, the value of
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano the <replaceable>subsystem</replaceable> is displayed, otherwise
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano it is set. The <command>lxc-cgroup</command> does not assume the
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano correctness of the <replaceable>subsystem</replaceable> name, it
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano is up to the user to specify the
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano right <replaceable>subsystem</replaceable> name.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <title>Options</title>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <variablelist>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <term>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <option><replaceable>subsystem</replaceable></option>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </term>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano Specify the subsystem control group name.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <term>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <option><optional>value</optional></option>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </term>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano Specify the subsystem control group value to be set.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </variablelist>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
10fba81b9d0221b8e47aa1e0b43236413b7d28dfMichel Normand &commonoptions;
10fba81b9d0221b8e47aa1e0b43236413b7d28dfMichel Normand
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <title>Examples</title>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <variablelist>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <term>lxc-cgroup -n foo devices.list</term>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano display the allowed devices to be used.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <term>lxc-cgroup -n foo cpuset.cpus "0,3"</term>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano assign the processors 0 and 3 to the container.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </variablelist>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <title>Diagnostic</title>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <variablelist>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <term>The container was not found</term>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano The container is not running.
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </listitem>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </varlistentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </variablelist>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand &seealso;
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <title>Author</title>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano </refsect1>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano</refentry>
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano<!-- Keep this comment at the end of the file
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoLocal variables:
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanomode: sgml
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-omittag:t
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-shorttag:t
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-minimize-attributes:nil
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-always-quote-attributes:t
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-indent-step:2
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-indent-data:t
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-parent-document:nil
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-default-dtd-file:nil
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-exposed-tags:nil
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-local-catalogs:nil
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanosgml-local-ecat-files:nil
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcanoEnd:
b0e505c974ff7b018350f99f32199a52e18ed55bdlezcano-->