Home | History | Annotate | Download | only in cgroup

Lines Matching refs:Cgroup

7 from cgroup_common import Cgroup as CG
10 class cgroup(test.test):
12 Tests the cgroup functionalities. It works by creating a process (which is
22 Try to access different resources which are restricted by cgroup.
24 logging.info('Starting cgroup testing')
61 raise error.TestFail('Can\'t mount any cgroup modules')
84 err += "\nCan't remove cgroup directory"
97 raise error.TestFail("cgroup init failed")
104 raise error.TestFail("Can't create cgroup")
140 # Fill the memory without cgroup limitation
143 logging.debug("test_memory: Memfill WO cgroup")
154 raise error.TestFail("Memory filling failed (WO cgroup)")
159 raise error.TestFail("Process failed (WO cgroup); output:\n%s"
163 "(WO cgroup)")
164 logging.debug("test_memory: Memfill WO cgroup passed")
174 raise error.TestFail("Could not set cgroup")
211 logging.debug("test_memory: Memfill mem only cgroup passed")
222 raise error.TestFail("Could not set cgroup (memsw)")
254 logging.debug("test_memory: Memfill mem + swap cgroup passed")
334 err += "\nCan't remove cgroup direcotry"
344 raise error.TestFail("cgroup init failed")
346 # FIXME: new cpuset cgroup doesn't have any mems and cpus assigned
359 raise error.TestFail("Can't create cgroup")
360 # FIXME: new cpuset cgroup doesn't have any mems and cpus assigned
369 "a new cgroup")
383 raise error.TestFail("Failed to set cgroup")