All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/4] mm/damon: add support for hugepage_size DAMOS filter
@ 2025-02-11 12:43 Usama Arif
  2025-02-11 12:43 ` [PATCH v5 1/4] mm/damon: introduce DAMOS filter type hugepage_size Usama Arif
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Usama Arif @ 2025-02-11 12:43 UTC (permalink / raw)
  To: sj, akpm; +Cc: damon, linux-mm, hannes, david, kernel-team, Usama Arif

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(-)

-- 
2.43.5


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-11 18:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-11 12:43 [PATCH v5 0/4] mm/damon: add support for hugepage_size DAMOS filter Usama Arif
2025-02-11 12:43 ` [PATCH v5 1/4] mm/damon: introduce DAMOS filter type hugepage_size Usama Arif
2025-02-11 17:58   ` SeongJae Park
2025-02-11 12:43 ` [PATCH v5 2/4] mm/damon/sysfs-schemes: add files for setting damos_filter->sz_range Usama Arif
2025-02-11 17:59   ` SeongJae Park
2025-02-11 12:43 ` [PATCH v5 3/4] Docs/ABI/damon: document DAMOS sysfs files to set the min/max folio_size Usama Arif
2025-02-11 12:43 ` [PATCH v5 4/4] Docs/admin-guide/mm/damon/usage: Document hugepage_size filter type Usama Arif
2025-02-11 18:00   ` SeongJae Park
2025-02-11 18:06 ` [PATCH v5 0/4] mm/damon: add support for hugepage_size DAMOS filter SeongJae Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.