Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: SJ Park <sj@kernel.org>
Cc: SJ Park <sj@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	damon@lists.linux.dev, linux-mm@kvack.org
Subject: [RFC PATCH v3 0/2] mm/damon: aware attr-only mode in DAMOS quota region selection
Date: Tue,  1 Dec 2026 18:28:29 -0800	[thread overview]
Message-ID: <20261202022833.93546-1-sj@kernel.org> (raw)

DAMOS quota's region prioritization/selection is not aware of the data
attributes only monitoring mode.  It uses wrong information for the
decision and therefore becomes useless in this mode.  Make it be aware
of and properly work in the mode.

Introduce a core API function for determining if it is in the mode, via
patch 1.  Update the prioritization score calculation to use the
attributes monitoring results in the mode, via patch 2.

Changes from RFC v2
- RFC v2: https://lore.kernel.org/20261201032655.123822-1-sj@kernel.org
- Fix the wrong mode check in hotness calculation.
- Wordsmith commit messages.
- Rebase to the latest mm-new.
Changes from RFC
- RFC: https://lore.kernel.org/20261130001530.173703-1-sj@kernel.org
- Scale freq_subscore denominator for the probe weights.
- Rebase to the latest mm-new.

SJ Park (2):
  mm/damon/core: expose damon_has_probe_weights()
  mm/damon/ops-common: use probe hits weighted sum in damon_hot_score()

 include/linux/damon.h |  1 +
 mm/damon/core.c       |  2 +-
 mm/damon/ops-common.c | 23 ++++++++++++++++++++---
 3 files changed, 22 insertions(+), 4 deletions(-)


base-commit: 4c508ea2c29a919e3c813147dddd620428bb7d77
-- 
2.47.3


             reply	other threads:[~2026-12-02  2:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  2:28 SJ Park [this message]
2026-12-02  2:28 ` [RFC PATCH v3 1/2] mm/damon/core: expose damon_has_probe_weights() SJ Park
2026-12-02  2:28 ` [RFC PATCH v3 2/2] mm/damon/ops-common: use probe hits weighted sum in damon_hot_score() SJ 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=20261202022833.93546-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=damon@lists.linux.dev \
    --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