Lines Matching full:current

93 	long anon, current;  in alloc_anon_50M_check()  local
100 current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check()
101 if (current < size) in alloc_anon_50M_check()
104 if (!values_close(size, current, 3)) in alloc_anon_50M_check()
111 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
124 long current, file; in alloc_pagecache_50M_check() local
134 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_50M_check()
135 if (current < size) in alloc_pagecache_50M_check()
142 if (!values_close(file, current, 10)) in alloc_pagecache_50M_check()
155 * and check memory.current and some memory.stat values.
160 long current; in test_memcg_current() local
170 current = cg_read_long(memcg, "memory.current"); in test_memcg_current()
171 if (current != 0) in test_memcg_current()
243 * A/B memory.min = 50M, memory.current = 50M
244 * A/B/C memory.min = 75M, memory.current = 50M
245 * A/B/D memory.min = 25M, memory.current = 50M
246 * A/B/E memory.min = 500M, memory.current = 0
247 * A/B/F memory.min = 0, memory.current = 50M
254 * A/B memory.current ~= 50M
255 * A/B/C memory.current ~= 33M
256 * A/B/D memory.current ~= 17M
257 * A/B/E memory.current ~= 0
344 while (!values_close(cg_read_long(parent[1], "memory.current"), in test_memcg_min()
354 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_min()
358 c[i] = cg_read_long(children[i], "memory.current"); in test_memcg_min()
372 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_min()
400 * A/B memory.low = 50M, memory.current = 50M
401 * A/B/C memory.low = 75M, memory.current = 50M
402 * A/B/D memory.low = 25M, memory.current = 50M
403 * A/B/E memory.low = 500M, memory.current = 0
404 * A/B/F memory.low = 0, memory.current = 50M
411 * A/B memory.current ~= 50M
412 * A/B/ memory.current ~= 33M
413 * A/B/D memory.current ~= 17M
414 * A/B/E memory.current ~= 0
501 if (!values_close(cg_read_long(parent[1], "memory.current"), MB(50), 3)) in test_memcg_low()
505 c[i] = cg_read_long(children[i], "memory.current"); in test_memcg_low()
560 long current; in alloc_pagecache_max_30M() local
570 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_max_30M()
571 if (current <= MB(29) || current > MB(30)) in alloc_pagecache_max_30M()
640 long current, max; in test_memcg_max() local
665 current = cg_read_long(memcg, "memory.current"); in test_memcg_max()
666 if (current > MB(30) || !current) in test_memcg_max()
694 mem_current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check_swap()
698 swap_current = cg_read_long(cgroup, "memory.swap.current"); in alloc_anon_50M_check_swap()
729 if (cg_read_long(memcg, "memory.swap.current")) { in test_memcg_swap_max()
902 long current, sock; in tcp_client() local
907 current = cg_read_long(cgroup, "memory.current"); in tcp_client()
910 if (current < 0 || sock < 0) in tcp_client()
913 if (current < sock) in tcp_client()
916 if (values_close(current, sock, 10)) { in tcp_client()
935 * memory.current and memory.stat.sock are similar.
987 if (cg_read_long(memcg, "memory.current") < 0) in test_memcg_sock()