public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj@kernel.org>,
	Usama Arif <usamaarif642@gmail.com>,
	damon@lists.linux.dev, kernel-team@meta.com,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	stable@vger.kernel.org
Subject: [PATCH 0/2] mm/damon/paddr: fix large folios access and schemes handling
Date: Fri,  7 Feb 2025 13:20:31 -0800	[thread overview]
Message-ID: <20250207212033.45269-1-sj@kernel.org> (raw)

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/20250203225604.44742-1-usamaarif642@gmail.com
[2] https://lore.kernel.org/20250206231103.38298-1-sj@kernel.org

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
-- 
2.39.5

             reply	other threads:[~2025-02-07 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-07 21:20 SeongJae Park [this message]
2025-02-07 21:20 ` [PATCH 1/2] mm/damon/ops: have damon_get_folio return folio even for tail pages SeongJae Park
2025-02-07 21:20 ` [PATCH 2/2] mm/damon: avoid applying DAMOS action to same entity multiple times SeongJae Park

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250207212033.45269-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=damon@lists.linux.dev \
    --cc=kernel-team@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=stable@vger.kernel.org \
    --cc=usamaarif642@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox