]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon/core: implement intervals auto-tuning
authorSeongJae Park <sj@kernel.org>
Mon, 3 Mar 2025 22:17:20 +0000 (14:17 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:50:40 +0000 (21:50 -0800)
commit4b6c4dca4e432ac42ea49d04be7a3d91ebb2badf
treed5869229df7e188b24e914546a7c7041b9e1bff4
parent5e46d0a5f75ee71227e8dd5af251a2dca1f86678
mm/damon/core: implement intervals auto-tuning

Implement the DAMON sampling and aggregation intervals auto-tuning
mechanism as briefly described on 'struct damon_intervals_goal'.  The core
part for deciding the direction and amount of the changes is implemented
reusing the feedback loop function which is being used for DAMOS quotas
auto-tuning.  Unlike the DAMOS quotas auto-tuning use case, limit the
maximum decreasing amount after the adjustment to 50% of the current
value, though.  This is because the intervals have no good merits at rapid
reductions since it could unnecessarily increase the monitoring overhead.

Link: https://lkml.kernel.org/r/20250303221726.484227-3-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>
include/linux/damon.h
mm/damon/core.c