VOOZH about

URL: https://www.phoronix.com/news/Linux-Better-Reclaim-Multi-Core

⇱ An Enticing Optimization For Linux Memory Reclaim On Today's Multi-Core Platforms - Phoronix


👁 Phoronix

An Enticing Optimization For Linux Memory Reclaim On Today's Multi-Core Platforms

Written by Michael Larabel in Linux Kernel on 26 March 2026 at 06:10 AM EDT. 6 Comments
A new set of Linux kernel patches for batch TLB flushing for dirty folios within the kernel's vmscan path were recently floated on the Linux kernel mailing list. This batch TLB flushing optimization for dirty folios during memory reclaim can be a significant performance win with today's multi-core hardware.

Tencent engineer Zhang Peng sent out the set of patches to improve the Linux kernel's behavior when performing page-out in memory reclamation. Currently the function to flush dirty pages from the Translation Lookaside Buffer (TLB) is called for each individual dirty folio, but that can lead to excessive Inter-Processor Interrupts (IPIs) that impact performance of the system.

👁 Threadripper CPU and lots of RAM


With the proposed code, dirty folios are queued into batches and then performed a single TLB flush for each of the batches rather than on an individual folio basis.

Using stress-ng to benchmark the kernel behavior was a 26.9% throughput improvement with the five proposed patches.

👁 benchmark result


The patch series was originally proposed earlier in March while today brought the v2 patch series in aiming to reduce IPI overhead on multi-core systems.

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