summaryrefslogtreecommitdiffstats
path: root/scripts/etc
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-04-14 21:11:40 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-04-14 21:11:40 +0000
commit852880eff7be980c5bd4c86e8451a4e120a054a7 (patch)
treeddee19e40d9f3794f2a5b80c6d15bc7673d81ca1 /scripts/etc
parentbbb65f3bbe504ad029577618708068a6ef9a9e57 (diff)
downloadlibcg-852880eff7be980c5bd4c86e8451a4e120a054a7.tar.gz
libcg-852880eff7be980c5bd4c86e8451a4e120a054a7.tar.xz
libcg-852880eff7be980c5bd4c86e8451a4e120a054a7.zip
Add init scripts and a README. NOTE: These init scripts will change
frequently and drastically. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@14 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'scripts/etc')
-rw-r--r--scripts/etc/wlm.conf16
-rw-r--r--scripts/etc/wlm/cpu.conf14
2 files changed, 30 insertions, 0 deletions
diff --git a/scripts/etc/wlm.conf b/scripts/etc/wlm.conf
new file mode 100644
index 0000000..01a12b3
--- /dev/null
+++ b/scripts/etc/wlm.conf
@@ -0,0 +1,16 @@
+#
+# Copyright IBM Corporation. 2008
+#
+# 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
+#
+mount /tmp/container cpu
+cpu /etc/wlm/cpu.conf
diff --git a/scripts/etc/wlm/cpu.conf b/scripts/etc/wlm/cpu.conf
new file mode 100644
index 0000000..10ac391
--- /dev/null
+++ b/scripts/etc/wlm/cpu.conf
@@ -0,0 +1,14 @@
+#
+# Copyright IBM Corporation. 2008
+#
+# 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.
+#
+class1 cpu.shares=1024 tuid=balbir tgid=balbir cuid=root cgid=root
+class2 cpu.shares=512 tuid=root tgid=root cuid=balbir cgid=balbir