Skip to content

mm/damon: add support for hugepage_size DAMOS filter

Usama Arif damon linux-mm 1 version Applied

Status from this message: [merged mm-stable] docs-admin-guide-mm-damon-usage-document-hugepage_size-filter-type.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest4 patches 4 repliesApplied 4/4

v3 -> v4 from the cover letter

- Add support for large folios of all sizes, and not just PMD mapped hugepages (David and SJ).
- only get folio while checking access/ applying DAMOS scheme if the head page is also part of that region.

Patches in v5 All 4 applied

#Subject and filesSizeRepliesApplied
1/4mm/damon: introduce DAMOS filter type hugepage_sizeinclude/linux/damon.h mm/damon/core.c mm/damon/paddr.c +1 more+23 -01 replyApplied
2/4mm/damon/sysfs-schemes: add files for setting damos_filter->sz_rangemm/damon/sysfs-schemes.c+54 -01 replyApplied
3/4Docs/ABI/damon: document DAMOS sysfs files to set the min/max folio_sizeDocumentation/ABI/testing/sysfs-kernel-mm-damon+14 -00 repliesApplied
4/4Docs/admin-guide/mm/damon/usage: Document hugepage_size filter typeDocumentation/admin-guide/mm/damon/usage.rst+9 -81 replyApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSeongJae Park
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/4] mm/damon: add support for hugepage_size DAMOS filter

Patches 1-2 from v4 which are a requirement for this series were sent separately by SJ and are merged in mm-unstable.

hugepage_size DAMOS filter can be used to gather statistics to check if memory regions of specific access tempratures are backed by hugepages of a size in a specific range. This filter can help to observe and prove the effectivenes of different schemes for shrinking/collapsing hugepages.

v4 -> v5: (SJ)
- Drop patches 1-2 which were merged.
- change filter name from 'hugepage' -> 'hugepage_size'.
- change struct name from damon_folio_size to damon_size_range.

v3 -> v4:
- Add support for large folios of all sizes, and not just PMD mapped hugepages (David and SJ).
- only get folio while checking access/ applying DAMOS scheme if the head page is also part of that region.

v2 -> v3:
- expose hugepage via sysfs even if the kernel is
built without hugepage support. DAMON will just
just return 0. (SJ Park)

v1 -> v2:
- Wrap DAMOS_FILTER_TYPE_HUGEPAGE case with
CONFIG_PGTABLE_HAS_HUGE_LEAVES (SJ Park)

Usama Arif (4):
mm/damon: introduce DAMOS filter type hugepage_size mm/damon/sysfs-schemes: add files for setting damos_filter->sz_range Docs/ABI/damon: document DAMOS sysfs files to set the min/max
folio_size
Docs/admin-guide/mm/damon/usage: Document hugepage_size filter type

 .../ABI/testing/sysfs-kernel-mm-damon         | 14 +++++
 Documentation/admin-guide/mm/damon/usage.rst  | 17 +++---
 include/linux/damon.h                         | 13 +++++
 mm/damon/core.c                               |  3 +
 mm/damon/paddr.c                              |  6 ++
 mm/damon/sysfs-schemes.c                      | 55 +++++++++++++++++++
 6 files changed, 100 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.5