https://www.phoronix.com/news/MGLRU-LPC-2022
Hopefully being mainlined next cycle with Linux 6.1 is the Multi-Gen LRU, or better known as MGLRU, as a superior alternative to the kernel's existing page reclamation code. Assuming it lands for Linux 6.1 as the last complete kernel cycle of 2022, this would make it one of the most exciting innovations to make it into the kernel this year.
MGLRU benchmarks continue to look very promising across a wide variety of workloads and a diverse spectrum of hardware. From Chrome OS and Android up through desktops/workstations and even servers, MGLRU is able to often deliver better performance due to being less taxing than the existing page reclamation code that has also been acknowledged as often making poor eviction choices.
Jesse Barnes‎ and Rom Lemarchand, both of Google, presented yesterday at Linux Plumbers Conference 2022 (LPC2022) on the latest MGLRU happenings. They reiterated the expectation that MGLRU should make it to mainline with Linux 6.1, there are numerous kernel downstreams and backports already using the code in production, and benchmarks continue to look promising.
[...] As for the MGLRU prospects for Linux 6.1, Andrew Morton commented that he'd like to move the MGLRU patches to his "mm-stable" branch later this week. Though he has expressed some concern over the level of code review and that code commenting could be improved upon. He's hoping though that things will get pushed along. We'll see when the Linux 6.1 merge window opens up in October if MGLRU is ready for mainline.
(Score: -1, Spam) by SeriousBlack on Friday September 16 2022, @06:56AM
I have a bad feeling about this.
(Score: 4, Insightful) by hendrikboom on Friday September 16 2022, @11:48PM (2 children)
So what *is* MGLRU? And how does it differ from what's there now?
(Score: 1, Offtopic) by acid andy on Saturday September 17 2022, @01:16AM
I don't suppose what's there now was developed by people working for an organization that makes most of its money out of people's data.
Master of the science of the art of the science of art.
(Score: 2, Informative) by Anonymous Coward on Saturday September 17 2022, @03:28AM
During memory management the system uses the LRU algorithm to decide what to page and what to scrap (or reclaim). The current LRU uses two lists to decide what memory pages it can free up: active and inactive pages. The MGLRU is the multi-generational LRU because it adds a few more lists with different ages (or "generations").
If you want a much better description [lwn.net].