Lines Matching defs:max
255 * A memory.min = 0, memory.max = 200M
328 if (cg_write(parent[0], "memory.max", "200M"))
331 if (cg_write(parent[0], "memory.swap.max", "0"))
468 long current, high, max;
472 max = cg_read_long(cgroup, "memory.max");
473 if (high != MB(30) && max != MB(30))
513 if (cg_read_strcmp(memcg, "memory.high", "max\n"))
516 if (cg_write(memcg, "memory.swap.max", "0"))
578 pre_max = cg_read_key_long(memcg, "memory.events", "max ");
582 if (cg_write(memcg, "memory.swap.max", "0"))
588 if (cg_write(memcg, "memory.max", "140M"))
602 post_max = cg_read_key_long(memcg, "memory.events", "max ");
621 * This test checks that memory.max limits the amount of
629 long current, max;
638 if (cg_read_strcmp(memcg, "memory.max", "max\n"))
641 if (cg_write(memcg, "memory.swap.max", "0"))
644 if (cg_write(memcg, "memory.max", "30M"))
658 max = cg_read_key_long(memcg, "memory.events", "max ");
659 if (max <= 0)
817 * This test checks that memory.swap.max limits the amount of
824 long max;
841 if (cg_read_strcmp(memcg, "memory.max", "max\n"))
844 if (cg_read_strcmp(memcg, "memory.swap.max", "max\n"))
847 if (cg_write(memcg, "memory.swap.max", "30M"))
850 if (cg_write(memcg, "memory.max", "30M"))
866 max = cg_read_key_long(memcg, "memory.events", "max ");
867 if (max <= 0)
896 if (cg_write(memcg, "memory.max", "30M"))
899 if (cg_write(memcg, "memory.swap.max", "0"))
1136 if (cg_write(child, "memory.max", "50M"))
1139 if (cg_write(child, "memory.swap.max", "0"))
1204 if (cg_write(parent, "memory.max", "80M"))
1207 if (cg_write(parent, "memory.swap.max", "0"))
1257 if (cg_write(memcg, "memory.max", "50M"))
1260 if (cg_write(memcg, "memory.swap.max", "0"))