Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8261389rwb; Wed, 23 Nov 2022 18:39:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Yp3fcVS4GyrjVksCQLZTuHL2TbudAjoevcI0HyCcwKEpb+hJ3m6zWjRfqm0hdQG4TqIxF X-Received: by 2002:a17:902:e94e:b0:188:f3b9:7156 with SMTP id b14-20020a170902e94e00b00188f3b97156mr11671606pll.76.1669257586381; Wed, 23 Nov 2022 18:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669257586; cv=none; d=google.com; s=arc-20160816; b=DPxRflTk0fO+88g+biYo5nyMU5jIQGHk/EM81TjTbXV4GJn6iGj2MU0VG4iaJBef8j 6U6/hz10DQ7G0aGXvLrVk1WstvGLIkhwfsFhAvbKciavrT+/hsBgwlZm/NJ4Bq6h8hbT 0Bk/BVQLXAmAytkt6UhNeZ4k6u3RJq/3VgvkXghOfqR9A4+/KaljxSPN2w9y6pTff7Ib NFqpVyJWX24GVFXf4IxJqfZ42Th7YaXjdobRGHOs5Oo3Hb5XySJYI2EltNugtc8w7/FL B5GKbf05LFESLJgZCf2FYXWyWin+dkyQ/kaHfriRVFuBnjHbh+bXVh/ntZqiEjsSB/lU Yggg== 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:dkim-signature:date; bh=LCCb6cJQpNNyYRBbz4kRdgD2tyLQ9Ns2A7s10hH5kx0=; b=ixZLAorG/F1y/glalm+PoX4k77Qga3Ch7uKaXgbPCXhMPtThkzAmwTtHGdV4FDAvSJ t9N5KGg7NpO50yundDlmtP0T2O/pnFlzuqYnDN94H+o2DXswqFCn9F8/A+2ffVXSJy8n GKgnAPZYFQza2APFsti0boMI5/IK2XBT0zCSMLE4plvifleXW76+j3Z53xDvSv0LP459 FZVCiGwHSARBHlMN6PYvoNBJ7Empiy1IR/fRre452uvZ2lZn2S6lE3otItniYwLu2soL voyAJTiYJNH1J1ZoonxC2z+3bysyQ37Y9gvH8EKtbwnGMJWL5QuhEczxy7Ct1VuOu7al IMyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=WLIGoxoQ; 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=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq4-20020a17090b380400b00212fa424170si132076pjb.130.2022.11.23.18.39.35; Wed, 23 Nov 2022 18:39:46 -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=@linux.dev header.s=key1 header.b=WLIGoxoQ; 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=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiKXBWB (ORCPT + 88 others); Wed, 23 Nov 2022 20:22:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKXBV7 (ORCPT ); Wed, 23 Nov 2022 20:21:59 -0500 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A74B54EE; Wed, 23 Nov 2022 17:21:59 -0800 (PST) Date: Wed, 23 Nov 2022 17:21:42 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1669252917; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LCCb6cJQpNNyYRBbz4kRdgD2tyLQ9Ns2A7s10hH5kx0=; b=WLIGoxoQm3+/ru5YF2x6H+6yl4N5sAGKnAhwTr5uRYPr8dQqa/R3ysskmGjANDh6CBkZQy KJ0MBuI2R1IiCx1P42YUay6SolBrMpWVMI6fGEzq+7bsLesglGpb2m5siLqtS2z++OWNnR eN3d8mpNwNHZTr5snKaaNTKSv/nsBqw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Vlastimil Babka Cc: Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , Hyeonggon Yoo <42.hyeyoo@gmail.com>, 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-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 Acked-by: Roman Gushchin Thanks!