Lines Matching refs:MB
87 size_t size = MB(50); in alloc_anon_50M_check()
118 size_t size = MB(50); in alloc_pagecache_50M_check()
189 return alloc_pagecache(fd, MB(50)); in alloc_pagecache_50M()
197 if (alloc_pagecache(fd, MB(50))) in alloc_pagecache_50M_noexit()
341 MB(150), 3)) { in test_memcg_min()
347 if (cg_run(parent[2], alloc_anon, (void *)MB(148))) in test_memcg_min()
350 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_min()
356 if (!values_close(c[0], MB(33), 10)) in test_memcg_min()
359 if (!values_close(c[1], MB(17), 10)) in test_memcg_min()
365 if (!cg_run(parent[2], alloc_anon, (void *)MB(170))) in test_memcg_min()
368 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_min()
494 if (cg_run(parent[2], alloc_anon, (void *)MB(148))) in test_memcg_low()
497 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_low()
503 if (!values_close(c[0], MB(33), 10)) in test_memcg_low()
506 if (!values_close(c[1], MB(17), 10)) in test_memcg_low()
512 if (cg_run(parent[2], alloc_anon, (void *)MB(166))) { in test_memcg_low()
554 size_t size = MB(50); in alloc_pagecache_max_30M()
567 if (current <= MB(29) || current > MB(30)) in alloc_pagecache_max_30M()
605 if (cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_high()
655 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_max()
662 if (current > MB(30) || !current) in test_memcg_max()
681 size_t size = MB(50); in alloc_anon_50M_check_swap()
743 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_swap_max()
752 if (cg_run(memcg, alloc_anon_50M_check_swap, (void *)MB(30))) in test_memcg_swap_max()
791 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_events()
1032 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_leaf_events()
1033 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1034 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1035 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_leaf_events()
1091 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_parent_events()
1092 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1093 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1095 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_parent_events()
1144 safe_pid = cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1148 cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1149 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_score_events()