]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit086cad03358ff095ec62c7636ab700af2745bc7f
treebe14b49443dc5365793b470aca5a054170185f59
parentefa462dcf940631b91760d97f902e157a8eb13bb
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