mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yuanhe Shu <xiangzao@linux.alibaba.com>
To: vbabka@kernel.org
Cc: akpm@linux-foundation.org, mgorman@techsingularity.net,
	linux-mm@kvack.org, surenb@google.com, mhocko@suse.com,
	brendan.jackman@linux.dev, hannes@cmpxchg.org, ziy@nvidia.com,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	henry.willard@oracle.com, david@kernel.org,
	Yuanhe Shu <xiangzao@linux.alibaba.com>
Subject: Re: [PATCH] mm/page_alloc: do not boost watermarks in kdump capture kernels
Date: Wed, 16 Sep 2026 19:14:05 +0800	[thread overview]
Message-ID: <20260916111405.3687662-1-xiangzao@linux.alibaba.com> (raw)
In-Reply-To: <1a859476-36de-49a9-872f-a62f6eacb7f4@kernel.org>

On 9/15/26 14:02, Vlastimil Babka wrote:
> Sounds like an oversight and we should deboost watermarks first before going
> for an oom kill? But I guess at the same time not boosting in the first
> place in kdump capture kernels makes sense and it's simpler to do.

Agreed. Deboosting before the OOM kill does look like a separate fix
worth doing, but it would change the OOM path for normal kernels too, so
this patch stays limited to the capture kernel.

> Hm while the large pageblocks on 64kb kernels are source of various
> surprises, this at least seems consistent to me. The check together with the
> clamp means we limit the boost to 1/4 of the zone regardless of pageblock
> size, right?

Yes: the check gives pageblock_nr_pages <= zone_managed_pages/4, and with
the large pageblocks here the clamp caps a single boost at one pageblock,
so watermark_boost <= pageblock_nr_pages <= zone_managed_pages/4.

> We should stop mentioning kdump capture kernels here then? They can't reach
> here anymore.

Right, capture kernels now return earlier, so the comment is stale.
I'll drop the kdump mention in a v2.

Thanks for looking at this.

Yuanhe

      reply	other threads:[~2026-09-16 11:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-14 13:11 Yuanhe Shu
2026-09-15 12:02 ` Vlastimil Babka (SUSE)
2026-09-16 11:14   ` Yuanhe Shu [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=20260916111405.3687662-1-xiangzao@linux.alibaba.com \
    --to=xiangzao@linux.alibaba.com \
    --cc=akpm@linux-foundation.org \
    --cc=brendan.jackman@linux.dev \
    --cc=david@kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=henry.willard@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@suse.com \
    --cc=stable@vger.kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@kernel.org \
    --cc=ziy@nvidia.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

all inboxes | Powered by JetHome®