On Tue, May 24, 2022 at 06:29:55PM +0200, Michal Koutny wrote:
The memory protection test setup and runtime is almost equal for memory.low and memory.min cases. It makes modification of the common parts prone to mistakes, since the protections are similar not only in setup but also in principle, factor the common part out.
Past exceptions between the tests:
- missing memory.min is fine (kept),
- test_memcg_low protected orphaned pagecache (adapted like test_memcg_min and we keep the processes of protected memory running).
The evaluation in two tests is different (OOM of allocator vs low events of protégés), this is kept different.
Signed-off-by: Michal Koutný mkoutny@suse.com
Acked-by: Roman Gushchin roman.gushchin@linux.dev