Lines Matching +full:1 +full:mb
16 if [[ "$1" == "-cgroup-v2" ]]; then
17 cgroup2=1
23 CGROUP_ROOT=$(mount -t cgroup2 | head -1 | awk -e '{print $3}')
27 do_umount=1
35 do_umount=1
43 mb=$(($kb / 1024))
44 echo $mb
47 MB=$(get_machine_hugepage_size)
63 local expected_a="$1"
78 echo actual a = $((${actual_a%% *} / 1024 / 1024)) MB
79 echo expected a = $((${expected_a%% *} / 1024 / 1024)) MB
83 exit 1
87 actual_a_hugetlb="$(cat "$CGROUP_ROOT"/a/hugetlb.${MB}MB.$usage_file)"
90 echo actual a hugetlb = $((${actual_a_hugetlb%% *} / 1024 / 1024)) MB
91 echo expected a hugetlb = $((${expected_a_hugetlb%% *} / 1024 / 1024)) MB
95 exit 1
106 echo actual b = $((${actual_b%% *} / 1024 / 1024)) MB
107 echo expected b = $((${expected_b%% *} / 1024 / 1024)) MB
111 exit 1
115 actual_b_hugetlb="$(cat "$CGROUP_ROOT"/a/b/hugetlb.${MB}MB.$usage_file)"
118 echo actual b hugetlb = $((${actual_b_hugetlb%% *} / 1024 / 1024)) MB
119 echo expected b hugetlb = $((${expected_b_hugetlb%% *} / 1024 / 1024)) MB
123 exit 1
130 sleep 1
150 local cgroup="$1"
172 size=$((${MB} * 1024 * 1024 * 25)) # 50MB = 25 * 2MB hugepages.