Lines Matching defs:cgroup
22 * Memory cgroup charging is performed using percpu batches 64 pages
30 static int alloc_dcache(const char *cgroup, void *arg)
100 static int alloc_kmem_smp(const char *cgroup, void *arg)
130 int (*fn)(const char *cgroup, void *arg),
161 * The test creates and destroys a large number of cgroups. In each cgroup it
180 if (cg_write(parent, "cgroup.subtree_control", "+memory"))
245 static int spawn_1000_threads(const char *cgroup, void *arg)
265 stack = cg_read_key_long(cgroup, "memory.stat", "kernel_stack ");
319 if (cg_write(parent, "cgroup.subtree_control", "+memory"))
326 dead = cg_read_key_long(parent, "cgroup.stat",
366 if (cg_write(parent, "cgroup.subtree_control", "+memory"))
424 ksft_exit_skip("cgroup v2 isn't mounted\n");
428 * memory is listed in cgroup.controllers
430 if (cg_read_strstr(root, "cgroup.controllers", "memory"))
433 if (cg_read_strstr(root, "cgroup.subtree_control", "memory"))
434 if (cg_write(root, "cgroup.subtree_control", "+memory"))