Lines Matching refs:MB
173 size_t size = MB(50); in alloc_anon_50M_check()
209 size_t size = MB(50); in alloc_pagecache_50M_check()
272 if (peak < MB(50)) in test_memcg_current_peak()
328 if (peak < MB(50)) in test_memcg_current_peak()
345 if (peak > MB(30) || peak < 0) in test_memcg_current_peak()
352 if (peak < MB(50)) in test_memcg_current_peak()
357 if (peak < MB(50)) in test_memcg_current_peak()
361 if (peak < MB(50)) in test_memcg_current_peak()
393 if (alloc_pagecache(fd, MB(50))) in alloc_pagecache_50M_noexit()
562 MB(150), 3)) { in test_memcg_protection()
568 if (cg_run(parent[2], alloc_anon, (void *)MB(148))) in test_memcg_protection()
571 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_protection()
577 if (!values_close(c[0], MB(29), 15)) in test_memcg_protection()
580 if (!values_close(c[1], MB(21), 20)) in test_memcg_protection()
586 rc = cg_run(parent[2], alloc_anon, (void *)MB(170)); in test_memcg_protection()
595 current = min ? MB(50) : MB(30); in test_memcg_protection()
599 if (!reclaim_until(children[0], MB(10))) in test_memcg_protection()
666 size_t size = MB(50); in alloc_pagecache_max_30M()
673 if (high != MB(30) && max != MB(30)) in alloc_pagecache_max_30M()
684 if (!values_close(current, MB(30), 5)) in alloc_pagecache_max_30M()
722 if (cg_run(memcg, alloc_anon, (void *)MB(31))) in test_memcg_high()
795 pid = cg_run_nowait(memcg, alloc_anon_mlock, (void *)MB(200)); in test_memcg_high_sync()
848 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_max()
855 if (current > MB(30) || !current) in test_memcg_max()
947 cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(50)); in test_memcg_reclaim()
948 expected_usage = MB(100); in test_memcg_reclaim()
950 expected_usage = MB(50); in test_memcg_reclaim()
974 if (!reclaim_until(memcg, MB(30))) in test_memcg_reclaim()
989 size_t size = MB(50); in alloc_anon_50M_check_swap()
1117 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_swap_max_peak()
1127 if (peak < MB(29)) in test_memcg_swap_max_peak()
1131 if (peak < MB(29)) in test_memcg_swap_max_peak()
1135 if (peak < MB(29)) in test_memcg_swap_max_peak()
1139 if (peak < MB(29)) in test_memcg_swap_max_peak()
1164 if (peak > MB(10)) in test_memcg_swap_max_peak()
1172 if (peak > MB(1)) in test_memcg_swap_max_peak()
1175 if (cg_read_long(memcg, "memory.peak") < MB(29)) in test_memcg_swap_max_peak()
1178 if (cg_read_long(memcg, "memory.swap.peak") < MB(29)) in test_memcg_swap_max_peak()
1181 if (cg_run(memcg, alloc_anon_50M_check_swap, (void *)MB(30))) in test_memcg_swap_max_peak()
1189 if (peak < MB(29)) in test_memcg_swap_max_peak()
1193 if (peak < MB(29)) in test_memcg_swap_max_peak()
1197 if (peak < MB(29)) in test_memcg_swap_max_peak()
1201 if (peak < MB(19)) in test_memcg_swap_max_peak()
1240 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_events()
1483 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_leaf_events()
1484 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1485 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_leaf_events()
1486 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_leaf_events()
1551 cg_run_nowait(parent, alloc_anon_noexit, (void *) MB(60)); in test_memcg_oom_group_parent_events()
1552 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1553 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_parent_events()
1555 if (!cg_run(child, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_parent_events()
1604 safe_pid = cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1608 cg_run_nowait(memcg, alloc_anon_noexit, (void *) MB(1)); in test_memcg_oom_group_score_events()
1609 if (!cg_run(memcg, alloc_anon, (void *)MB(100))) in test_memcg_oom_group_score_events()