Skip to content

mm/damon: add a DAMOS filter type for page granularity access recheck

SeongJae Park damon linux-doc linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] docs-abi-damon-update-for-youg-page-type-damos-filter.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesApplied 7/7

Changes from RFC v2 from the cover letter

(https://lore.kernel.org/r/[email protected])
- Add documentation
- Add Tested-by: Honggyu Kim <[email protected]>
- Wordsmith commit messages

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7mm/damon/paddr: implement damon_folio_young()mm/damon/paddr.c+19 -130 repliesApplied
2/7mm/damon/paddr: implement damon_folio_mkold()mm/damon/paddr.c+16 -110 repliesApplied
3/7mm/damon: add DAMOS filter type YOUNGinclude/linux/damon.h mm/damon/sysfs-schemes.c+3 -00 repliesApplied
4/7mm/damon/paddr: implement DAMOS filter type YOUNGmm/damon/paddr.c+5 -00 repliesApplied
5/7Docs/mm/damon/design: document 'young page' type DAMOS filterDocumentation/mm/damon/design.rst+11 -90 repliesApplied
6/7Docs/admin-guide/mm/damon/usage: update for young page type DAMOS filterDocumentation/admin-guide/mm/damon/usage.rst+13 -130 repliesApplied
7/7Docs/ABI/damon: update for 'youg page' type DAMOS filterDocumentation/ABI/testing/sysfs-kernel-mm-damon+3 -30 repliesApplied

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchHonggyu Kim
1/7T-b
2/7T-b
3/7T-b
4/7T-b
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] mm/damon: add a DAMOS filter type for page granularity access recheck

Changes from RFC v2
(https://lore.kernel.org/r/[email protected])
- Add documentation
- Add Tested-by: Honggyu Kim <[email protected]>
- Wordsmith commit messages

Changes from RFC v1
(https://lore.kernel.org/r/[email protected])
- Mark the folio as old if it was young
- Rename __damon_pa_young() to damon_folio_young_one()

DAMON provides its best-effort accuracy-overhead tradeoff under the user-defined ranges of acceptable level of the monitoring accuracy and overhead. A recent discussion for tiered memory management support from DAMON[1] concluded that finding memory regions of specific access pattern with low overhead despite of low accuracy via DAMON first, and then double checking the access of the region again in a finer (e.g., page) granularity could be a useful strategy for some DAMOS schemes.

Add a new type of DAMOS filter, namely 'young' for such a case. It checks each page of DAMOS target region is accessed since the last check, and filters it out or in if 'matching' parameter is 'true' or 'false', respectively.

Because this is a filter type that applied in page granularity, the support depends on DAMON operations set, similar to 'anon' and 'memcg' DAMOS filter types. Implement the support on the DAMON operations set for the physical address space, 'paddr', since one of the expected usages[1] is based on the physical address space.

[1] https://lore.kernel.org/r/[email protected]

SeongJae Park (7):
mm/damon/paddr: implement damon_folio_young() mm/damon/paddr: implement damon_folio_mkold() mm/damon: add DAMOS filter type YOUNG
mm/damon/paddr: implement DAMOS filter type YOUNG Docs/mm/damon/design: document 'young page' type DAMOS filter Docs/admin-guide/mm/damon/usage: update for young page type DAMOS
filter
Docs/ABI/damon: update for 'youg page' type DAMOS filter

 .../ABI/testing/sysfs-kernel-mm-damon         |  6 +-
 Documentation/admin-guide/mm/damon/usage.rst  | 26 ++++----
 Documentation/mm/damon/design.rst             | 20 +++---
 include/linux/damon.h                         |  2 +
 mm/damon/paddr.c                              | 64 ++++++++++++-------
 mm/damon/sysfs-schemes.c                      |  1 +
 6 files changed, 70 insertions(+), 49 deletions(-)

base-commit: 4b4dd809460911d6c406bb45d2c627a9e5734468

Signature · 1 line
2.39.2