Lines Matching full:memory
9 * "This test creates a memory cgroup, allocates some anonymous memory
10 * and some pagecache and check memory.current and some memory.stat
22 * memory to 50%. Because these allocate non-page-cache memory during writes.
57 TST_CGROUP_VER_IS_V1(cg_test, "memory") ? "rss %zd" : "anon %zd"; in alloc_anon_50M_check()
63 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zd", ¤t); in alloc_anon_50M_check()
65 "(memory.current=%zd) >= (size=%zd)", current, size); in alloc_anon_50M_check()
67 SAFE_CGROUP_LINES_SCANF(cg_child, "memory.stat", anon_key_fmt, &anon); in alloc_anon_50M_check()
69 TST_EXP_EXPR(anon > 0, "(memory.stat.anon=%zd) > 0", anon); in alloc_anon_50M_check()
71 "(size=%zd) ~= (memory.stat.anon=%zd)", size, current); in alloc_anon_50M_check()
73 "(memory.current=%zd) ~= (memory.stat.anon=%zd)", in alloc_anon_50M_check()
91 TST_CGROUP_VER_IS_V1(cg_test, "memory") ? "cache %zd" : "file %zd"; in alloc_pagecache_50M_check()
104 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", ¤t); in alloc_pagecache_50M_check()
105 tst_res(TINFO, "Created temp file: memory.current=%zu", current); in alloc_pagecache_50M_check()
109 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", ¤t); in alloc_pagecache_50M_check()
111 "(memory.current=%zu) >= (size=%zu)", current, size); in alloc_pagecache_50M_check()
113 SAFE_CGROUP_LINES_SCANF(cg_child, "memory.stat", file_key_fmt, &file); in alloc_pagecache_50M_check()
114 TST_EXP_EXPR(file > 0, "(memory.stat.file=%zd) > 0", file); in alloc_pagecache_50M_check()
117 "(memory.current=%zd) ~= (memory.stat.file=%zd)", in alloc_pagecache_50M_check()
128 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", ¤t); in test_memcg_current()
134 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", ¤t); in test_memcg_current()
135 tst_res(TINFO, "Added proc to memcg: memory.current=%zu", in test_memcg_current()
152 tst_cgroup_require("memory", NULL); in setup()