An MGLRU Performance Regression Fix Is On The Way Plus Another Optimization

Written by Michael Larabel in Linux Kernel on 6 January 2023 at 05:47 AM EST. 11 Comments
While MGLRU is a nice performance win for the Linux kernel now available when enabling it for v6.1+ kernel builds, during my testing I did encounter a regression around the SVT-AV1 video encode performance at least and a fix is working its way toward mainline.

In some of my earlier MGLRU testing the performance uplift from enabling the Multi-Gen LRU was great, but in particular for the SVT-AV1 open-source video encoder I encountered some performance regressions with it enabled:
MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

MGLRU 8GB Ryzen Benchmarks

Fortunately, MGLRU lead Yu Zhao at Google has been quick to sort out the issue and there is now a patch currently queued in mm-unstable to address it: mm: support POSIX_FADV_NOREUSE.
For MGLRU, the following change showed a [9-11]% increase in FPS, which makes it on par with the active/inactive LRU.

Additionally, another patch of interest was also added to mm-unstable today: mm: add vma_has_recency(). With that patch comes a 6~8% performance increase in IOPS for randomly accessing mapped files when under system memory pressure.

Both of these patches and other improvements are anticipated to land for the Linux 6.3 kernel cycle.
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