Skip to content

mm/damon/paddr: fix large folios access and schemes handling

SeongJae Park damon linux-mm lkml stable 1 version Applied

Status from this message: [merged mm-stable] mm-damon-avoid-applying-damos-action-to-same-entity-multiple-times.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/damon/ops: have damon_get_folio return folio even for tail pagesmm/damon/ops-common.c mm/damon/paddr.c+19 -70 repliesApplied
2/2mm/damon: avoid applying DAMOS action to same entity multiple timesinclude/linux/damon.h mm/damon/core.c mm/damon/paddr.c+39 -120 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSeongJae Park
1/2R-b
2/2

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/2] mm/damon/paddr: fix large folios access and schemes handling

DAMON operations set for physical address space, namely 'paddr', treats tail pages as unaccessed always. It can also apply DAMOS action to a large folio multiple times within single DAMOS' regions walking. As a result, the monitoring output has poor quality and DAMOS works in unexpected ways when large folios are being used. Fix those.

The patches were parts of Usama's hugepage_size DAMOS filter patch series[1]. The first fix has collected from there with a slight commit message change for the subject prefix. The second fix is re-written by SJ and posted as an RFC before this series. The second one also got a slight commit message change for the subject prefix.

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

SeongJae Park (1):
mm/damon: avoid applying DAMOS action to same entity multiple times

Usama Arif (1):
mm/damon/ops: have damon_get_folio return folio even for tail pages

 include/linux/damon.h | 11 +++++++++
 mm/damon/core.c       |  1 +
 mm/damon/ops-common.c |  2 +-
 mm/damon/paddr.c      | 57 +++++++++++++++++++++++++++++++------------
 4 files changed, 55 insertions(+), 16 deletions(-)

base-commit: 9c9a75a50e600803a157f4fc76cb856326406ce4

Signature · 1 line
2.39.5