Linux 7.2 Slab Changes Include More Performance Optimizations - Phoronix
Articles & Reviews
News Archive
Forums
Premium Ad-Free<br>Contact
Popular Categories
Close
Articles & Reviews
News Archive
Forums
Premium
Contact
Categories
Computers Display Drivers Graphics Cards Linux Gaming Memory Motherboards Processors Software Storage Operating Systems Peripherals
Linux 7.2 Slab Changes Include More Performance Optimizations
Written by Michael Larabel in Linux Kernel on 17 June 2026 at 04:00 PM EDT. Add A Comment
The slab memory allocation changes for Linux 7.2 have been merged and continue to see more work around shaves and performance optimizations.
Among the interesting slab performance work for Linux 7.2 is this change to defer freelist construction until after bulk allocation from a new slab. Shengming Hu of ZTE noted in that change:<br>"In slub_bulk_bench, the time per object drops by about 42% to 70% with CONFIG_SLAB_FREELIST_RANDOM=n, and by about 58% to 69% with CONFIG_SLAB_FREELIST_RANDOM=y. This benchmark is intended to isolate the cost removed by this change: each iteration allocates exactly slab->objects from a fresh slab. That makes it a near best-case scenario for deferred freelist construction, because the old path still built a full freelist even when no objects remained, while the new path avoids that work. Realistic workloads may see smaller end-to-end gains depending on how often allocations reach this fresh-slab refill path."
Another interesting change for the SLUB allocator is to detach and reattach partial slabs in batch. Hao Li noted a small performance benefit for mmap() from it:<br>"The will-it-scale mmap benchmark shows a 2% ~ 5% performance improvement after applying this patch."
The slab pull request for Linux 7.2 that has since been merged also adds support for allocation tokens as a compiler feature of LLVM Clang 22++ for smarter partitioning of kmalloc caches based on the allocated object type.
Add A Comment
Tweet
Initial AMDGPU HDMI 2.1 FRL Support Successfully Merged For Linux 7.2<br>Linux 7.2 Improves Anonymous/Unnamed Pipe Performance For Shell Pipelines & More<br>Linux 7.2 Continues Removing Old i486 Code Remnants, Adds Rugged Panther Lake<br>Cache Aware Scheduling Merged For Linux 7.2 For Boosting Modern Intel & AMD CPUs<br>Linux 7.2 Introducing The Rust Zerocopy Library To Eliminate More "Unsafe" Code<br>Linux 7.2 To Raise LLVM/Clang Compiler Requirement, Add Support For Distributed ThinLTO
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.
Arch Linux Now Believes Malware Incident Under Control: More Than 1,500 Affected Packages<br>ReactOS "Open-Source Windows" Reaches The Milestone Of Being Able To Run Half-Life<br>macOS 27 Beta Breaks The Ability To Boot Asahi Linux<br>Arch Linux's AUR Sees More Than 400 Packages Compromised With Malware<br>Arch Linux AUR Hit By Another Wave Of Now More Sophisticated Malware Attack<br>Russian Spam & Profanities Are Now Plaguing The Arch Linux AUR<br>YSERVER: Modern X11 Server Written In Rust With The Help Of Claude Code<br>AMD Opens Pre-Orders For The Linux-Friendly Ryzen AI Halo Developer Platform
Bcachefs Tools 1.38.6 Brings Many Performance Improvements
Linux 7.2 Slab Changes Include More Performance Optimizations
AMD's Lemonade AI Server Now Much More Useful With MCP Server Integration
Experimental, Reverse-Engineered & AI Assisted Rust Driver Targets Modern DisplayLink Hardware
Epic Games Announces Lore Open-Source Version Control System
Myna Announced As Speech-To-Text Solution For The Ubuntu Desktop
Initial AMDGPU HDMI 2.1 FRL Support Successfully Merged For Linux 7.2
Qt Creator 20 IDE Released With AI Agent Support
GCC 17 Lands Initial Infrastructure For C++29
Linux Finally Ends AppleTalk Protocol Support
Mozilla Firefox Usage Of zlib-rs For Better Safety & Performance
Linux Enacts Guidance To Tighten Acceptance Of New File-Systems Into The Kernel
KDE Plasma 6 Desktop Finally Comes To Slackware
Btrfs Now Enables Large Folios By Default, Lands Huge Folios With Linux 7.2
Linux 7.2 Improves Anonymous/Unnamed Pipe Performance For Shell Pipelines & More
Phoronix Premium allows ad-free access to the site, multi-page articles on a single page, and other features while supporting this site's continued operations.
Intel Core Ultra X7 Panther Lake Performance On Linux 7.1
Open-Source Success Achieved For Greater Transparency & Security: Running AMD openSIL + Coreboot On EPYC
Benchmarking The Performance Benefits To Ubuntu 26.10 amd64v3 Packages
RISC-V CPU Performance Up 8x In Five Years: SiFive...