Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4038775rwb; Tue, 8 Nov 2022 11:13:32 -0800 (PST) X-Google-Smtp-Source: AMsMyM5KQ4+ReXYSvTJQFnAi760WtPuSwDm5VlExQKr2nTblgCdpfQsDOEkcIlahNLm59h5xiA1d X-Received: by 2002:a17:90b:33c7:b0:214:1ddc:c6bd with SMTP id lk7-20020a17090b33c700b002141ddcc6bdmr40243920pjb.151.1667934812380; Tue, 08 Nov 2022 11:13:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667934812; cv=none; d=google.com; s=arc-20160816; b=eAoGxb88o9FWSl0vSlr2x5JysceA+KbVoJz5IG7Kmdg4st6dQIqzG1D5TpO65KEbqS +HrEg9Xzpm7WOX+hHJKgX6F7uh6V4uU9Zr41BUawHg8drEiHgkV8un1YE6sSTkzPeCCg yn6834S/VOMR5pcFOnWKfR9pn2C/tyz7R5HfagztQfVcimT8U73d/vkLYDtiJAPfbZ9C vwIRXxZfZMzbllbkNND5QzxLB9emJvm6QmduTpUgmsLRJs2IPygjUDEtFtaguYMuxs/T 2Uo7eY0E4zV4Nc6Rv68C7twfat1TU6AtMuNIMKu+ya/VddzpdRd0bAjsWciPT8pxd98J /Igw== 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=MrIQ3FtzqufFcsoDNlQ77HxkMw/494S1TkLC77QW0G4=; b=02H+02tAc0TTQsTIhe78br3rwgduUlRmnWiucbvaOhd6C6lPUBGRPmlvWyyYBNGmhJ WakIZVQrIjK09B5onmPpLFTxIURw3E/+uFjgbLXhvOCHH0IQrWtuDcW4QsgRkG5G1KwL 2YrrTGMdQQFmcAGEr1nuF56rdcDcvMuo8Qxpgjic26KX3sTaTpq7kpNt7i7bEw+Ohq6D 78cWHBN9SvVpSREwTUmkZMqzlIYhO9ZvL1Lgegzy40KigmP8jLPAq390e5aHXE4xuqvY GJzhHfcl3ZX+rSCXoh/NTnvvJAmnKIcFBvjwNgjNJzIzytgMan/LOb8U6Xphc8CPhD9m s5QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=fIlmEvFd; 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 m8-20020a170902768800b00186a5b86ea3si13725899pll.50.2022.11.08.11.13.20; Tue, 08 Nov 2022 11:13:32 -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=fIlmEvFd; 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 S229720AbiKHStL (ORCPT + 91 others); Tue, 8 Nov 2022 13:49:11 -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 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 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