diff options
| author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-05-11 10:15:14 +0000 |
|---|---|---|
| committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-05-11 10:15:14 +0000 |
| commit | d90a5a5fcfd899f32eae6fd3ce87b082ff221df8 (patch) | |
| tree | 49d7fab078938e6441a6e7273440584a6d0480a5 /scripts/etc | |
| parent | e2bd008f062988edb7ddef0a6070c7a6c38c3cee (diff) | |
Merge from Balbir's and Dhaval's branches
Makefile | 13 ++
api.c | 335 ++++++++++++++++++++++++++++++++++++++++-----------------------
libcg.h | 42 +++++--
3 files changed, 255 insertions(+), 135 deletions(-)
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@24 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'scripts/etc')
| -rw-r--r-- | scripts/etc/wlm.conf | 16 | ||||
| -rw-r--r-- | scripts/etc/wlm/cpu.conf | 14 |
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 |
