Linux's SLAB Allocator Next On Deck For Deprecation & Removal

Written by Michael Larabel in Linux Kernel on 11 May 2023 at 05:10 PM EDT. 4 Comments
LINUX KERNEL
With the in-development Linux 6.4 kernel the SLOB allocator is removed while next the plan is for the deprecation and eventual removal of the SLAB allocator.

The SLOB allocator was deprecated at the end of last year and then removed two releases later given no objections or other reasons to keep it around. SLAB is now setup to go through the same process.

Linux SLAB overview
Linux SLAB allocator layout from the kernel.org documentation.


Linux developer Vlastimil Babka shared that following no objections to removing SLAB raised during the LSF/MM session this week, he's going to continue his "hobby" and announce the deprecation of SLAB next and then it will eventually be removed from the kernel source tree.

SLAB vs. SLUB


This shouldn't come as a big surprise as last year it was noted that SLAB's deprecation/removal would follow SLOB. Ultimately kernel developers want all users to focus on using the superior SLUB allocator for its efficient memory allocation and has been the default going back to the late Linux 2.6 days. There is also a "SLUB_TINY" option to help enhance SLUB for use on small embedded devices where SLOB previously had some traction.
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