From 852880eff7be980c5bd4c86e8451a4e120a054a7 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Mon, 14 Apr 2008 21:11:40 +0000 Subject: Add init scripts and a README. NOTE: These init scripts will change frequently and drastically. Signed-off-by: Balbir Singh git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@14 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- scripts/etc/wlm.conf | 16 ++++++++++++++++ scripts/etc/wlm/cpu.conf | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 scripts/etc/wlm.conf create mode 100644 scripts/etc/wlm/cpu.conf (limited to 'scripts/etc') 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 +# 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 +# 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 -- cgit