]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/damon/wss_estimation: ensure number of collected wss
authorSeongJae Park <sj@kernel.org>
Sat, 17 Jan 2026 02:07:27 +0000 (18:07 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 31 Jan 2026 22:22:44 +0000 (14:22 -0800)
commit57525e596bdbf2cb125df8b45902530f219ba444
tree6ff6e1afe3e47bf04147f89dfd1e3edbcc1b1a4d
parent514d1bcb58e0ef93fafa4f9c3035d604a4219867
selftests/damon/wss_estimation: ensure number of collected wss

DAMON selftest for working set size estimation collects DAMON's working
set size measurements of the running artificial memory access generator
program until the program is finished.  Depending on how quickly the
program finishes, and how quickly DAMON starts, the number of collected
working set size measurements may vary, and make the test results
unreliable.  Ensure it collects 40 measurements by using the repeat mode
of the artificial memory access generator program, and finish the
measurements only after the desired number of collections are made.

Link: https://lkml.kernel.org/r/20260117020731.226785-5-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_update_schemes_tried_regions_wss_estimation.py