Linux 6.8 To Drop The SLAB Allocator, SLUB Optimizations Coming Too

Written by Michael Larabel in Linux Kernel on 5 December 2023 at 02:54 PM EST. 24 Comments
LINUX KERNEL
Following the SLOB allocator removal earlier this year, the Linux 6.8 kernel in the new year is now positioned to remove the SLAB allocator. Additionally, the lone good-for-everything SLUB allocator is set to receive further optimizations.

Linux 6.5 officially deprecated the SLAB allocator and with no one raising objections to its removal or expressing why they can't migrate to SLUB, Linux 6.8 is now slated to be the kernel removing SLAB.

Patches were posted in November for removing SLAB and those patches are now queued in slab.git's slab/for-next branch ahead of the Linux 6.8 merge window opening in a few weeks.

SLAB for Linux 6.8


Dropping SLAB lightens the kernel load by around 5k lines of code and most important makes it easier to improve SLUB moving forward and having less maintenance by kernel developers.

Also queued in slab/for-next are patches for optimizing SLUB's free fast path code layout and alloc fast path code layout, among other optimizations.
Related News
About The Author
Michael Larabel

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.

Popular News This Week