MGLRU Patches Merged To "mm-stable" Ahead Of Linux 6.1 - New Benchmarks Look Good

Written by Michael Larabel in Linux Kernel on 27 September 2022 at 07:50 AM EDT. 29 Comments
LINUX KERNEL
As further indication of MGLRU hopefully being mainlined for Linux 6.1 as planned, the Multi-Gen LRU patches have now been moved to Andrew Morton's mm-stable branch.

MGLRU has been undergoing rigorous testing via Andrew Morton's mm-unstable branch and by the many parties involved with MGLRU and the various downstream kernel flavors already shipping this feature to address the Linux kernel's poor existing page reclamation code. MGLRU has shown to help Linux performance especially in memory pressure / low RAM situations and has been a big win already for Chrome OS and Android devices, among others.

MGLRU has been looking to be one of the best mainline kernel innovations of 2022, assuming it does indeed land successfully with the Linux 6.1 merge window opening up in early October.

Those wanting to give the latest MGLRU code a whirl can find the latest patches now via akpm/mm.git's mm-stable branch.
MGLRU 8GB Ryzen Benchmarks

Recently I fired up some MGLRU on/off benchmarks of the v15 patches using an AMD Ryzen 5 5500U system with just 8GB of RAM.
MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

For that modest hardware with just 8GB of RAM, having MGLRU enabled dramatically increased the PostgreSQL server performance... Good news for containers, SOHO servers running database workloads, small development/testing boxes, etc. PostgreSQL saw the most significant improvements with the MGLRU-enabled kernel.
MGLRU 8GB Ryzen Benchmarks

RocksDB also saw a big uplift.
MGLRU 8GB Ryzen Benchmarks

The Natron renderer seemed to benefit too. There were some cases of minor (usually a few percent or less) performance regressions with MGLRU enabled to be investigated. If/when MGLRU is picked up for Linux 6.1 I'll be around with a whole lot more benchmarking on different systems.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week