Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8407143rwb; Tue, 13 Dec 2022 06:06:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7az+OQZVKr6JBJnF0jjy7mz1VPRfNerFqTbq7QhIPzi4/IZkwcLY97R4Kq/MvcBMGrECMa X-Received: by 2002:a17:90a:4a08:b0:218:d7ee:d4ba with SMTP id e8-20020a17090a4a0800b00218d7eed4bamr20550177pjh.3.1670940401644; Tue, 13 Dec 2022 06:06:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670940401; cv=none; d=google.com; s=arc-20160816; b=WRhcAcnJfMUptRltkK1knTocI3PwnfPvw0eWESpfX2Ztd0h/9D9babpbQsjMyNnY+5 aNGfMR0nBvz703U++/Lx7t38RIlqnlvNa3obTu7tC3FcaR8b1k796rS02E7Sjmq9ymZL PU0jN+qbdJ2elj59zHo4Icmh2toXFsWUMkWxIV2Ja4XwBNwmPejGo6Fin0Oohxcm19gk YPGdfapnMaA7V6FPDAHnDJQsonW2qBAk4+c/Dzm4aqUlnYQD9XEG/UuJbG3amRBAUi24 d2OwMcRR9e6xIuXt+bM063/POc2c1r/3DQzbadEbipFwwNhi03muEzFNT351rReaLLRD jnUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8bKi55q2x/j7htNUB1ASa122I9SyPa/BbXRS0RRZVE8=; b=Ln/pPfnWEzz77ZzYFFfODkR4Jk2Y3h7AH0SoCkNL6XImD0/ZRpUR2DjqzJ3qX6EN0a 903D4B8vhr9ePzVRoV9sSd8JXERL4dcHTit3ec4q+9W2jQwZnY1pjjF+PlZ3FrO0pljB Ye/3SDUWktfDxvKCSsJUmuuu8lRfBKOmh1bermKeS923wZFoWdDYUEE61H8jG0Ht/cMk 02sQr/ghv5GxbPlPurZEta/fZGLbj/u3r3/D0mt4QaKxRJzn3lHfs7daOo6NW2BqDU5Q a3jnTuVducPkki+wjnfw2kdlov/02f67XEkEneG90nwEHGI9OELQnTnxGWSInHk8ac5O N+Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="lO4ziCN/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi8-20020a17090b4b4800b00205f1a25a31si13741920pjb.161.2022.12.13.06.06.31; Tue, 13 Dec 2022 06:06:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="lO4ziCN/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235422AbiLMNlT (ORCPT + 73 others); Tue, 13 Dec 2022 08:41:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234969AbiLMNlR (ORCPT ); Tue, 13 Dec 2022 08:41:17 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F30B8B41; Tue, 13 Dec 2022 05:41:15 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id m4so15657956pls.4; Tue, 13 Dec 2022 05:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8bKi55q2x/j7htNUB1ASa122I9SyPa/BbXRS0RRZVE8=; b=lO4ziCN/NWAT6Qy/Rk9/fRa2Y6PYUK12H1JDfhFjdW7rE9S+ReVEIxsrkViJYmGAW0 LUOrqm4/NQU0UIPP/0UjMQ9MycnxlPeM4JPJp8f5lNTJE1fKXfaJfPNtwSgSn6u7HFuk dBIN58ZAlrdrw+rGWXO1F/y1k3D/vZBi2jEmB23D4ic3SUWHTy750VXcq2zc8dw5duj8 fcidOAQqBd5n3YS6Yy/Kl3R7+8O3xi76gQpcRBUOiwwUXFF/brNSoNExJa4ZbLyPNR9K k5HxTRjJJfoKycAs7vswTGir0oKZQ/m5TSWgMU959wN9wGBiMO9GeFJwFKIH7jXlCgz6 mlsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8bKi55q2x/j7htNUB1ASa122I9SyPa/BbXRS0RRZVE8=; b=mqGE6fgyGURzUdiSHFpLIAKuu4VQXJs1yNjq5T+xUI5F8DLH2C8eHP3im6KX6oM7bW ZVh7TM7TMh+G5FXshkm3NVGe2hmdW0SZEskMNNPKPBIjDPoNVdxyQpd8TsqBriGKxvp3 SUhn0QQpzm/ekknt30g5U9Sbn/SPd0QlIE7KHX/37RfDW5/YSgSoIlLYFae6GzS8icpF xqyvgfjCtNJcrj1Q8ejHxItztuDM/VsEYcmGd/Kc7z4GrR60sS6uCCLroW8YJzya9jXQ OxohujnieV7NQwyGN4QMDsjs+qJWFA0/aEA+jbT5XqKt4/Dh2aS/MD1chUzNpxbYqEyQ Xlmw== X-Gm-Message-State: ANoB5pnN4I2GgnXgjwKnww0UYkGCfJUsbZ9jlAHp+12B7zIB4T6XXp9i z1W1P7AzXgfADiLJxuQi784= X-Received: by 2002:a17:902:e94c:b0:188:bd82:2b7c with SMTP id b12-20020a170902e94c00b00188bd822b7cmr22251688pll.5.1670938875341; Tue, 13 Dec 2022 05:41:15 -0800 (PST) Received: from hyeyoo ([114.29.91.56]) by smtp.gmail.com with ESMTPSA id ik28-20020a170902ab1c00b0017d97d13b18sm8479096plb.65.2022.12.13.05.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 05:41:14 -0800 (PST) Date: Tue, 13 Dec 2022 22:41:05 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Vlastimil Babka Cc: Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , Roman Gushchin , Andrew Morton , Linus Torvalds , Matthew Wilcox , patches@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Russell King , Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Yoshinori Sato , Rich Felker , Arnd Bergmann , Josh Triplett , Conor Dooley , Damien Le Moal , Christophe Leroy , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, openrisc@lists.librecores.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org Subject: Re: [PATCH 12/12] mm, slob: rename CONFIG_SLOB to CONFIG_SLOB_DEPRECATED Message-ID: References: <20221121171202.22080-1-vbabka@suse.cz> <20221121171202.22080-13-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221121171202.22080-13-vbabka@suse.cz> X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 21, 2022 at 06:12:02PM +0100, Vlastimil Babka wrote: > As explained in [1], we would like to remove SLOB if possible. > > - There are no known users that need its somewhat lower memory footprint > so much that they cannot handle SLUB (after some modifications by the > previous patches) instead. > > - It is an extra maintenance burden, and a number of features are > incompatible with it. > > - It blocks the API improvement of allowing kfree() on objects allocated > via kmem_cache_alloc(). > > As the first step, rename the CONFIG_SLOB option in the slab allocator > configuration choice to CONFIG_SLOB_DEPRECATED. Add CONFIG_SLOB > depending on CONFIG_SLOB_DEPRECATED as an internal option to avoid code > churn. This will cause existing .config files and defconfigs with > CONFIG_SLOB=y to silently switch to the default (and recommended > replacement) SLUB, while still allowing SLOB to be configured by anyone > that notices and needs it. But those should contact the slab maintainers > and linux-mm@kvack.org as explained in the updated help. With no valid > objections, the plan is to update the existing defconfigs to SLUB and > remove SLOB in a few cycles. > > To make SLUB more suitable replacement for SLOB, a CONFIG_SLUB_TINY > option was introduced to limit SLUB's memory overhead. > There is a number of defconfigs specifying CONFIG_SLOB=y. As part of > this patch, update them to select CONFIG_SLUB and CONFIG_SLUB_TINY. > > [1] https://lore.kernel.org/all/b35c3f82-f67b-2103-7d82-7a7ba7521439@suse.cz/ > > Cc: Russell King > Cc: Aaro Koskinen > Cc: Janusz Krzysztofik > Cc: Tony Lindgren > Cc: Jonas Bonn > Cc: Stefan Kristiansson > Cc: Stafford Horne > Cc: Yoshinori Sato > Cc: Rich Felker > Cc: Arnd Bergmann > Cc: Josh Triplett > Cc: Conor Dooley > Cc: Damien Le Moal > Cc: Christophe Leroy > Cc: Geert Uytterhoeven > Cc: > Cc: > Cc: > Cc: > Cc: > Signed-off-by: Vlastimil Babka > --- > 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 ++- > arch/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 ++- > kernel/configs/tiny.config | 5 +++-- > mm/Kconfig | 17 +++++++++++++++-- > 19 files changed, 52 insertions(+), 21 deletions(-) > > diff --git a/arch/arm/configs/clps711x_defconfig b/arch/arm/configs/clps711x_defconfig > index 92481b2a88fa..adcee238822a 100644 > --- a/arch/arm/configs/clps711x_defconfig > +++ b/arch/arm/configs/clps711x_defconfig > @@ -14,7 +14,8 @@ CONFIG_ARCH_EDB7211=y > CONFIG_ARCH_P720T=y > CONFIG_AEABI=y > # CONFIG_COREDUMP is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_NET=y > CONFIG_PACKET=y > CONFIG_UNIX=y > diff --git a/arch/arm/configs/collie_defconfig b/arch/arm/configs/collie_defconfig > index 2a2d2cb3ce2e..69341c33e0cc 100644 > --- a/arch/arm/configs/collie_defconfig > +++ b/arch/arm/configs/collie_defconfig > @@ -13,7 +13,8 @@ CONFIG_CMDLINE="noinitrd root=/dev/mtdblock2 rootfstype=jffs2 fbcon=rotate:1" > CONFIG_FPE_NWFPE=y > CONFIG_PM=y > # CONFIG_SWAP is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_NET=y > CONFIG_PACKET=y > CONFIG_UNIX=y > diff --git a/arch/arm/configs/multi_v4t_defconfig b/arch/arm/configs/multi_v4t_defconfig > index e2fd822f741a..b60000a89aff 100644 > --- a/arch/arm/configs/multi_v4t_defconfig > +++ b/arch/arm/configs/multi_v4t_defconfig > @@ -25,7 +25,8 @@ CONFIG_ARM_CLPS711X_CPUIDLE=y > CONFIG_JUMP_LABEL=y > CONFIG_PARTITION_ADVANCED=y > # CONFIG_COREDUMP is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_MTD=y > CONFIG_MTD_CMDLINE_PARTS=y > CONFIG_MTD_BLOCK=y > diff --git a/arch/arm/configs/omap1_defconfig b/arch/arm/configs/omap1_defconfig > index 70511fe4b3ec..246f1bba7df5 100644 > --- a/arch/arm/configs/omap1_defconfig > +++ b/arch/arm/configs/omap1_defconfig > @@ -42,7 +42,8 @@ CONFIG_MODULE_FORCE_UNLOAD=y > CONFIG_PARTITION_ADVANCED=y > CONFIG_BINFMT_MISC=y > # CONFIG_SWAP is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > # CONFIG_VM_EVENT_COUNTERS is not set > CONFIG_NET=y > CONFIG_PACKET=y > diff --git a/arch/arm/configs/pxa_defconfig b/arch/arm/configs/pxa_defconfig > index d60cc9cc4c21..0a0f12df40b5 100644 > --- a/arch/arm/configs/pxa_defconfig > +++ b/arch/arm/configs/pxa_defconfig > @@ -49,7 +49,8 @@ CONFIG_PARTITION_ADVANCED=y > CONFIG_LDM_PARTITION=y > CONFIG_CMDLINE_PARTITION=y > CONFIG_BINFMT_MISC=y > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > # CONFIG_COMPACTION is not set > CONFIG_NET=y > CONFIG_PACKET=y > diff --git a/arch/arm/configs/tct_hammer_defconfig b/arch/arm/configs/tct_hammer_defconfig > index 3b29ae1fb750..6bd38b6f22c4 100644 > --- a/arch/arm/configs/tct_hammer_defconfig > +++ b/arch/arm/configs/tct_hammer_defconfig > @@ -19,7 +19,8 @@ CONFIG_FPE_NWFPE=y > CONFIG_MODULES=y > CONFIG_MODULE_UNLOAD=y > # CONFIG_SWAP is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_NET=y > CONFIG_PACKET=y > CONFIG_UNIX=y > diff --git a/arch/arm/configs/xcep_defconfig b/arch/arm/configs/xcep_defconfig > index ea59e4b6bfc5..6bd9f71b71fc 100644 > --- a/arch/arm/configs/xcep_defconfig > +++ b/arch/arm/configs/xcep_defconfig > @@ -26,7 +26,8 @@ CONFIG_MODULE_UNLOAD=y > CONFIG_MODVERSIONS=y > CONFIG_MODULE_SRCVERSION_ALL=y > # CONFIG_BLOCK is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > # CONFIG_COMPAT_BRK is not set > # CONFIG_VM_EVENT_COUNTERS is not set > CONFIG_NET=y > diff --git a/arch/openrisc/configs/or1ksim_defconfig b/arch/openrisc/configs/or1ksim_defconfig > index 6e1e004047c7..0116e465238f 100644 > --- a/arch/openrisc/configs/or1ksim_defconfig > +++ b/arch/openrisc/configs/or1ksim_defconfig > @@ -10,7 +10,8 @@ CONFIG_EXPERT=y > # CONFIG_AIO is not set > # CONFIG_VM_EVENT_COUNTERS is not set > # CONFIG_COMPAT_BRK is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_MODULES=y > # CONFIG_BLOCK is not set > CONFIG_OPENRISC_BUILTIN_DTB="or1ksim" > diff --git a/arch/openrisc/configs/simple_smp_defconfig b/arch/openrisc/configs/simple_smp_defconfig > index ff49d868e040..b990cb6c9309 100644 > --- a/arch/openrisc/configs/simple_smp_defconfig > +++ b/arch/openrisc/configs/simple_smp_defconfig > @@ -16,7 +16,8 @@ CONFIG_EXPERT=y > # CONFIG_AIO is not set > # CONFIG_VM_EVENT_COUNTERS is not set > # CONFIG_COMPAT_BRK is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_MODULES=y > # CONFIG_BLOCK is not set > CONFIG_OPENRISC_BUILTIN_DTB="simple_smp" > diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig > index 96fe8def644c..79b3ccd58ff0 100644 > --- a/arch/riscv/configs/nommu_k210_defconfig > +++ b/arch/riscv/configs/nommu_k210_defconfig > @@ -25,7 +25,8 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y > CONFIG_EMBEDDED=y > # CONFIG_VM_EVENT_COUNTERS is not set > # CONFIG_COMPAT_BRK is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > # CONFIG_MMU is not set > CONFIG_SOC_CANAAN=y > CONFIG_NONPORTABLE=y > diff --git a/arch/riscv/configs/nommu_k210_sdcard_defconfig b/arch/riscv/configs/nommu_k210_sdcard_defconfig > index 379740654373..6b80bb13b8ed 100644 > --- a/arch/riscv/configs/nommu_k210_sdcard_defconfig > +++ b/arch/riscv/configs/nommu_k210_sdcard_defconfig > @@ -17,7 +17,8 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y > CONFIG_EMBEDDED=y > # CONFIG_VM_EVENT_COUNTERS is not set > # CONFIG_COMPAT_BRK is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > # CONFIG_MMU is not set > CONFIG_SOC_CANAAN=y > CONFIG_NONPORTABLE=y > diff --git a/arch/riscv/configs/nommu_virt_defconfig b/arch/riscv/configs/nommu_virt_defconfig > index 1a56eda5ce46..4cf0f297091e 100644 > --- a/arch/riscv/configs/nommu_virt_defconfig > +++ b/arch/riscv/configs/nommu_virt_defconfig > @@ -22,7 +22,8 @@ CONFIG_EXPERT=y > # CONFIG_KALLSYMS is not set > # CONFIG_VM_EVENT_COUNTERS is not set > # CONFIG_COMPAT_BRK is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > # CONFIG_MMU is not set > CONFIG_SOC_VIRT=y > CONFIG_NONPORTABLE=y > diff --git a/arch/sh/configs/rsk7201_defconfig b/arch/sh/configs/rsk7201_defconfig > index 619c18699459..376e95fa77bc 100644 > --- a/arch/sh/configs/rsk7201_defconfig > +++ b/arch/sh/configs/rsk7201_defconfig > @@ -10,7 +10,8 @@ CONFIG_USER_NS=y > CONFIG_PID_NS=y > CONFIG_BLK_DEV_INITRD=y > # CONFIG_AIO is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_PROFILING=y > CONFIG_MODULES=y > # CONFIG_BLK_DEV_BSG is not set > diff --git a/arch/sh/configs/rsk7203_defconfig b/arch/sh/configs/rsk7203_defconfig > index d00fafc021e1..1d5fd67a3949 100644 > --- a/arch/sh/configs/rsk7203_defconfig > +++ b/arch/sh/configs/rsk7203_defconfig > @@ -11,7 +11,8 @@ CONFIG_USER_NS=y > CONFIG_PID_NS=y > CONFIG_BLK_DEV_INITRD=y > CONFIG_KALLSYMS_ALL=y > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_PROFILING=y > CONFIG_MODULES=y > # CONFIG_BLK_DEV_BSG is not set > diff --git a/arch/sh/configs/se7206_defconfig b/arch/sh/configs/se7206_defconfig > index 122216123e63..78e0e7be57ee 100644 > --- a/arch/sh/configs/se7206_defconfig > +++ b/arch/sh/configs/se7206_defconfig > @@ -21,7 +21,8 @@ CONFIG_BLK_DEV_INITRD=y > CONFIG_KALLSYMS_ALL=y > # CONFIG_ELF_CORE is not set > # CONFIG_COMPAT_BRK is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_PROFILING=y > CONFIG_MODULES=y > CONFIG_MODULE_UNLOAD=y > diff --git a/arch/sh/configs/shmin_defconfig b/arch/sh/configs/shmin_defconfig > index c0b6f40d01cc..e078b193a78a 100644 > --- a/arch/sh/configs/shmin_defconfig > +++ b/arch/sh/configs/shmin_defconfig > @@ -9,7 +9,8 @@ CONFIG_LOG_BUF_SHIFT=14 > # CONFIG_FUTEX is not set > # CONFIG_EPOLL is not set > # CONFIG_SHMEM is not set > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > # CONFIG_BLK_DEV_BSG is not set > CONFIG_CPU_SUBTYPE_SH7706=y > CONFIG_MEMORY_START=0x0c000000 > diff --git a/arch/sh/configs/shx3_defconfig b/arch/sh/configs/shx3_defconfig > index 32ec6eb1eabc..aa353dff7f19 100644 > --- a/arch/sh/configs/shx3_defconfig > +++ b/arch/sh/configs/shx3_defconfig > @@ -20,7 +20,8 @@ CONFIG_USER_NS=y > CONFIG_PID_NS=y > # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set > CONFIG_KALLSYMS_ALL=y > -CONFIG_SLOB=y > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > CONFIG_PROFILING=y > CONFIG_KPROBES=y > CONFIG_MODULES=y > diff --git a/kernel/configs/tiny.config b/kernel/configs/tiny.config > index 8a44b93da0f3..c2f9c912df1c 100644 > --- a/kernel/configs/tiny.config > +++ b/kernel/configs/tiny.config > @@ -7,5 +7,6 @@ CONFIG_KERNEL_XZ=y > # CONFIG_KERNEL_LZO is not set > # CONFIG_KERNEL_LZ4 is not set > # CONFIG_SLAB is not set > -# CONFIG_SLUB is not set > -CONFIG_SLOB=y > +# CONFIG_SLOB_DEPRECATED is not set > +CONFIG_SLUB=y > +CONFIG_SLUB_TINY=y > diff --git a/mm/Kconfig b/mm/Kconfig > index 5941cb34e30d..dcc49c69552f 100644 > --- a/mm/Kconfig > +++ b/mm/Kconfig > @@ -219,17 +219,30 @@ config SLUB > and has enhanced diagnostics. SLUB is the default choice for > a slab allocator. > > -config SLOB > +config SLOB_DEPRECATED > depends on EXPERT > - bool "SLOB (Simple Allocator)" > + bool "SLOB (Simple Allocator - DEPRECATED)" > depends on !PREEMPT_RT > help > + Deprecated and scheduled for removal in a few cycles. SLUB > + recommended as replacement. CONFIG_SLUB_TINY can be considered > + on systems with 16MB or less RAM. > + > + If you need SLOB to stay, please contact linux-mm@kvack.org and > + people listed in the SLAB ALLOCATOR section of MAINTAINERS file, > + with your use case. > + > SLOB replaces the stock allocator with a drastically simpler > allocator. SLOB is generally more space efficient but > does not perform as well on large systems. > > endchoice > > +config SLOB > + bool > + default y > + depends on SLOB_DEPRECATED > + > config SLUB_TINY > bool "Configure SLUB for minimal memory footprint" > depends on SLUB && EXPERT > -- > 2.38.1 FTR, Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> -- Thanks, Hyeonggon