From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B5D5C43217 for ; Tue, 8 Nov 2022 18:49:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbiKHStN (ORCPT ); Tue, 8 Nov 2022 13:49:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbiKHSsx (ORCPT ); Tue, 8 Nov 2022 13:48:53 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F233A63CCA for ; Tue, 8 Nov 2022 10:47:05 -0800 (PST) Date: Tue, 8 Nov 2022 10:46:58 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1667933223; 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=MrIQ3FtzqufFcsoDNlQ77HxkMw/494S1TkLC77QW0G4=; b=fIlmEvFdS12JQpFy/wqIzeTn0JvMWY8DPVJ249jAvutTMQSq62UxDK6N6RGKX3LS7gaF2S mQ7edI5visOvv6u3ebzbFspS8rHnNZoAxE4JJK+LvHeHF7mHROYFF9s11KEP7Jfptmv0Y0 +nX/m4lCkg7r9VOAM3ApEy6uioJrEJk= 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>, Matthew Wilcox , Linus Torvalds , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Catalin Marinas , Rustam Kovhaev , Andrew Morton Subject: Re: Deprecating and removing SLOB Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 08, 2022 at 04:55:29PM +0100, Vlastimil Babka wrote: > Hi, > > as we all know, we currently have three slab allocators. As we discussed at > LPC [1], it is my hope that one of these allocators has a future, and two of > them do not. > > The unsurprising reasons include code maintenance burden, other features > compatible with only a subset of allocators (or more effort spent on the > features), blocking API improvements (more on that below), and my inability > to pronounce SLAB and SLUB in a properly distinguishable way, without > resorting to spelling out the letters. > > I think (but may be proven wrong) that SLOB is the easier target of the two > to be removed, so I'd like to focus on it first. Great! SLOB is not supported by the kernel memory accounting code, so if we'll deprecate SLOB, we can remove all those annoying ifndefs. But I wonder if we can deprecate SLAB too? Or at least use the moment to ask every non-SLUB user on why they can't/don't want to use SLUB. Are there any known advantages of SLAB over SLUB? Also, for memory-constrained users we might want to add some guide on how to configure SLUB to minimize the memory footprint. Thank you! Roman