Lines Matching refs:MB
91 size_t size = MB(50); in alloc_anon_50M_check()
122 size_t size = MB(50); in alloc_pagecache_50M_check()
193 return alloc_pagecache(fd, MB(50)); in alloc_pagecache_50M()
201 if (alloc_pagecache(fd, MB(50))) in alloc_pagecache_50M_noexit()
345 MB(150), 3)) { in test_memcg_min()
351 if (cg_run(parent[2], alloc_anon, (void *)MB(148))) in test_memcg_min()
354 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_min()
360 if (!values_close(c[0], MB(33), 10)) in test_memcg_min()
363 if (!values_close(c[1], MB(17), 10)) in test_memcg_min()
369 if (!cg_run(parent[2], alloc_anon, (void *)MB(170))) in test_memcg_min()
372 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_min()
498 if (cg_run(parent[2], alloc_anon, (void *)MB(148))) in test_memcg_low()
501 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_low()
507 if (!values_close(c[0], MB(33), 10)) in test_memcg_low()
510 if (!values_close(c[1], MB(17), 10)) in test_memcg_low()
516 if (cg_run(parent[2], alloc_anon, (void *)MB(166))) { in test_memcg_low()
558 size_t size = MB(50); in alloc_pagecache_max_30M()
571 if (current <= MB(29) || current > MB(30)) in alloc_pagecache_max_30M()
609 if (cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_high()
659 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_max()
666 if (current > MB(30) || !current) in test_memcg_max()
685 size_t size = MB(50); in alloc_anon_50M_check_swap()
747 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_swap_max()
756 if (cg_run(memcg, alloc_anon_50M_check_swap, (void *)MB(30))) in test_memcg_swap_max()
795 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_events()
1036 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_leaf_events()
1037 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1038 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1039 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_leaf_events()
1095 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_parent_events()
1096 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1097 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1099 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_parent_events()
1148 safe_pid = cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1152 cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1153 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_score_events()