Linux 7.5 to add slab_tiny boot option for systems with very limited RAM
The SLUB allocator's tiny mode moves from a compile-time Kconfig switch to a runtime boot parameter, letting one vmlinux serve both production and kdump kernels with different memory footprints.
Summary
The SLUB allocator's memory-saving "tiny" mode is being converted from the CONFIG_SLUB_TINY build option into a boot-time parameter, with the patch series merged into slab.git's for-next branch and expected to be submitted for the Linux 7.5 merge window at the end of December. Booting with slab_tiny=1 shrinks the allocator's memory footprint, but gives up SMP scalability in exchange. The change follows the earlier deprecation and removal of the SLOB allocator, which embedded Linux systems had long relied on for low-memory environments.
According to SUSE's Vlastimil Babka, the config option caused incompatibilities with other options in the past and Linus argued for removing it. The concrete driver is the kdump kernel, which shares the same vmlinux as the production kernel but wants to minimize memory overhead that must be pre-reserved from the running system, and does not mind reduced scalability. The Kconfig option is now deprecated and only sets the default value of the runtime variable, with its interactions with other config options removed.
How slab_tiny changes SLUB configuration
- Runtime switch replaces Kconfig: CONFIG_SLUB_TINY no longer selects allocator behavior at build time; a variable set by the boot parameter now controls it, and the config option only supplies the default value.
- Scalability trade-off: slab_tiny=1 minimizes the SLAB allocator's memory footprint at the expense of SMP scalability, so multi-core throughput is sacrificed for RAM savings.
- kdump use case: the kdump kernel shares the same vmlinux as the production kernel but needs to minimize memory overhead pre-reserved from production, making a boot-time decision preferable to a compile-time one.
- Config interaction cleanup: all interactions between the tiny option and other Kconfig options are removed, addressing incompatibilities that Babka says caused troubles in the past.
Why it matters
Embedded and low-RAM Linux deployments that previously needed a separate tiny-allocator kernel build can now use a single vmlinux and select the reduced-footprint behavior at boot. Distributions shipping kdump crash-dump kernels benefit most, since the reserved memory for the dump kernel can be trimmed without maintaining a second kernel configuration. The change also completes the transition away from the removed SLOB allocator by making SLUB's low-memory mode a runtime policy rather than a build variant.
Original reference: www.phoronix.com →