Lines Matching +full:2 +full:mb
43 mb=$(($kb / 1024))
44 echo $mb
47 MB=$(get_machine_hugepage_size)
52 rm -rf "$MNT"/* 2>/dev/null
53 umount "$MNT" 2>/dev/null
54 rmdir "$MNT" 2>/dev/null
55 rmdir "$CGROUP_ROOT"/a/b 2>/dev/null
56 rmdir "$CGROUP_ROOT"/a 2>/dev/null
57 rmdir "$CGROUP_ROOT"/test1 2>/dev/null
64 local expected_a_hugetlb="$2"
78 echo actual a = $((${actual_a%% *} / 1024 / 1024)) MB
79 echo expected a = $((${expected_a%% *} / 1024 / 1024)) MB
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
106 echo actual b = $((${actual_b%% *} / 1024 / 1024)) MB
107 echo expected b = $((${expected_b%% *} / 1024 / 1024)) MB
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
151 local path="$2"
172 size=$((${MB} * 1024 * 1024 * 25)) # 50MB = 25 * 2MB hugepages.
211 assert_state 0 $(($size * 2)) 0 $size
216 assert_state 0 $(($size * 2))