A few months back the "slub_tiny" boot option was proposed for systems with very limited amounts of RAM as an alternative to the existing CONFIG_SLUB_TINY Kconfig build option. That feature is now expected to be submitted for the upcoming Linux 7.5 kernel cycle. Following the SLOB allocator being deprecated and then removed that was popular with embedded Linux systems, the CONFIG_SLUB_TINY Kconfig option was introduced. Rather than making it a build-time option, that "tiny" behavior is now modified to be controlled at boot/run-time. Vlastimil Babka of SUSE explained the motivation for making it a boot time option in the patch series cover letter: "Being a config option brings issues such as incompatibility with other options that has caused troubles in the past and Linus argued for removing it. Moreover, there is a use case for having full-blown scalable implementation enabled and being able to disable it with a boot-time rather than compile-time decision. That use case is the kdump kernel which shares the same vmlinux but wants to minimize the memory overhead (which has to be pre-reserved from the production kernel) and does not mind reduced scalability. Thus this series reworks the CONFIG_SLUB_TINY to be controlled by a variable set by a boot-time parameter. The config option itself is deprecated and only sets the default value of the variable, and all its interactions with other config options are removed." Booting with the "slab_tiny=1" option will minimize the SLAB allocator's memory footprint but at the expense of SMP scalability. The slab_tiny option code is merged to slab.git's "for-next" branch and thus expected to be submitted for the Linux 7.5 merge window happening at the end of December.
Linux 7.5 To Introduce "slab_tiny" Boot Option For Systems With Extremely Limited RAM
Full Article
Original Source
Read the full article at Phoronix →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.