Skip to content

Introduce CONFIG_SLUB_TINY and deprecate SLOB

Vlastimil Babka linux-arm-kernel linux-mm linux-omap linux-patches linux-riscv linux-sh lkml openrisc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 47 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12mm, slab: ignore hardened usercopy parameters when disabledmm/slab_common.c+5 -15 replies
2/12mm, slub: add CONFIG_SLUB_TINYmm/Kconfig mm/Kconfig.debug+18 -53 replies
3/12mm, slub: disable SYSFS support with CONFIG_SLUB_TINYinclude/linux/slub_def.h mm/slub.c+7 -72 replies
4/12mm, slub: retain no free slabs on partial list with CONFIG_SLUB_TINYmm/slub.c+5 -02 replies
5/12mm, slub: lower the default slub_max_order with CONFIG_SLUB_TINYmm/slub.c+2 -12 replies
6/12mm, slub: don't create kmalloc-rcl caches with CONFIG_SLUB_TINYinclude/linux/slab.h mm/slab_common.c+12 -26 replies
7/12mm, slab: ignore SLAB_RECLAIM_ACCOUNT with CONFIG_SLUB_TINYinclude/linux/slab.h+4 -04 replies
8/12mm, slub: refactor free debug processingmm/slub.c+83 -711 reply
9/12mm, slub: split out allocations from pre/post hooksmm/slub.c+77 -503 replies
10/12mm, slub: remove percpu slabs with CONFIG_SLUB_TINYinclude/linux/slub_def.h mm/slub.c+103 -36 replies
11/12mm, slub: don't aggressively inline with CONFIG_SLUB_TINYmm/slub.c+10 -41 reply
12/12mm, slob: rename CONFIG_SLOB to CONFIG_SLOB_DEPRECATEDarch/arm/configs/clps711x_defconfig arch/arm/configs/collie_defconfig arch/arm/configs/multi_v4t_defconfig +16 more+52 -218 replies

Reviews trailers per patch

10 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAaro KoskinenDamien Le MoalArnd BergmannRoman GushchinHyeonggon YooMike RapoportPalmer Dabbelt
SeriesA-b
1/12R-b
2/12A-b A-b
3/12
4/12A-b R-b
5/12A-b R-b
6/12R-b
7/12
8/12R-b
9/12R-b
10/12R-b
11/12A-b
12/12A-b R-b T-b A-b A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread

Cover letter [PATCH 00/12] Introduce CONFIG_SLUB_TINY and deprecate SLOB

Hi,

this continues the discussion from [1]. Reasons to remove SLOB are outlined there and no-one has objected so far. The last patch of this series therefore deprecates CONFIG_SLOB and updates all the defconfigs using CONFIG_SLOB=y in the tree.

There is a k210 board with 8MB RAM where switching to SLUB caused issues
[2] and the lkp bot wasn't also happy about code bloat [3]. To address both, this series introduces CONFIG_SLUB_TINY to perform some rather low-hanging fruit modifications to SLUB to reduce its memory overhead. This seems to have been successful at least in the k210 case [4]. I consider this as an acceptable tradeoff for getting rid of SLOB.

The series is also available in git:
https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git/log/?h=slub-tiny-v1r2

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/Y25E9cJbhDAKi1vd@99bb1221be19/
[4] https://lore.kernel.org/all/[email protected]/

Vlastimil Babka (12):
mm, slab: ignore hardened usercopy parameters when disabled mm, slub: add CONFIG_SLUB_TINY
mm, slub: disable SYSFS support with CONFIG_SLUB_TINY
mm, slub: retain no free slabs on partial list with CONFIG_SLUB_TINY mm, slub: lower the default slub_max_order with CONFIG_SLUB_TINY mm, slub: don't create kmalloc-rcl caches with CONFIG_SLUB_TINY mm, slab: ignore SLAB_RECLAIM_ACCOUNT with CONFIG_SLUB_TINY mm, slub: refactor free debug processing
mm, slub: split out allocations from pre/post hooks
mm, slub: remove percpu slabs with CONFIG_SLUB_TINY
mm, slub: don't aggressively inline with CONFIG_SLUB_TINY mm, slob: rename CONFIG_SLOB to CONFIG_SLOB_DEPRECATED

 arch/arm/configs/clps711x_defconfig           |   3 +-
 arch/arm/configs/collie_defconfig             |   3 +-
 arch/arm/configs/multi_v4t_defconfig          |   3 +-
 arch/arm/configs/omap1_defconfig              |   3 +-
 arch/arm/configs/pxa_defconfig                |   3 +-
 arch/arm/configs/tct_hammer_defconfig         |   3 +-
 arch/arm/configs/xcep_defconfig               |   3 +-
 arch/openrisc/configs/or1ksim_defconfig       |   3 +-
 arch/openrisc/configs/simple_smp_defconfig    |   3 +-
 arch/riscv/configs/nommu_k210_defconfig       |   3 +-
 .../riscv/configs/nommu_k210_sdcard_defconfig |   3 +-
 arch/riscv/configs/nommu_virt_defconfig       |   3 +-
 arch/sh/configs/rsk7201_defconfig             |   3 +-
 arch/sh/configs/rsk7203_defconfig             |   3 +-
 arch/sh/configs/se7206_defconfig              |   3 +-
 arch/sh/configs/shmin_defconfig               |   3 +-
 arch/sh/configs/shx3_defconfig                |   3 +-
 include/linux/slab.h                          |   8 +
 include/linux/slub_def.h                      |   6 +-
 kernel/configs/tiny.config                    |   5 +-
 mm/Kconfig                                    |  38 +-
 mm/Kconfig.debug                              |   2 +-
 mm/slab_common.c                              |  16 +-
 mm/slub.c                                     | 415 ++++++++++++------
 24 files changed, 377 insertions(+), 164 deletions(-)
Signature · 1 line
2.38.1