selftests: memcg: adjust expected reclaim values of protected cgroups
authorMichal Koutný <mkoutny@suse.com>
Wed, 18 May 2022 16:18:57 +0000 (18:18 +0200)
committerakpm <akpm@linux-foundation.org>
Fri, 27 May 2022 16:33:45 +0000 (09:33 -0700)
commitf10b6e9a8e6621f6db2acfbf722a6331f3afaa84
treebe14b49443dc5365793b470aca5a054170185f59
parent1d09069f5313f7c35655dc6d405896f748ddc53f
selftests: memcg: adjust expected reclaim values of protected cgroups

The numbers are not easy to derive in a closed form (certainly mere
protections ratios do not apply), therefore use a simulation to obtain
expected numbers.

Link: https://lkml.kernel.org/r/20220518161859.21565-4-mkoutny@suse.com
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: David Vernet <void@manifault.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Richard Palethorpe <rpalethorpe@suse.de>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
MAINTAINERS
tools/testing/selftests/cgroup/memcg_protection.m [new file with mode: 0644]
tools/testing/selftests/cgroup/test_memcontrol.c