Lines Matching full:current
97 long anon, current; in alloc_anon_50M_check() local
109 current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check()
110 if (current < size) in alloc_anon_50M_check()
113 if (!values_close(size, current, 3)) in alloc_anon_50M_check()
120 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
133 long current, file; in alloc_pagecache_50M_check() local
143 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_50M_check()
144 if (current < size) in alloc_pagecache_50M_check()
151 if (!values_close(file, current, 10)) in alloc_pagecache_50M_check()
164 * and check memory.current and some memory.stat values.
169 long current; in test_memcg_current() local
179 current = cg_read_long(memcg, "memory.current"); in test_memcg_current()
180 if (current != 0) in test_memcg_current()
257 * A/B/C memory.min = 75M, memory.current = 50M
258 * A/B/D memory.min = 25M, memory.current = 50M
259 * A/B/E memory.min = 0, memory.current = 50M
260 * A/B/F memory.min = 500M, memory.current = 0
270 * A/B memory.current ~= 50M
271 * A/B/C memory.current ~= 29M
272 * A/B/D memory.current ~= 21M
273 * A/B/E memory.current ~= 0
274 * A/B/F memory.current = 0
295 long current; in test_memcg_protection() local
370 while (!values_close(cg_read_long(parent[1], "memory.current"), in test_memcg_protection()
380 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_protection()
384 c[i] = cg_read_long(children[i], "memory.current"); in test_memcg_protection()
404 current = min ? MB(50) : MB(30); in test_memcg_protection()
405 if (!values_close(cg_read_long(parent[1], "memory.current"), current, 3)) in test_memcg_protection()
468 long current, high, max; in alloc_pagecache_max_30M() local
483 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_max_30M()
484 if (!values_close(current, MB(30), 5)) in alloc_pagecache_max_30M()
629 long current, max; in test_memcg_max() local
654 current = cg_read_long(memcg, "memory.current"); in test_memcg_max()
655 if (current > MB(30) || !current) in test_memcg_max()
679 * source of change in memory.current (no concurrent allocations or
690 long current, to_reclaim; in reclaim_until() local
694 current = cg_read_long(memcg, "memory.current"); in reclaim_until()
696 if (current < goal || values_close(current, goal, 3)) in reclaim_until()
702 to_reclaim = current - goal; in reclaim_until()
721 long current, expected_usage; in test_memcg_reclaim() local
730 current = cg_read_long(memcg, "memory.current"); in test_memcg_reclaim()
731 if (current != 0) in test_memcg_reclaim()
751 * Wait until current usage reaches the expected usage (or we run out of in test_memcg_reclaim()
755 while (!values_close(cg_read_long(memcg, "memory.current"), in test_memcg_reclaim()
769 * Reclaim until current reaches 30M, this makes sure we hit both anon in test_memcg_reclaim()
801 mem_current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check_swap()
805 swap_current = cg_read_long(cgroup, "memory.swap.current"); in alloc_anon_50M_check_swap()
836 if (cg_read_long(memcg, "memory.swap.current")) { in test_memcg_swap_max()
994 allocated = cg_read_long(cgroup, "memory.current"); in tcp_client()
1011 long current, sock; in tcp_client() local
1016 current = cg_read_long(cgroup, "memory.current"); in tcp_client()
1019 if (current < 0 || sock < 0) in tcp_client()
1023 if (values_close(current - allocated, sock, 10)) { in tcp_client()
1042 * memory.current and memory.stat.sock are similar.
1094 if (cg_read_long(memcg, "memory.current") < 0) in test_memcg_sock()