summaryrefslogtreecommitdiff
path: root/tools/perf/tests/shell/test_stackcollapse_python.sh
diff options
context:
space:
mode:
authorJoshua Hahn <joshua.hahnjy@gmail.com>2026-09-02 12:45:20 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-09-18 08:20:13 -0700
commit8c7fdc0b4c64d6583fff3e8f7696237a16ff7c29 (patch)
tree80fcc1e9356acab1fb1a721dcd94d834c9ba7bd6 /tools/perf/tests/shell/test_stackcollapse_python.sh
parenta363c62a653cc8b3e21da9545fa4e028ef50f9c3 (diff)
downloadlinux-next-8c7fdc0b4c64d6583fff3e8f7696237a16ff7c29.tar.gz
linux-next-8c7fdc0b4c64d6583fff3e8f7696237a16ff7c29.zip
selftests/cgroup: account for zswap shrinker writeback
The test_no_invasive_cgroup_shrink selftest checks that when a cgroup has zswapped out more memory than memory.zswap.max, it does not trigger writeback for other cgroups. To do this, it compares the writeback count in a control cgroup and makes sure that it is 0, and then checks the writeback count in an aggressor cgroup who does expect to see writeback. However, when the zswap shrinker is enabled, the victim cgroup can see legitimate writebacks not triggered by the aggressor. In some Meta CI tests, we have seen this failure mode happen. Instead of checking that the victim cgroup has 0 writeback, compare the writeback values before and after the aggressor runs and check that the victim cgroup did not perform any additional writeback. Note that this can still lead to probabilistic failures if writebacks take longer than 5 seconds, but this should fix the systematic failure case and make "not ok test_no_invasive_cgroup_shrink" less likely. Link: https://lore.kernel.org/20260902194521.3652178-1-joshua.hahnjy@gmail.com Fixes: b5ba474f3f51 ("zswap: shrink zswap pool based on memory pressure") Signed-off-by: Joshua Hahn <joshua.hahnjy@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reported-by: Krush Chavan <krushchavan@outlook.com> Suggested-by: Nhat Pham <nphamcs@gmail.com> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'tools/perf/tests/shell/test_stackcollapse_python.sh')
0 files changed, 0 insertions, 0 deletions