selftests/damon: add a test for DAMOS apply intervals
authorSeongJae Park <sj@kernel.org>
Wed, 7 Feb 2024 20:31:31 +0000 (12:31 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:56 +0000 (10:24 -0800)
commitce7a2834659fd18eda042574696fe4191f069e31
tree6b13e75bb59a891b928aef6810407da77436c4a4
parent51f58c9da14b1680e352f28a16365803c125af6d
selftests/damon: add a test for DAMOS apply intervals

Add a selftest for DAMOS apply intervals.  It runs two schemes having
different apply interval agains an artificial memory access workload, and
check if the scheme with smaller apply interval was applied more
frequently.

Link: https://lkml.kernel.org/r/20240207203134.69976-6-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/Makefile
tools/testing/selftests/damon/damos_apply_interval.py [new file with mode: 0644]