From: "Vlastimil Babka (SUSE)" <vbabka@kernel.org>
To: "Jose A. Perez de Azpillaga" <azpijr@gmail.com>,
Johannes Weiner <hannes@cmpxchg.org>
Cc: Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>,
Brendan Jackman <brendan.jackman@linux.dev>,
Zi Yan <ziy@nvidia.com>, David Hildenbrand <david@kernel.org>,
Qi Zheng <qi.zheng@linux.dev>,
Shakeel Butt <shakeel.butt@linux.dev>,
Lorenzo Stoakes <ljs@kernel.org>,
Kairui Song <kasong@tencent.com>, Barry Song <baohua@kernel.org>,
Axel Rasmussen <axelrasmussen@google.com>,
Yuanchu Xie <yuanchu@google.com>, Wei Xu <weixugc@google.com>,
Baoquan He <baoquan.he@linux.dev>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
JP Kobryn <jp.kobryn@linux.dev>,
Frank van der Linden <fvdl@google.com>,
Thadeu Lima de Souza Cascardo <cascardo@igalia.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] mm, vmscan: make kswapd unreserve highatomic pageblocks
Date: Wed, 11 Nov 2026 11:22:47 +0100 [thread overview]
Message-ID: <96ab7886-2f8d-4bad-9e22-67c4d1163768@kernel.org> (raw)
In-Reply-To: <057dc7a4-cdf6-48dd-b326-49c92a936b9b@gmail.com>
On 11/10/26 14:25, Jose A. Perez de Azpillaga wrote:
> On 11/9/26 11:20 AM, Vlastimil Babka (SUSE) wrote:
> [snip]
>
>> Hook this highatomic unreserve to the moment we exit the loop in
>> balance_pgdat() due to exhausting reclaim priority, which means pgdat
>> was not balanced and the last kswapd_shrink_node() attempt returned
>> false or failed to reclaim anything. Even if that last attempt made the
>> pgdat balanced, kswapd was struggling enough, so unreserving is far from
>> premature. This should be a more conservative variant of when direct
>> reclaim failure triggers the unreserving. Pass force as true to make
>> sure repeated failures fully unreserve everything. Also make sure we
>> don't count kswapd failures until then. Don't restart immediately as
>> the kswapd() loop will call balance_pgdat() again if the unreserve does
>> not lead to a balanced pgdat.
>>
>
> the lowest priority gating looks good to me.
>
> however, sashiko found some concerns [1].
Yeah I saw, and I wonder why there was no email this time.
The inability to unreserve when there's no free highatomic pages to grab
onto is concerning on its own. Should be a pfn scanner probably.
> [1]:
> https://sashiko.dev/#/patchset/20261109-kswapd-highatomic-unreserve-v2-1-6587ca75c77f%40kernel.org
>
prev parent reply other threads:[~2026-11-11 10:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 10:20 Vlastimil Babka (SUSE)
2026-11-10 13:25 ` Jose A. Perez de Azpillaga
2026-11-11 10:22 ` Vlastimil Babka (SUSE) [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=96ab7886-2f8d-4bad-9e22-67c4d1163768@kernel.org \
--to=vbabka@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=azpijr@gmail.com \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=baoquan.he@linux.dev \
--cc=brendan.jackman@linux.dev \
--cc=cascardo@igalia.com \
--cc=david@kernel.org \
--cc=fvdl@google.com \
--cc=hannes@cmpxchg.org \
--cc=jp.kobryn@linux.dev \
--cc=kasong@tencent.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=qi.zheng@linux.dev \
--cc=shakeel.butt@linux.dev \
--cc=surenb@google.com \
--cc=weixugc@google.com \
--cc=yuanchu@google.com \
--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®