damon.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj@kernel.org>,
	damon@lists.linux.dev, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] mm/damon/paddr: simplify page level access re-check for pageout
Date: Mon, 29 Apr 2024 15:44:47 -0700	[thread overview]
Message-ID: <20240429224451.67081-1-sj@kernel.org> (raw)

The 'pageout' DAMOS action implementation of 'paddr' asks
reclaim_pages() to do page level access check again.  But the user can
ask 'paddr' to do the page level access check on its own, using DAMOS
filter of 'young page' type.  Meanwhile, 'paddr' is the only user of
reclaim_pages() that asks the page level access check.

Make 'paddr' does the page level access check on its own always, and
simplify reclaim_pages() by removing the page level access check request
handling logic.  As a result of the change for reclaim_pages(),
reclaim_folio_list(), which is called by reclaim_pages(), also no more
need to do the page level access check.  Simplify the function, too.

SeongJae Park (4):
  mm/damon/paddr: avoid unnecessary page level access check for pageout
    DAMOS action
  mm/damon/paddr: do page level access check for pageout DAMOS action on
    its own
  mm/vmscan: remove ignore_references argument of reclaim_pages()
  mm/vmscan: remove ignore_references argument of reclaim_folio_list()

 mm/damon/paddr.c | 20 +++++++++++++++++++-
 mm/internal.h    |  2 +-
 mm/madvise.c     |  4 ++--
 mm/vmscan.c      | 12 +++++-------
 4 files changed, 27 insertions(+), 11 deletions(-)


base-commit: 784e2d5fd3231ad7cad0ac907be4bc3db30520c0
-- 
2.39.2


             reply	other threads:[~2024-04-29 22:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-29 22:44 SeongJae Park [this message]
2024-04-29 22:44 ` [PATCH 1/4] mm/damon/paddr: avoid unnecessary page level access check for pageout DAMOS action SeongJae Park
2024-04-29 22:44 ` [PATCH 2/4] mm/damon/paddr: do page level access check for pageout DAMOS action on its own SeongJae Park
2024-04-29 22:44 ` [PATCH 3/4] mm/vmscan: remove ignore_references argument of reclaim_pages() 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=20240429224451.67081-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=damon@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).