diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:11:48 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:11:48 +0000 |
commit | 099c49cf57ec4e85d779c5f24ad51236a86b88bf (patch) | |
tree | 6366cdc9a3480654f8e82527f0fb7d8f4af066b1 /tests/libcgrouptest.h | |
parent | 0a6381e781145b162f3ccb72699037d413cc12b6 (diff) | |
download | libcg-099c49cf57ec4e85d779c5f24ad51236a86b88bf.tar.gz libcg-099c49cf57ec4e85d779c5f24ad51236a86b88bf.tar.xz libcg-099c49cf57ec4e85d779c5f24ad51236a86b88bf.zip |
libcgroup Test: make-controller-check-generic
The following patch adds support for a dynamical check of controllers and
choosing two of them, which are enabled in the kernel. I have given preference
to the cpu and memory controller if they exist.
I will pass these mounted controllers to the c file(will send implementation in
a next patch) and thus the c file will have no hard coding with respect to any
controller. The reason of chosing script for this part is
1. easy to implement
2. otherwise there wont be any use of script :)
One of my doubts is:
Few controllers(e.g. devices) seems not to be having a control file. Please help
me in finding the control file for each controller. Any link to documentation?
This info I need in the c file.
As per my knowledge the control files are:
*****************************
controller control_file
*****************************
cpu cpu.shares
memory memory.linit_in_bytes
debug
devices
ns
cpuacct
cpuset
Also what type of values can be written to those control files?
I need to take care before i write something stupid to a control file.
Please review the patch and give your valuable comments.
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@256 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest.h')
0 files changed, 0 insertions, 0 deletions