summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:11:48 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:11:48 +0000
commit099c49cf57ec4e85d779c5f24ad51236a86b88bf (patch)
tree6366cdc9a3480654f8e82527f0fb7d8f4af066b1 /tests/libcgrouptest.h
parent0a6381e781145b162f3ccb72699037d413cc12b6 (diff)
downloadlibcg-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