MGLRU Linux Performance Looking Very Good For OpenWrt Router Use

Written by Michael Larabel in Hardware on 31 August 2022 at 06:40 AM EDT. 18 Comments
For those running the embedded OpenWrt Linux operating system for routers and other networking devices or just running a memory-constrained MIPS Linux system, the forthcoming Multi-Gen LRU "MGLRU" kernel feature is looking very good on that front.

MGLRU is expected to land in Linux 6.1 for this big improvement over the current Linux kernel page reclamation code. Google engineers found the current page reclamation code to be too expensive and making poor eviction choices. MGLRU has been in development for a while as a big improvement especially when running under Linux memory pressure and this patch series has proved to provide noticeable benefits across many different workloads. Google is even using MGLRU in production already with Android and Chrome OS.

MGLRU benchmarks have been looking very good on a variety of hardware platforms and many different workloads. The latest extra weight to boast its advantages is MGLRU looking very good for MIPS embedded hardware with limited RAM capacity and/or OpenWrt for networking/router distributions.

Yu Zhao of Google and the lead MGLRU developer shared some benchmarks today looking at the MGLRU impact on OpenWrt / MIPS. Given the popularity of OpenWrt for running on WiFi routers, Yu Zhao ran some Memtier benchmarks with Memcached on an Ubiquiti EdgeRouter with/without MGLRU.

See all the details in full via this mailing list post but long story short, the MGLRU numbers are looking very good especially when the RAM is being over utilized. Hopefully Multi-Gen LRU remains on track for mainlining with Linux 6.1.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of 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 automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week