News: 0001510682

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

MGLRU Sees New Performance Optimizations For Linux

([Linux Kernel] 6 Hours Ago Multi-Gen LRU)


It's been a while since there have been any new advancements or performance optimizations to talk about for Multi-Gen LRU ( [1]MGLRU ) that was upstreamed to the Linux kernel two years ago as [2]a very exciting kernel innovation . But that's changing now with some fresh performance optimizations being worked on for the MGLRU code.

MGLRU is an alternative LRU (Least Recently Used) implementation to optimize page reclamation and improve performance when experiencing system memory pressure. MGLRU has shown some great performance results already when experiencing memory pressure and with an upcoming Linux kernel release it looks like it will be performing even better.

Yu Zhao at Google who has led the MGLRU effort has posted a set of new performance optimizations for the code. The new MGLRU code has reworked its aging feedback, optimized deactivation, reworked type selection, reworked the refault detection, and other changes. With [3]one of the patches is now up to a 57% decrease in the number of refaults while running the Python TPC-C workload. The [4]optimize deactivation patch there is reduced LRU locking contention.

The [5]patch set of six has been tested against Android, FIO, Memcached, multiple virtual machines, and with MongoDB for helping to evaluate the MGLRU performance optimizations. Hopefully the code review will go well and these MGLRU updates will make it into the mainline kernel for an upcoming cycle.



[1] https://www.phoronix.com/search/MGLRU

[2] https://www.phoronix.com/news/MGLRU-LPC-2022

[3] https://lore.kernel.org/lkml/20241206003126.1338283-7-yuzhao@google.com/

[4] https://lore.kernel.org/lkml/20241206003126.1338283-3-yuzhao@google.com/

[5] https://lore.kernel.org/lkml/20241206003126.1338283-1-yuzhao@google.com/



fong38

Were these parsnips CORRECTLY MARINATED in TACO SAUCE?