linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Nhat Pham <nphamcs@gmail.com>
Cc: SeongJae Park <sj@kernel.org>,
	akpm@linux-foundation.org, corbet@lwn.net, linux-mm@kvack.org,
	kernel-team@meta.com, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org, damon@lists.linux.dev
Subject: Re: [PATCH 0/2] mm/damon: introduce DAMOS filter type for active pages
Date: Tue, 18 Mar 2025 11:51:56 -0700	[thread overview]
Message-ID: <20250318185156.35448-1-sj@kernel.org> (raw)
In-Reply-To: <20250318183029.2062917-1-nphamcs@gmail.com>

Hi Nhat,

On Tue, 18 Mar 2025 11:30:27 -0700 Nhat Pham <nphamcs@gmail.com> wrote:

> The memory reclaim algorithm categorizes pages into active and inactive
> lists, separately for file and anon pages. The system's performance
> relies heavily on the (relative and absolute) accuracy of this
> categorization.
> 
> This patch series add a new DAMOS filter for pages' activeness, giving
> us visibility into the access frequency of the pages on each list. This
> insight can help us diagnose issues with the active-inactive balancing
> dynamics, and make decisions to optimize reclaim efficiency and memory
> utilization.
> 
> For instance, we might decide to enable DAMON_LRU_SORT, if we find that
> there are pages on the active list that are infrequently accessed, or
> less frequently accessed than pages on the inactive list.

I agree to all the points, and thank you very much for this great patch series.

For other readers' information, DAMOS filters are for visibility of not only
the human users, but also DAMOS itself.  This new filter type will also be very
useful at making DAMOS schemes that respects LRU information (e.g., reclaim
DAMON-found cold pages but only if it is on inactive LRU list).


Thanks,
SJ

[...]


      parent reply	other threads:[~2025-03-18 18:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-18 18:30 Nhat Pham
2025-03-18 18:30 ` [PATCH 1/2] mm/damon: implement a new " Nhat Pham
2025-03-18 18:45   ` SeongJae Park
2025-03-18 18:30 ` [PATCH 2/2] Docs/mm/damon/design: document active DAMOS filter type Nhat Pham
2025-03-18 18:46   ` SeongJae Park
2025-03-18 18:51 ` SeongJae Park [this message]

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=20250318185156.35448-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=corbet@lwn.net \
    --cc=damon@lists.linux.dev \
    --cc=kernel-team@meta.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=nphamcs@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