[RFC PATCH 0/6] mm/damon: update probe hits for runtime parameter commits

From: SJ Park

Date: Tue Jul 07 2026 - 00:39:10 EST


DAMON users can update DAMON parameters such as sampling and aggregation
intervals at runtime. For such changes, monitoring results that depend
on the intervals should be properly updated for better accuracy. For
example, the access frequency counter (nr_accesses) is updated. The
data attribute monitoring counter (probe_hits) is not being updated,
though. Do the updates for new parameters.

Patches Sequence
================

Patches 1-4 rename functions that are being used for nr_accesses update,
to be able to be used for probe_hits without confusion. Patch 5 does
the probe_hits update. Patch 6 update damon_probe_hits_mvsum() to cover
a corner case from the update for better accuracy.

SJ Park (6):
mm/damon/core: s/damon_max_nr_accesses()/damon_nr_samples_per_aggr()/
mm/damon/core: s/accesses_bp_to_nr_accesses/sample_bp_to_count/
mm/damon/core: s/nr_accesses_to_accesses_bp/sample_count_to_bp/
mm/damon/core: s/nr_accesses_for_new_attrs/nr_samples_for_new_attrs/
mm/damon/core: update probe hits for new parameter commit
mm/damon/core: handle unreset probe_hits in probe_hits_mvsum()

include/linux/damon.h | 10 +++---
mm/damon/core.c | 64 ++++++++++++++++++++++++-------------
mm/damon/lru_sort.c | 2 +-
mm/damon/ops-common.c | 2 +-
mm/damon/tests/core-kunit.h | 21 ++++++++----
5 files changed, 63 insertions(+), 36 deletions(-)


base-commit: 9765c7b820c4f11a416d8bc9d402e1914138f64c
--
2.47.3