HI, Lucas and Lukáš.
I just modified client/cgroup_utils.py. and send a pullreq:
https://github.com/autotest/autotest/pull/681
Because there are many command about cgroup(for
example:cgcreate,cgset,cgdelete,lssubsys, etc.).
I added some functions will use these commands.
1.mk_cgroup_cgcreate() will create a cgroup by "cgcreate" command, it's
different from mk_cgroup() function.
2.cgexec() function will execute a command in desired cgroup by "cgexec"
command.
3.get_cgroup() will get all cgroups in controller by "lscgroup" command
4.cgdelete_cgroup() will delete desired cgroup by "cgdelete" command
5.cgset_property() will set property file by "cgset" command.
6.get_all_controllers() will get all controllers in system by "lssubsys"
command.
And in CgroupModules, I think get a tmp cgroup directiory is not enough,
so I added a param random in __init__,
if it's False, self.mountdir will be "/cgroup/".Of course at this time,
in __del__, it won't be deleted to avoid break cgroup service.
--
Regards,
--------------------------------------------------
Li Yang
TEL:+86+25-86630566-8529
EMail:[email protected]
--------------------------------------------------
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel