Lines Matching refs:CGROUP_ROOT
18 CGROUP_ROOT='/dev/cgroup/memory'
21 if [[ ! -e $CGROUP_ROOT ]]; then
22 mkdir -p $CGROUP_ROOT
24 mount -t cgroup2 none $CGROUP_ROOT
26 echo "+hugetlb +memory" >$CGROUP_ROOT/cgroup.subtree_control
28 mount -t cgroup memory,hugetlb $CGROUP_ROOT
47 rmdir "$CGROUP_ROOT"/a/b 2>/dev/null
48 rmdir "$CGROUP_ROOT"/a 2>/dev/null
49 rmdir "$CGROUP_ROOT"/test1 2>/dev/null
67 actual_a="$(cat "$CGROUP_ROOT"/a/memory.$usage_file)"
79 actual_a_hugetlb="$(cat "$CGROUP_ROOT"/a/hugetlb.${MB}MB.$usage_file)"
95 actual_b="$(cat "$CGROUP_ROOT"/a/b/memory.$usage_file)"
107 actual_b_hugetlb="$(cat "$CGROUP_ROOT"/a/b/hugetlb.${MB}MB.$usage_file)"
121 mkdir "$CGROUP_ROOT"/a
124 echo "+hugetlb +memory" >$CGROUP_ROOT/a/cgroup.subtree_control
126 echo 0 >$CGROUP_ROOT/a/cpuset.mems
127 echo 0 >$CGROUP_ROOT/a/cpuset.cpus
130 mkdir "$CGROUP_ROOT"/a/b
133 echo 0 >$CGROUP_ROOT/a/b/cpuset.mems
134 echo 0 >$CGROUP_ROOT/a/b/cpuset.cpus
147 echo $$ >$CGROUP_ROOT/$cgroup/cgroup.procs
149 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.mems
150 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.cpus
151 echo $$ >"$CGROUP_ROOT/$cgroup/tasks"
155 echo $$ >$CGROUP_ROOT/cgroup.procs
157 echo $$ >"$CGROUP_ROOT/tasks"
173 mkdir $CGROUP_ROOT/test1
179 rmdir $CGROUP_ROOT/test1
180 mkdir $CGROUP_ROOT/test1
205 rmdir "$CGROUP_ROOT"/a/b
230 rmdir "$CGROUP_ROOT"/a/b
243 umount $CGROUP_ROOT
244 rm -rf $CGROUP_ROOT