Lines Matching refs:cgroup
27 cgroup_path=/dev/cgroup/memory
31 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control
33 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}')
35 cgroup_path=/dev/cgroup/memory
36 mount -t cgroup memory,hugetlb $cgroup_path
44 echo $$ >$cgroup_path/cgroup.procs
95 echo writing cgroup limit: "$cgroup_limit"
111 local cgroup="$1"
112 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
122 local cgroup="$1"
125 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
135 local cgroup="$1"
138 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file"
148 local cgroup="$1"
164 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file
165 local reserved_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file
182 "$cgroup" "$path" "$method" "$private" "-l" "$reserve" 2>&1 | tee $output &
203 wait_for_hugetlb_memory_to_get_written "$cgroup" "$size"
205 wait_for_hugetlb_memory_to_get_reserved "$cgroup" "$size"
215 "$cgroup" "$path" "$method" "$private" "$reserve"
219 wait_for_hugetlb_memory_to_get_reserved "$cgroup" "$size"
249 local cgroup="$1"
253 wait_for_hugetlb_memory_to_get_depleted $cgroup
485 echo Test more than cgroup limit case.