Lines Matching refs:cgroup_path

30   cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}')
31 if [[ -z "$cgroup_path" ]]; then
32 cgroup_path=/dev/cgroup/memory
33 mount -t cgroup2 none $cgroup_path
36 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control
38 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}')
39 if [[ -z "$cgroup_path" ]]; then
40 cgroup_path=/dev/cgroup/memory
41 mount -t cgroup memory,hugetlb $cgroup_path
45 export cgroup_path
49 echo $$ >$cgroup_path/cgroup.procs
51 echo $$ >$cgroup_path/tasks
59 if [[ -e $cgroup_path/hugetlb_cgroup_test ]]; then
60 rmdir $cgroup_path/hugetlb_cgroup_test
62 if [[ -e $cgroup_path/hugetlb_cgroup_test1 ]]; then
63 rmdir $cgroup_path/hugetlb_cgroup_test1
65 if [[ -e $cgroup_path/hugetlb_cgroup_test2 ]]; then
66 rmdir $cgroup_path/hugetlb_cgroup_test2
98 mkdir $cgroup_path/$name
101 echo "$cgroup_limit" >$cgroup_path/$name/hugetlb.${MB}MB.$fault_limit_file
105 $cgroup_path/$name/hugetlb.${MB}MB.$reservation_limit_file
107 if [ -e "$cgroup_path/$name/cpuset.cpus" ]; then
108 echo 0 >$cgroup_path/$name/cpuset.cpus
110 if [ -e "$cgroup_path/$name/cpuset.mems" ]; then
111 echo 0 >$cgroup_path/$name/cpuset.mems
117 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
130 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
143 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file"
169 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file
170 local reserved_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file
301 local final_hugetlb=$(cat $cgroup_path/hugetlb_cgroup_test/hugetlb.${MB}MB.$fault_usage_file)
302 …local final_reservation=$(cat $cgroup_path/hugetlb_cgroup_test/hugetlb.${MB}MB.$reservation_usage_…
358 local cgroup1_hugetlb_usage=$cgroup_path/hugetlb_cgroup_test1/hugetlb.${MB}MB.$fault_usage_file
359 …local cgroup1_reservation_usage=$cgroup_path/hugetlb_cgroup_test1/hugetlb.${MB}MB.$reservation_usa…
360 local cgroup2_hugetlb_usage=$cgroup_path/hugetlb_cgroup_test2/hugetlb.${MB}MB.$fault_usage_file
361 …local cgroup2_reservation_usage=$cgroup_path/hugetlb_cgroup_test2/hugetlb.${MB}MB.$reservation_usa…
584 umount $cgroup_path
585 rmdir $cgroup_path