{
  "id": 11954803,
  "title": "MGLRU-FG Delivering Up To 10~40% Higher Performance For Linux In Some Tests",
  "url": "https://urgent.news/2026/10/04/mglru-fg-delivering-up-to-10-40-higher-performance-for-linux-in-some",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-04T15:16:26.000Z",
  "source": {
    "name": "Phoronix",
    "slug": "phoronix",
    "url": "https://www.phoronix.com/news/Linux-MGLRU-FG-Patches"
  },
  "original_language": "en",
  "account": "Memory Grouped Least Recently Used (MGLRU) is an eviction policy that has been enhanced to potentially deliver up to 10-40% higher performance for Linux in certain tests. The update introduces a tier-PID protection mechanism for eviction time, while also utilizing access-time frequency to promote pages.\n\nA unified set of helpers, based on the referenced count of a folio, has been introduced. Each access increments the folio's referenced count, stored in folio flags. A logarithmic tier is used to map the reference count, with specific thresholds defined: LRU_REFS_REFERENCED (1), LRU_REFS_WORKINGSET (2), LRU_REFS_PROTECTED (3), and LRU_REFS_MAX (7).\n\nWhen the referenced count reaches a certain threshold, the folio is promoted proactively, bypassing the need to wait for the PID controller. Additionally, the usage of PG_workingset and PG_referenced has been simplified, with these values now comprising the low two bits of the refs count. This change reduces the bit usage of MGLRU's refs count by one, and improves the accuracy of MGLRU's reference accounting.\n\nThe enhancements result in a 10% - 40% higher performance, or lower refault rates, in various tests. Certain workloads exhibit a significantly reduced runtime. The improvement is primarily due to MGLRU's increased ability to distinguish hotter working sets. Tests across multiple servers with different architectures, desktops, and Android have shown promising results.\n\nCompared to the previous version (V2), V3 is more affected by anonymous over-reclaim, but overall, it provides better results. However, this problem should be addressed separately. Despite being a major change to LRU, including modifications to Active/Inactive reading, the new policy is already performing well and is considered usable. Michael Larabel, the principal author of Phoronix.com, has authored over 20,000 articles about Linux hardware support, performance, graphics drivers, and other topics. He is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org.",
  "summary": "Linux's Multi-Gen LRU \"MGLRU\" has already achieved nice performance gains for Linux in recent years by optimizing page reclaims and improves performance under memory pressure. The new MGLRU-FG patches aim to take things further...",
  "key_points": [
    "MGLRU policy enhances Linux performance by up to 40%",
    "Tier-PID protection mechanism added for eviction time",
    "Unified helpers based on folio reference count introduced"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}