From: Chris Down <chris@chrisdown.name>
To: Barry Song <baohua@kernel.org>
Cc: bingfangguo@tencent.com,
Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@cmpxchg.org>,
David Hildenbrand <david@kernel.org>,
Michal Hocko <mhocko@kernel.org>, Qi Zheng <qi.zheng@linux.dev>,
Shakeel Butt <shakeel.butt@linux.dev>,
Lorenzo Stoakes <ljs@kernel.org>,
Kairui Song <kasong@tencent.com>,
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>,
Yu Zhao <yuzhao@google.com>, Bingfang Guo <bfguo@icloud.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2] mm/mglru: skip oom killing for order != 0 allocs in kswapd
Date: Wed, 02 Dec 2026 15:07:25 -0800 [thread overview]
Message-ID: <axCkraL5KIE_1bl0@chrisdown.name> (raw)
In-Reply-To: <CAGsJ_4z-UdXQg0LYqymEZdoHALPmAZC7eGcXbGad6f0sdjmkcw@mail.gmail.com>
Hi Barry, Bingfang,
Barry Song writes:
>I'm not really convinced this is the correct fix. It seems to work
>around an issue with min_ttl for higher-order allocations, but it
>doesn't appear to address the root cause.
Hmm... the over-reclaim for high-order wakeups does need fixing, but I
think the OOM kills are a separate regression and should be fixed on their
own. Before 30d77b7eef01 ("mm/mglru: fix ineffective protection
calculation"), lru_gen_age_node() returned early for any non-zero
sc->order, with a comment saying that this was to exclude
compaction-induced reclaim.
That commit needed the memcg walk to always run for
mem_cgroup_calculate_protection(), so the early return was dropped and the
order check went with it. Its changelog only talks about the DEF_PRIORITY
part, so it looks like the order check was lost by accident.
should_abort_scan() still has the same check with the same comment.
Thanks!
Chris
prev parent reply other threads:[~2026-12-02 23:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 4:32 [PATCH v2] mm/mglru: skip oom killing for order != 0 allocs in kswapd Bingfang Guo via B4 Relay
2026-11-25 7:38 ` Barry Song
2026-11-25 9:31 ` Bingfang Guo
2026-11-26 0:40 ` Barry Song
2026-11-26 9:55 ` Bingfang Guo
2026-11-26 11:51 ` Barry Song
2026-12-02 23:07 ` Chris Down [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=axCkraL5KIE_1bl0@chrisdown.name \
--to=chris@chrisdown.name \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=baoquan.he@linux.dev \
--cc=bfguo@icloud.com \
--cc=bingfangguo@tencent.com \
--cc=david@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=kasong@tencent.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@kernel.org \
--cc=qi.zheng@linux.dev \
--cc=shakeel.butt@linux.dev \
--cc=stable@vger.kernel.org \
--cc=weixugc@google.com \
--cc=yuanchu@google.com \
--cc=yuzhao@google.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