Linux 7.5 will introduce a new boot parameter, slab_tiny, designed for computers with very limited amounts of RAM. The change is expected in the kernel development cycle following the current one, and it makes controllable at boot time a behavior that until now had to be decided when the system was compiled.

Psst!Add AlexTech.ai asPreferred Source on Google

The starting point is the CONFIG_SLUB_TINY option, which configures the kernel's memory allocator to minimize its footprint, sacrificing scalability, debugging features and other capabilities. Anyone who wanted this behavior had to rebuild the kernel. A few months ago an alternative had been proposed, a slub_tiny option passed at boot, and that work is now expected to be resubmitted under the new name slab_tiny for version 7.5.

official image of Linux 7.5

Image: pngmart.com — https://www.pngmart.com/image/354488

The reasoning behind the change is tied to the allocator's recent history. Since kernel 6.4, only SLUB, the unqueued slab allocator, remains, and it carries overhead that makes it unsuitable for systems with around 16 MB of RAM. Those cases were once covered by SLOB, a lighter allocator that was deprecated from kernel 6.2 because it had no known users left and cost maintenance. To ease the transition, the kernel introduced SLUB_TINY as a replacement in configurations that previously used SLOB, such as systems with just megabytes of memory.

What is new, then, is not the ability to run on little RAM, which already existed, but how it is activated. Vlastimil Babka of SUSE explained the motivation for making it a boot-time option. With such a parameter, a single kernel image can serve different hardware, and the choice is made case by case without maintaining separate builds. For those running small embedded devices or older mini PCs with little memory, this means trying the minimal mode without recompiling.

official image of Linux 7.5

Image: pngmart.com — https://www.pngmart.com/image/354456

The option is still at the proposal stage and depends on the patch being accepted in the Linux 7.5 development cycle. Current behavior remains that of CONFIG_SLUB_TINY until the new version is released.