]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 4 Mar 2025 05:50:40 +0000 (21:50 -0800)
commit2d6d57f6cbd0e19a2c15cf19b5bfafbaf934a1c6
treed533a77f042c1dc94a8843acad2a0abfb36c9cac
parent40a64952591af70d6f3087c4352979bec0069306
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