From: Barry Song <21cnbao@gmail.com>
To: willy@infradead.org
Cc: axelrasmussen@google.com, linux-mm@kvack.org,
lsf-pc@lists.linux-foundation.org, ryncsn@gmail.com,
weixugc@google.com, yuanchu@google.com
Subject: Re: [LSF/MM/BPF] Improving MGLRU
Date: Fri, 27 Feb 2026 12:31:39 +0800 [thread overview]
Message-ID: <20260227043139.95115-1-21cnbao@gmail.com> (raw)
In-Reply-To: <aaBsrrmV25FTIkVX@casper.infradead.org>
>> MGLRU has been introduced in the mainline for years, but we still have two LRUs
>> today. There are many reasons MGLRU is still not the only LRU implementation in
>> the kernel.
> To my mind, the biggest problem with MGLRU is that Google dumped it on us
> and ran away. Commit 44958000bada claimed that it was now maintained and
> added three people as maintainers. In the six months since that commit,
> none of those three people have any commits in mm/! This is a shameful
> state of affairs.
>
> I say rip it out.
Hi Matthew,
Can we keep it for now? Kairui, Zicheng, and I are working on it.
From what I’ve seen, it performs much better than the active/inactive
approach after applying a few vendor hooks on Android, such as forced
aging and avoiding direct activation of read-ahead folios during page
faults, among others. To be honest, performance was worse than
active/inactive without those hooks, which are still not in mainline.
It just needs more work. MGLRU has many strong design aspects, including
using more generations to differentiate cold from hot, the look-around
mechanism to reduce scanning overhead by leveraging cache locality,
and data structure designs that minimize lock holding.
Best regards
Barry
next prev parent reply other threads:[~2026-02-27 4:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-19 17:25 [LSF/MM/BPF TOPIC] " Kairui Song
2026-02-20 18:24 ` Johannes Weiner
2026-02-21 6:03 ` Kairui Song
2026-02-26 1:55 ` Kalesh Singh
2026-02-26 3:06 ` Kairui Song
2026-02-26 10:10 ` wangzicheng
2026-02-26 15:54 ` Matthew Wilcox
2026-02-27 4:31 ` Barry Song [this message]
2026-02-27 3:30 ` [LSF/MM/BPF] " Barry Song
-- strict thread matches above, loose matches on Subject: below --
2026-02-19 17:09 Kairui Song
2026-02-24 17:19 ` Suren Baghdasaryan
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=20260227043139.95115-1-21cnbao@gmail.com \
--to=21cnbao@gmail.com \
--cc=axelrasmussen@google.com \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=ryncsn@gmail.com \
--cc=weixugc@google.com \
--cc=willy@infradead.org \
--cc=yuanchu@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