mm, slub: retain no free slabs on partial list with CONFIG_SLUB_TINY
authorVlastimil Babka <vbabka@suse.cz>
Tue, 15 Nov 2022 09:50:28 +0000 (10:50 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Sun, 27 Nov 2022 22:38:31 +0000 (23:38 +0100)
commit5a8a3c1f73c6488d1a2c18ac1f5308b1fd2aa5f0
treeb090c16f31a4a0cbe405abc6634966265ac596f3
parentb1a413a39a1a7694acf3636a52c109821148ecdd
mm, slub: retain no free slabs on partial list with CONFIG_SLUB_TINY

SLUB will leave a number of slabs on the partial list even if they are
empty, to avoid some slab freeing and reallocation. The goal of
CONFIG_SLUB_TINY is to minimize memory overhead, so set the limits to 0
for immediate slab page freeing.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
mm/slub.c