diff options
| author | Nhat Pham <[email protected]> | 2024-02-05 14:56:08 -0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-02-22 15:27:16 -0800 |
| commit | b93c28ff72d42b09d539ac68845307b90cf95e53 (patch) | |
| tree | cc63f7183e2038f3edc05ee3e9b4932c04c23999 /tools/perf/scripts/python/netdev-times.py | |
| parent | 012688f6006c01655e250c1612b544561b7c50be (diff) | |
selftests: add zswapin and no zswap tests
Add a selftest to cover the zswapin code path, allocating more memory than
the cgroup limit to trigger swapout/zswapout, then reading the pages back
in memory several times. This is inspired by a recently encountered
kernel crash on the zswapin path in our internal kernel, which went
undetected because of a lack of test coverage for this path.
Add a selftest to verify that when memory.zswap.max = 0, no pages can go
to the zswap pool for the cgroup.
[[email protected]: remove redundant comment, add success checks]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Nhat Pham <[email protected]>
Suggested-by: Rik van Riel <[email protected]>
Suggested-by: Yosry Ahmed <[email protected]>
Acked-by: Yosry Ahmed <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Zefan Li <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions