Lines Matching +full:2 +full:mb

72   local actual="$2"
85 mb=$(($kb / 1024))
86 echo $mb
89 MB=$(get_machine_hugepage_size)
93 local cgroup_limit="$2"
99 echo "$cgroup_limit" >$cgroup_path/$name/hugetlb.${MB}MB.$fault_limit_file
103 $cgroup_path/$name/hugetlb.${MB}MB.$reservation_limit_file
115 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
126 local size="$2"
128 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file"
139 local size="$2"
141 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file"
152 local size="$2"
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
181 if [[ "$method" == "1" ]] || [[ "$method" == 2 ]] ||
185 "$cgroup" "$path" "$method" "$private" "-l" "$reserve" 2>&1 | tee $output &
255 killall -2 write_to_hugetlbfs
268 local size=$(($1 * ${MB} * 1024 * 1024))
269 local populate="$2"
271 local cgroup_limit=$(($4 * ${MB} * 1024 * 1024))
272 local reservation_limit=$(($5 * ${MB} * 1024 * 1024))
291 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge
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_…
310 local populate1="$2"
345 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge
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…
400 for method in 0 1 2; do
410 if [[ "$method" == 2"" ]] && [[ "$populate" == "-o" ]]; then
414 if [[ "$method" == 2"" ]] && [[ "$reserve" == "-n" ]]; then
430 expect_equal "$((5 * $MB * 1024 * 1024))" "$hugetlb_difference" \
438 expect_equal "$((5 * $MB * 1024 * 1024))" "$reserved_difference" \
458 expect_equal "$((5 * $MB * 1024 * 1024))" "$hugetlb_difference" \
461 expect_equal "$((5 * $MB * 1024 * 1024))" "$reserved_difference" \
475 run_test "5" "$populate" '' "10" "2" "10" "$method" "$private" "1" \
492 if [[ "$method" != 2 ]]; then
493 run_test 5 "$populate" "-w" 2 10 10 "$method" "$private" "1" "$reserve"
520 "Incorrect reservation charged to cgroup 2."
527 "Incorrect reservation charged to cgroup 2."
535 "Incorrect hugetlb charged to cgroup 2."
542 "Incorrect hugetlb charged to cgroup 2."
568 "Incorrect hugetlb charged to cgroup 2."
571 "Incorrected reservation charged to cgroup 2."