]> www.infradead.org Git - nvme.git/commit
selftests/damon/damon_nr_regions: test online-tuned max_nr_regions
authorSeongJae Park <sj@kernel.org>
Tue, 25 Jun 2024 18:05:38 +0000 (11:05 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:29 +0000 (19:30 -0700)
commit8bf890c8161215bd1fbd1a6d9b61acbb8eac165b
treef9416b60f4fd8b4fc9b47dca1e60cc155a3fb9e5
parent5ac9adecf0cf07b99d4eeda24a89d27447acd860
selftests/damon/damon_nr_regions: test online-tuned max_nr_regions

User could update max_nr_regions parameter while DAMON is running to a
value that smaller than the current number of regions that DAMON is
seeing.  Such update could be done for reducing the monitoring overhead.
In the case, DAMON should merge regions aggressively more than normal
situation to ensure the new limit is successfully applied.  Implement a
kselftest to ensure that.

Link: https://lkml.kernel.org/r/20240625180538.73134-9-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/damon_nr_regions.py