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 2/4] mm/damon/reclaim: set memory PSI 0.05% as default quota goal
Date: Thu, 19 Nov 2026 22:07:36 -0800	[thread overview]
Message-ID: <20261120060741.92121-3-sj@kernel.org> (raw)
In-Reply-To: <20261120060741.92121-1-sj@kernel.org>

DAMON_RECLAIM provides a PSI-driven quota auto-tuning feature.  Because
of the DAMOS quota internal access pattern based region prioritization,
it means the coldness threshold (min_age) is also auto-tuned.  It is
tuned off by default, though.  The feature is expected to be only better
to be enabled.  Enable it by default.  Set 0.5 milliseconds per second
(0.5%) as the default auto-tuning target memory pressure ratio.

Signed-off-by: SJ Park <sj@kernel.org>
---
 mm/damon/reclaim.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/damon/reclaim.c b/mm/damon/reclaim.c
index 2241b3e9145ef..d297b1596704b 100644
--- a/mm/damon/reclaim.c
+++ b/mm/damon/reclaim.c
@@ -69,9 +69,9 @@ DEFINE_DAMON_MODULES_DAMOS_QUOTAS(damon_reclaim_quota);
  * compared to this value to see if the aim is satisfied.  Value zero means
  * disabling this auto-tuning feature.
  *
- * Disabled by default.
+ * 500 microseconds (0.05% of default quota reset interval) by default.
  */
-static unsigned long quota_mem_pressure_us __read_mostly;
+static unsigned long quota_mem_pressure_us __read_mostly = 500;
 module_param(quota_mem_pressure_us, ulong, 0600);
 
 /*
-- 
2.47.3


  parent reply	other threads:[~2026-11-20  6:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  6:07 [RFC PATCH 0/4] mm/damon/reclaim: enable auto-tuning features by default SJ Park
2026-11-20  6:07 ` [RFC PATCH 1/4] mm/damon/reclaim: enable monitoring intervals auto-tune " SJ Park
2026-11-20  6:07 ` SJ Park [this message]
2026-11-20  6:07 ` [RFC PATCH 3/4] mm/damon/reclaim: disable watermarks " SJ Park
2026-11-20  6:07 ` [RFC PATCH 4/4] Docs/admin-guide/mm/damon/reclaim: update for changed default parameters 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=20261120060741.92121-3-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