Skip to content

fix and extend zswap kselftests

Nhat Pham cgroups linux-kselftest linux-mm lkml 3 versions – Applied

Status from this message: [merged mm-stable] selftests-add-zswapin-and-no-zswap-tests.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied 3/4
  2. v23 patches 3 repliesSuperseded
  3. v13 patches 7 repliesSuperseded

Changes in v3 from the cover letter

* More cleanup (patch 3) (suggested by Yosry Ahmed).
* Check swap peak in swapin test

Patches in v3 Applied · 3/4

#Subject and filesSizeRepliesApplied
1/3selftests: zswap: add zswap selftest file to zswap maintainer entryMAINTAINERS+1 -00 repliesApplied
2/3selftests: fix the zswap invasive shrink testtools/testing/selftests/cgroup/test_zswap.c+1 -10 repliesApplied
3/3selftests: add zswapin and no zswap teststools/testing/selftests/cgroup/test_zswap.c+119 -12 repliesApplied
3/3selftests: add zswapin and no zswap tests (fix)tools/testing/selftests/cgroup/test_zswap.c+5 -70 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchYosry Ahmed
1/3A-b
2/3A-b
3/3A-b
3/3A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] fix and extend zswap kselftests

Changelog:
v3:
* More cleanup (patch 3) (suggested by Yosry Ahmed).
* Check swap peak in swapin test
v2:
* Make the swapin test also checks for zswap usage (patch 3) (suggested by Yosry Ahmed)
* Some test simplifications/cleanups (patch 3) (suggested by Yosry Ahmed).

Fix a broken zswap kselftest due to cgroup zswap writeback counter renaming, and add 2 zswap kselftests, one to cover the (z)swapin case, and another to check that no zswapping happens when the cgroup limit is 0.

Also, add the zswap kselftest file to zswap maintainer entry so that get_maintainers script can find zswap maintainers.

Nhat Pham (3):
selftests: zswap: add zswap selftest file to zswap maintainer entry
selftests: fix the zswap invasive shrink test
selftests: add zswapin and no zswap tests

 MAINTAINERS                                 |   1 +
 tools/testing/selftests/cgroup/test_zswap.c | 122 +++++++++++++++++++-
 2 files changed, 121 insertions(+), 2 deletions(-)

base-commit: 91f3daa1765ee4e0c89987dc25f72c40f07af34d

Signature · 1 line
2.39.3