]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/damon/sysfs_memcg_path_leak.sh: use kmemleak
authorSeongJae Park <sj@kernel.org>
Sat, 17 Jan 2026 02:07:24 +0000 (18:07 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 31 Jan 2026 22:22:44 +0000 (14:22 -0800)
commit94a62284ede0250e48c886416041ad65907ee917
tree74649794c4306afa04268b50ab0e6376a5454be8
parentdd2c6ec24fca9235ccd1b9bfd382d0ddb419e41a
selftests/damon/sysfs_memcg_path_leak.sh: use kmemleak

Patch series "selftests/damon: improve leak detection and wss estimation
reliability".

Two DAMON selftets, namely 'sysfs_memcg_leak' and
'sysfs_update_schemes_tried_regions_wss_estimation' frequently show
intermittent failures due to their unreliable leak detection and working
set size estimation.  Make those more reliable.

This patch (of 5):

sysfs_memcg_path_leak.sh determines if the memory leak has happened by
seeing if Slab size on /proc/meminfo increases more than expected after an
action.  Depending on the system and background workloads, the reasonable
expectation varies.  For the reason, the test frequently shows
intermittent failures.  Use kmemleak, which is much more reliable and
correct, instead.

Link: https://lkml.kernel.org/r/20260117020731.226785-1-sj@kernel.org
Link: https://lkml.kernel.org/r/20260117020731.226785-2-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/sysfs_memcg_path_leak.sh