<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mglru on Alessandro Miliucci</title><link>https://miliucci.org/tags/mglru/</link><description>Recent content in Mglru on Alessandro Miliucci</description><generator>Hugo</generator><language>en-gb</language><copyright>© Alessandro Miliucci</copyright><lastBuildDate>Thu, 09 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://miliucci.org/tags/mglru/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux 7.2 MGLRU improvements and MongoDB</title><link>https://miliucci.org/post/mongodb-linux-7-2-mglru-performance/</link><pubDate>Thu, 09 Jul 2026 00:00:00 +0000</pubDate><guid>https://miliucci.org/post/mongodb-linux-7-2-mglru-performance/</guid><description>&lt;p>Linux 7.2 includes a series of patches on its MultiGen-LRU algorithm, allowing a MongoDB performance gain for free under some workloads.
This post provides a brief explanation of how Linux memory pages work, as well as the MongoDB-related MGLRU changes.&lt;/p>
&lt;h2 id="linux-memory-pages-primer">Linux Memory Pages Primer&lt;/h2>
&lt;blockquote>
&lt;p>Warning: This is a simplified explanation, if you want to go deeper &lt;a href="https://www.kernel.org/doc/html/latest/admin-guide/mm/concepts.html">start from here&lt;/a>.&lt;/p>&lt;/blockquote>
&lt;p>Reading files from disks is an expensive and slow activity.
For this reason, when Linux accesses a file for the first time, it puts the file&amp;rsquo;s data in in-memory &lt;em>pages&lt;/em>.
A page is an abstraction that acts like a cache: if you need the same file content again, it will be served from the memory, skipping the slow disk access.&lt;/p></description></item></channel></rss>