Skip to content

memcg: Fix test_memcg_min/low test failures

Waiman Long cgroups linux-kselftest linux-mm lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 2 repliesIn review 1 of 2 applied
  2. v72 patches 6 repliesSuperseded
  3. v62 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v52 patches4 repliesSuperseded
v42 patches5 repliesSuperseded
v32 patches2 repliesSuperseded

Changes in v8 from the cover letter

- Ignore the low event count of child 2 with memory_recursiveprot on in patch 1 as originally suggested by Michal.

Patches in v8 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests: memcg: Allow low event with no memory.low and memory_recursiveprot ontools/testing/selftests/cgroup/test_memcontrol.c+14 -41 reply
2/2selftests: memcg: Increase error tolerance of child memory.current check in test_memcg_protection()tools/testing/selftests/cgroup/test_memcontrol.c+2 -20 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichal KoutnýTejun Heo
SeriesA-b
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/2] memcg: Fix test_memcg_min/low test failures

v8:
- Ignore the low event count of child 2 with memory_recursiveprot on in patch 1 as originally suggested by Michal.

v7:
- Skip the vmscan change as the mem_cgroup_usage() check for now as it is currently redundant.

v6:
- The memcg_test_low failure is indeed due to the memory_recursiveprot mount option which is enabled by default in systemd cgroup v2 setting. So adopt Michal's suggestion to adjust the low event checking according to whether memory_recursiveprot is enabled or not.

The test_memcontrol selftest consistently fails its test_memcg_low sub-test (with memory_recursiveprot enabled) and sporadically fails its test_memcg_min sub-test. This patchset fixes the test_memcg_min and test_memcg_low failures by adjusting the test_memcontrol selftest to fix these test failures.

Waiman Long (2):
selftests: memcg: Allow low event with no memory.low and
memory_recursiveprot on
selftests: memcg: Increase error tolerance of child memory.current
check in test_memcg_protection()

 .../selftests/cgroup/test_memcontrol.c        | 22 ++++++++++++++-----
 1 file changed, 16 insertions(+), 6 deletions(-)
Signature · 1 line
2.49.0