Linux's SLAB Allocator Is Officially Deprecated

Written by Michael Larabel in Linux Kernel on 30 June 2023 at 01:14 PM EDT. 3 Comments
LINUX KERNEL
Following the path of SLOB, Linux's SLAB memory allocator is now officially deprecated beginning with the Linux 6.5 kernel series.

We've known of the plans to deprecate SLAB and eventually remove it just like SLOB was deprecated and then removed in Linux 6.4 in order to focus on SLUB. Following no objections at the LSF/MM meet-up or any other objections raised for deprecating SLAB, its deprecation was submitted earlier this week and then merged this morning into Linux Git.

Barring any surprise action, the SLAB code should in turn be removed from the mainline kernel in a kernel release over the coming months. If you have a novel use/need for SLAB with SLUB somehow not satisfying it, it's best to raise any objections as soon as possible to kernel developers.

SLAB deprecation text


This deprecation drops "CONFIG_SLAB" from the default kernel build from all of the used architectures. The CONFIG_SLAB option is also renamed to CONFIG_SLAB_DEPRECATED so it's clear now to users that it's the end of the road.

SLUB is short for the "unqueued slab allocator" and has been the default Linux kernel memory allocator since the late Linux 2.6 days.
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