Lines Matching refs:MB

95 	size_t size = MB(50);  in alloc_anon_50M_check()
126 size_t size = MB(50); in alloc_pagecache_50M_check()
198 if (alloc_pagecache(fd, MB(50))) in alloc_pagecache_50M_noexit()
352 MB(150), 3)) { in test_memcg_protection()
358 if (cg_run(parent[2], alloc_anon, (void *)MB(148))) in test_memcg_protection()
361 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_protection()
367 if (!values_close(c[0], MB(29), 10)) in test_memcg_protection()
370 if (!values_close(c[1], MB(21), 10)) in test_memcg_protection()
376 rc = cg_run(parent[2], alloc_anon, (void *)MB(170)); in test_memcg_protection()
385 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_protection()
443 size_t size = MB(50); in alloc_pagecache_max_30M()
450 if (high != MB(30) && max != MB(30)) in alloc_pagecache_max_30M()
461 if (!values_close(current, MB(30), 5)) in alloc_pagecache_max_30M()
499 if (cg_run(memcg, alloc_anon, (void *)MB(31))) in test_memcg_high()
572 pid = cg_run_nowait(memcg, alloc_anon_mlock, (void *)MB(200)); in test_memcg_high_sync()
625 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_max()
632 if (current > MB(30) || !current) in test_memcg_max()
681 cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(50)); in test_memcg_reclaim()
682 expected_usage = MB(100); in test_memcg_reclaim()
684 expected_usage = MB(50); in test_memcg_reclaim()
713 to_reclaim = current - MB(30); in test_memcg_reclaim()
731 if (!values_close(current, MB(30), 3) && current > MB(30)) in test_memcg_reclaim()
756 size_t size = MB(50); in alloc_anon_50M_check_swap()
818 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_swap_max()
827 if (cg_run(memcg, alloc_anon_50M_check_swap, (void *)MB(30))) in test_memcg_swap_max()
866 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_events()
1106 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_leaf_events()
1107 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1108 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1109 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_leaf_events()
1174 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_parent_events()
1175 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1176 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1178 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_parent_events()
1227 safe_pid = cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1231 cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1232 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_score_events()