From: Dhaval Giani Date: Thu, 7 Jan 2010 10:54:37 +0000 (+0530) Subject: libcgroup samples: Valid namespace based configuration X-Git-Tag: v0.35~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b00c3c590da93baef13748ce367778a7a56fe62;p=thirdparty%2Flibcgroup.git libcgroup samples: Valid namespace based configuration Change from v2: 1. Correct the changes made in the config file format. namespace and mount not in the same file. Signed-off-by: Dhaval Giani --- diff --git a/samples/namespace_config.conf b/samples/namespace_config.conf new file mode 100644 index 00000000..fb60bc64 --- /dev/null +++ b/samples/namespace_config.conf @@ -0,0 +1,52 @@ +# +# Copyright IBM Corporation. 2009 +# +# Authors: Dhaval Giani +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2.1 of the GNU Lesser General Public License +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +group www { + perm { + task { + uid = root; + gid = root; + } + admin { + uid = root; + gid = root; + } + } + cpu { + cpu.shares = 1000; + } + cpuacct { + } +} + +group ftp { + perm { + task { + uid = root; + gid = root; + } + admin { + uid = root; + gid = root; + } + } + cpu { + cpu.shares = 500; + } + cpuacct { + } +} + +namespace { + cpu = daemons; + cpuacct = daemons; +}