Lines Matching full:current

97 	long anon, current;  in alloc_anon_50M_check()  local
104 current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check()
105 if (current < size) in alloc_anon_50M_check()
108 if (!values_close(size, current, 3)) in alloc_anon_50M_check()
115 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
128 long current, file; in alloc_pagecache_50M_check() local
138 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_50M_check()
139 if (current < size) in alloc_pagecache_50M_check()
146 if (!values_close(file, current, 10)) in alloc_pagecache_50M_check()
159 * and check memory.current and some memory.stat values.
164 long current; in test_memcg_current() local
174 current = cg_read_long(memcg, "memory.current"); in test_memcg_current()
175 if (current != 0) in test_memcg_current()
245 * A/B/C memory.min = 75M, memory.current = 50M
246 * A/B/D memory.min = 25M, memory.current = 50M
247 * A/B/E memory.min = 0, memory.current = 50M
248 * A/B/F memory.min = 500M, memory.current = 0
258 * A/B memory.current ~= 50M
259 * A/B/C memory.current ~= 29M
260 * A/B/D memory.current ~= 21M
261 * A/B/E memory.current ~= 0
262 * A/B/F memory.current = 0
351 while (!values_close(cg_read_long(parent[1], "memory.current"), in test_memcg_protection()
361 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_protection()
365 c[i] = cg_read_long(children[i], "memory.current"); in test_memcg_protection()
385 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_protection()
445 long current, high, max; in alloc_pagecache_max_30M() local
460 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_max_30M()
461 if (!values_close(current, MB(30), 5)) in alloc_pagecache_max_30M()
606 long current, max; in test_memcg_max() local
631 current = cg_read_long(memcg, "memory.current"); in test_memcg_max()
632 if (current > MB(30) || !current) in test_memcg_max()
656 long current, expected_usage, to_reclaim; in test_memcg_reclaim() local
666 current = cg_read_long(memcg, "memory.current"); in test_memcg_reclaim()
667 if (current != 0) in test_memcg_reclaim()
687 * Wait until current usage reaches the expected usage (or we run out of in test_memcg_reclaim()
691 while (!values_close(cg_read_long(memcg, "memory.current"), in test_memcg_reclaim()
705 * Reclaim until current reaches 30M, this makes sure we hit both anon in test_memcg_reclaim()
712 current = cg_read_long(memcg, "memory.current"); in test_memcg_reclaim()
713 to_reclaim = current - MB(30); in test_memcg_reclaim()
730 current = cg_read_long(memcg, "memory.current"); in test_memcg_reclaim()
731 if (!values_close(current, MB(30), 3) && current > MB(30)) in test_memcg_reclaim()
765 mem_current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check_swap()
769 swap_current = cg_read_long(cgroup, "memory.swap.current"); in alloc_anon_50M_check_swap()
800 if (cg_read_long(memcg, "memory.swap.current")) { in test_memcg_swap_max()
973 long current, sock; in tcp_client() local
978 current = cg_read_long(cgroup, "memory.current"); in tcp_client()
981 if (current < 0 || sock < 0) in tcp_client()
984 if (values_close(current, sock, 10)) { in tcp_client()
1003 * memory.current and memory.stat.sock are similar.
1055 if (cg_read_long(memcg, "memory.current") < 0) in test_memcg_sock()