]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/sysfs: implement a command to update auto-tuned monitoring intervals
authorSeongJae Park <sj@kernel.org>
Mon, 3 Mar 2025 22:17:23 +0000 (14:17 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 07:05:33 +0000 (00:05 -0700)
commit1077605396b4da993327ebe40eabc28478e2be94
tree88e4eaac602630a3c364ef0499dbfc309e320105
parent0622c68d0a51f1268f3f9a171f4969c1bfc07c05
mm/damon/sysfs: implement a command to update auto-tuned monitoring intervals

DAMON kernel API callers can show auto-tuned sampling and aggregation
intervals from the monmitoring attributes data structure.  That can be
useful for debugging or tuning of the feature.  DAMON user-space ABI users
has no way to see that, though.  Implement a new DAMON sysfs interface
command, namely 'update_tuned_intervals', for the purpose.  If the command
is written to the kdamond state file, the tuned sampling and aggregation
intervals will be updated to the corresponding sysfs interface files.

Link: https://lkml.kernel.org/r/20250303221726.484227-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs.c