| 1 |
<!-- SPDX-License-Identifier: LGPL-2.1+ --> |
| 2 |
|
| 3 |
<!DOCTYPE refentry PUBLIC @docdtd@ [ |
| 4 |
|
| 5 |
<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml"> |
| 6 |
<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml"> |
| 7 |
]> |
| 8 |
|
| 9 |
<refentry> |
| 10 |
|
| 11 |
<docinfo><date>@LXC_GENERATE_DATE@</date></docinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>lxc-cgroup</refentrytitle> |
| 15 |
<manvolnum>1</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>lxc-cgroup</refname> |
| 20 |
|
| 21 |
<refpurpose> |
| 22 |
<!-- |
| 23 |
manage the control group associated with a container |
| 24 |
--> |
| 25 |
コンテナに関係する control group の管理 |
| 26 |
</refpurpose> |
| 27 |
</refnamediv> |
| 28 |
|
| 29 |
<refsynopsisdiv> |
| 30 |
<cmdsynopsis> |
| 31 |
<command>lxc-cgroup</command> |
| 32 |
<arg choice="req">-n <replaceable>name</replaceable></arg> |
| 33 |
<arg choice="req"><replaceable>state-object</replaceable></arg> |
| 34 |
<arg choice="opt">value</arg> |
| 35 |
</cmdsynopsis> |
| 36 |
</refsynopsisdiv> |
| 37 |
|
| 38 |
<refsect1> |
| 39 |
<title><!-- Description -->説明</title> |
| 40 |
|
| 41 |
<para> |
| 42 |
<!-- |
| 43 |
<command>lxc-cgroup</command> gets or sets the value of a |
| 44 |
<replaceable>state-object</replaceable> (e.g., 'cpuset.cpus') |
| 45 |
in the container's cgroup for the corresponding subsystem (e.g., |
| 46 |
'cpuset'). If no <optional>value</optional> is specified, the |
| 47 |
current value of the <replaceable>state-object</replaceable> is |
| 48 |
displayed; otherwise it is set. |
| 49 |
--> |
| 50 |
<command>lxc-cgroup</command> は、コンテナの cgroup の一致するサブシステム (例えば 'cpuset') の <replaceable>state-object</replaceable> (例えば 'cpuset.cpus') の値を取得したり、値を設定したりします。 |
| 51 |
<optional>value</optional> が指定されないときは、<replaceable>state-object</replaceable> の値を表示します。指定されている場合は値を設定します。 |
| 52 |
</para> |
| 53 |
|
| 54 |
<para> |
| 55 |
<!-- |
| 56 |
Note that <command>lxc-cgroup</command> does not check that the |
| 57 |
<replaceable>state-object</replaceable> is valid for the running |
| 58 |
kernel, or that the corresponding subsystem is contained in any |
| 59 |
mounted cgroup hierarchy. |
| 60 |
--> |
| 61 |
<command>lxc-cgroup</command> は <replaceable>state-object</replaceable> が実行中のカーネルで有効かどうかのチェックを行いません。 |
| 62 |
また、指定したサブシステムがマウントされた cgroup の階層構造に含まれているかどうかのチェックを行いません。 |
| 63 |
</para> |
| 64 |
|
| 65 |
</refsect1> |
| 66 |
|
| 67 |
<refsect1> |
| 68 |
<title><!-- Options -->オプション</title> |
| 69 |
<variablelist> |
| 70 |
|
| 71 |
<varlistentry> |
| 72 |
<term> |
| 73 |
<option><replaceable>state-object</replaceable></option> |
| 74 |
</term> |
| 75 |
<listitem> |
| 76 |
<para> |
| 77 |
<!-- |
| 78 |
Specify the state object name. |
| 79 |
--> |
| 80 |
(cgroup の) 状態オブジェクト (state object) 名を指定します。 |
| 81 |
</para> |
| 82 |
</listitem> |
| 83 |
</varlistentry> |
| 84 |
|
| 85 |
<varlistentry> |
| 86 |
<term> |
| 87 |
<option><optional>value</optional></option> |
| 88 |
</term> |
| 89 |
<listitem> |
| 90 |
<para> |
| 91 |
<!-- |
| 92 |
Specify the value to assign to the state object. |
| 93 |
--> |
| 94 |
(cgroup の) 状態オブジェクト (state object) に設定する値を指定します。 |
| 95 |
</para> |
| 96 |
</listitem> |
| 97 |
</varlistentry> |
| 98 |
|
| 99 |
</variablelist> |
| 100 |
|
| 101 |
</refsect1> |
| 102 |
|
| 103 |
&commonoptions; |
| 104 |
|
| 105 |
<refsect1> |
| 106 |
<title><!-- Examples -->例</title> |
| 107 |
<variablelist> |
| 108 |
<varlistentry> |
| 109 |
<term>lxc-cgroup -n foo devices.list</term> |
| 110 |
<listitem> |
| 111 |
<para> |
| 112 |
<!-- |
| 113 |
display the allowed devices to be used. |
| 114 |
--> |
| 115 |
使用が許可されているデバイスを表示します。 |
| 116 |
</para> |
| 117 |
</listitem> |
| 118 |
</varlistentry> |
| 119 |
|
| 120 |
<varlistentry> |
| 121 |
<term>lxc-cgroup -n foo cpuset.cpus "0,3"</term> |
| 122 |
<listitem> |
| 123 |
<para> |
| 124 |
<!-- |
| 125 |
assign the processors 0 and 3 to the container. |
| 126 |
--> |
| 127 |
コンテナにプロセッサ番号 0 と 3 のプロセッサを割り当てます。 |
| 128 |
</para> |
| 129 |
</listitem> |
| 130 |
</varlistentry> |
| 131 |
|
| 132 |
</variablelist> |
| 133 |
</refsect1> |
| 134 |
|
| 135 |
<refsect1> |
| 136 |
<title><!-- Diagnostic -->診断</title> |
| 137 |
|
| 138 |
<variablelist> |
| 139 |
|
| 140 |
<varlistentry> |
| 141 |
<term>The container was not found</term> |
| 142 |
<listitem> |
| 143 |
<para> |
| 144 |
<!-- |
| 145 |
The container is not running. |
| 146 |
--> |
| 147 |
コンテナが実行されていません。 |
| 148 |
</para> |
| 149 |
</listitem> |
| 150 |
</varlistentry> |
| 151 |
|
| 152 |
|
| 153 |
</variablelist> |
| 154 |
|
| 155 |
</refsect1> |
| 156 |
|
| 157 |
&seealso; |
| 158 |
|
| 159 |
</refentry> |
| 160 |
|
| 161 |
<!-- Keep this comment at the end of the file |
| 162 |
Local variables: |
| 163 |
mode: sgml |
| 164 |
sgml-omittag:t |
| 165 |
sgml-shorttag:t |
| 166 |
sgml-minimize-attributes:nil |
| 167 |
sgml-always-quote-attributes:t |
| 168 |
sgml-indent-step:2 |
| 169 |
sgml-indent-data:t |
| 170 |
sgml-parent-document:nil |
| 171 |
sgml-default-dtd-file:nil |
| 172 |
sgml-exposed-tags:nil |
| 173 |
sgml-local-catalogs:nil |
| 174 |
sgml-local-ecat-files:nil |
| 175 |
End: |
| 176 |
--> |