summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-03-19 14:53:07 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-03-19 14:53:07 +0000
commitd55f73ddbb0dc099b1471f3493e505142ce94a97 (patch)
tree7d4bcc778ed6f35fe043962b29873cff9ef9e24c /samples
downloadlibcg-d55f73ddbb0dc099b1471f3493e505142ce94a97.tar.gz
libcg-d55f73ddbb0dc099b1471f3493e505142ce94a97.tar.xz
libcg-d55f73ddbb0dc099b1471f3493e505142ce94a97.zip
First initial revision. Look for TODOs and BUGs
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/src@1 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'samples')
-rw-r--r--samples/wlm.conf35
-rw-r--r--samples/wlm.conf.240
-rw-r--r--samples/wlm.conf.365
3 files changed, 140 insertions, 0 deletions
diff --git a/samples/wlm.conf b/samples/wlm.conf
new file mode 100644
index 0000000..dc905ad
--- /dev/null
+++ b/samples/wlm.conf
@@ -0,0 +1,35 @@
+#
+# Copyright IBM Corporation. 2007
+#
+# Authors: Balbir Singh <balbir@linux.vnet.ibm.com>
+# 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.
+#
+# controller file
+#
+
+group ca1 {
+ perm {
+ task {
+ uid = balbir;
+ gid = cgroup;
+ }
+ admin {
+ uid = root;
+ gid = cgroup;
+ }
+ }
+
+ cpu {
+ cpu.shares = 500;
+ }
+}
+
+mount {
+ cpu = /container;
+}
diff --git a/samples/wlm.conf.2 b/samples/wlm.conf.2
new file mode 100644
index 0000000..e4739e0
--- /dev/null
+++ b/samples/wlm.conf.2
@@ -0,0 +1,40 @@
+#
+# Copyright IBM Corporation. 2007
+#
+# Authors: Balbir Singh <balbir@linux.vnet.ibm.com>
+# 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.
+#
+# controller file
+#
+
+group ca1 {
+ perm {
+ task {
+ uid = bulls;
+ gid = bears;
+ }
+ admin {
+ uid = root;
+ gid = root;
+ }
+ }
+
+ cpu {
+ cpu.shares = 500;
+ }
+
+ memory {
+ memory.limit_in_bytes = 200M;
+ }
+}
+
+mount {
+ cpu = /container;
+ memory = /memory;
+}
diff --git a/samples/wlm.conf.3 b/samples/wlm.conf.3
new file mode 100644
index 0000000..6738624
--- /dev/null
+++ b/samples/wlm.conf.3
@@ -0,0 +1,65 @@
+#
+# Copyright IBM Corporation. 2007
+#
+# Authors: Balbir Singh <balbir@linux.vnet.ibm.com>
+# 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.
+#
+# controller file
+#
+
+group ca1 {
+ perm {
+ task {
+ uid = root;
+ gid = kvm;
+ }
+ admin {
+ uid = root;
+ gid = root;
+ }
+ }
+
+ cpu {
+ cpu.shares = 500;
+ }
+
+ memory {
+ memory.limit_in_bytes = 200M;
+ }
+}
+
+group default {
+ perm {
+ task {
+ uid = root;
+ gid = root;
+ }
+ admin {
+ uid = root;
+ gid = root;
+ }
+ }
+
+ cpu {
+ cpu.shares = 500;
+ }
+
+ memory {
+ memory.limit_in_bytes = 200M;
+ }
+}
+
+mount {
+ cpu = /container;
+ memory = /memory;
+}
+
+mount {
+ cpu_acct = /acct;
+}