Re: [PATCH 1/2] selftests/damon/_damon_sysfs: support kdamond refresh_ms
From: SeongJae Park
Date: Tue Jun 02 2026 - 10:21:09 EST
On Tue, 2 Jun 2026 15:12:16 +0200 Ruslan Valiyev <linuxoid@xxxxxxxxx> wrote:
> The Kdamond class has no way to set the kdamond-level 'refresh_ms' sysfs
> file, which makes DAMON periodically update the read-only sysfs files
> (DAMOS stats, tuned monitoring intervals and the kdamond pid) on its own.
>
> Add a 'refresh_ms' parameter to Kdamond. When it is set (including to
> zero, to disable the periodic update), write it before turning the
> kdamond on, so tests can exercise the auto-update behavior. Leaving it
> unset keeps the previous behavior of not touching the file, so callers
> running against kernels without the feature are unaffected.
Nice addition of the feature, thank you!
>
> Signed-off-by: Ruslan Valiyev <linuxoid@xxxxxxxxx>
Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]