Lines Matching refs:cgroup_path

28   cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}')
29 if [[ -z "$cgroup_path" ]]; then
30 cgroup_path=/dev/cgroup/memory
31 mount -t cgroup2 none $cgroup_path
34 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control
36 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}')
37 if [[ -z "$cgroup_path" ]]; then
38 cgroup_path=/dev/cgroup/memory
39 mount -t cgroup memory,hugetlb $cgroup_path
43 export cgroup_path
47 echo $$ >$cgroup_path/cgroup.procs
49 echo $$ >$cgroup_path/tasks
57 if [[ -e $cgroup_path/hugetlb_cgroup_test ]]; then
58 rmdir $cgroup_path/hugetlb_cgroup_test
60 if [[ -e $cgroup_path/hugetlb_cgroup_test1 ]]; then
61 rmdir $cgroup_path/hugetlb_cgroup_test1
63 if [[ -e $cgroup_path/hugetlb_cgroup_test2 ]]; then
64 rmdir $cgroup_path/hugetlb_cgroup_test2
96 mkdir $cgroup_path/$name
99 echo "$cgroup_limit" >$cgroup_path/$name/hugetlb.${MB}MB.$fault_limit_file
103 $cgroup_path/$name/hugetlb.${MB}MB.$reservation_limit_file
105 if [ -e "$cgroup_path/$name/cpuset.cpus" ]; then
106 echo 0 >$cgroup_path/$name/cpuset.cpus
108 if [ -e "$cgroup_path/$name/cpuset.mems" ]; then
109 echo 0 >$cgroup_path/$name/cpuset.mems
115 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
128 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
141 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file"
167 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file
168 local reserved_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file
299 local final_hugetlb=$(cat $cgroup_path/hugetlb_cgroup_test/hugetlb.${MB}MB.$fault_usage_file)
300 …local final_reservation=$(cat $cgroup_path/hugetlb_cgroup_test/hugetlb.${MB}MB.$reservation_usage_…
356 local cgroup1_hugetlb_usage=$cgroup_path/hugetlb_cgroup_test1/hugetlb.${MB}MB.$fault_usage_file
357 …local cgroup1_reservation_usage=$cgroup_path/hugetlb_cgroup_test1/hugetlb.${MB}MB.$reservation_usa…
358 local cgroup2_hugetlb_usage=$cgroup_path/hugetlb_cgroup_test2/hugetlb.${MB}MB.$fault_usage_file
359 …local cgroup2_reservation_usage=$cgroup_path/hugetlb_cgroup_test2/hugetlb.${MB}MB.$reservation_usa…
582 umount $cgroup_path
583 rmdir $cgroup_path