[RFC PATCH 0/4] mm/damon: add lru-active probe filter type

From: SJ Park

Date: Sun Nov 08 2026 - 14:16:50 EST


The LRU-activeness of folios is useful information for understanding and
optimizing the system. DAMOS ops filter therefore supports filtering
memory based on the information. Using it, the information can be
extracted in the folio granularity. It is precise but expensive. DAMON
probe filter is the complementary way for getting the information in
region granularity with much cheaper cost. DAMON filter does not
support LRU-activeness based filtering, though. Add the support.

Define new DAMON filter type, DAMON_FILTER_TYPE_ACTIVE, on core API
(patch 1). Add support for it on both vaddr and paddr operation set
(patch 2). Extend DAMON filter sysfs ABI to let users configure DAMON
filters of the type using a new keyword, "active" (patch 3). Finally,
update the DAMON design document to explain the new type (patch 4).

SJ Park (4):
mm/damon/api: define DAMON_FILTER_TYPE_ACTIVE
mm/damon/ops-common: implement DAMON_FILTER_TYPE_ACTIVE operation
mm/damon/sysfs: support LRU-activeness based DAMON filter setup
Docs/mm/damon/design: update for DAMON_FILTER_TYPE_ACTIVE

Documentation/mm/damon/design.rst | 1 +
include/linux/damon.h | 2 ++
mm/damon/ops-common.c | 7 +++++++
mm/damon/sysfs.c | 4 ++++
4 files changed, 14 insertions(+)


base-commit: 50061821991431146db6bd16b571742c06146d30
--
2.47.3