aboutsummaryrefslogtreecommitdiff
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorUsama Arif <[email protected]>2024-05-08 18:13:59 +0100
committerAndrew Morton <[email protected]>2024-05-11 15:41:36 -0700
commit158863e5d7cc6c9ee7e6c998ef84625caa2e88b3 (patch)
tree3e0a35d59573e9e53fa930e6b2051ecf4478eaee /lib/xarray.c
parenta8248bb72fed5888bc3a0c7a4c97eb358906d7ea (diff)
selftests: cgroup: add tests to verify the zswap writeback path
Attempt writeback with the below steps and check using memory.stat.zswpwb if zswap writeback occurred: 1. Allocate memory. 2. Reclaim memory equal to the amount that was allocated in step 1. This will move it into zswap. 3. Save current zswap usage. 4. Move the memory allocated in step 1 back in from zswap. 5. Set zswap.max to half the amount that was recorded in step 3. 6. Attempt to reclaim memory equal to the amount that was allocated, this will either trigger writeback if it's enabled, or reclamation will fail if writeback is disabled as there isn't enough zswap space. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Usama Arif <[email protected]> Suggested-by: Nhat Pham <[email protected]> Acked-by: Yosry Ahmed <[email protected]> Acked-by: Nhat Pham <[email protected]> Cc: Chengming Zhou <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions