Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3272987rwl; Sun, 2 Apr 2023 04:21:15 -0700 (PDT) X-Google-Smtp-Source: AKy350bl8R4Ot/kIsOrdJcF4r72QRVe+BfyDBPlQyqVPKluBvTzdF3OQof/XWVhbXWBrhAJHdz8U X-Received: by 2002:a17:906:cf89:b0:87b:d3f3:dcf3 with SMTP id um9-20020a170906cf8900b0087bd3f3dcf3mr32779862ejb.35.1680434475145; Sun, 02 Apr 2023 04:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680434475; cv=none; d=google.com; s=arc-20160816; b=l+D3/FBYYuIy+jeVtcBHghZw2YlfJyE21n8OPrVbXlbSqzk1am9x1xmJlEZT4FlAe0 n1gGigcz5d0MprH/6A6RNDL9MMDrxe78vj3Tn45Nlp6IRxYVYuYbkFd2chdT9xja10sF OXN90ko3LiTr2z0oK747vCp1+JaT4bh//Vd+Z1nC7XkWXy/CXswIzHTJhldrErdIiecd WH0uQnsJ8w7GdwowquQWNCMXF/fHlLUK9MQEoDabZpJlEUBup8IGXE10SQJkFAR4tmbC 0PnoJBykgouus27NWO4b/+cM6yCO+QbCD+QP/5xxTntqboHLW07fLhgmFaRJqE2bEzwZ k9rQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ejIxfkJdvGi4VhuEM+uIPq/ME4Gwyhn3SUJxOyVKLaA=; b=0v79lEjTxad61HrOnHB2NnWbxQRJfEemDaL3HTbbSxapujG18iarzyMzpP+cXtHJ1j grr0RFFeXLNC29E1VNNTBlQDOfgHiifcUHPwBRfomuMDbYnjby4CEYnGjdJVjBdFpeD6 5lPogT1n7u5pDCE80Y4Zey492DEANlfw+pruRbwNq1TcFKuCRzx8J8j9XUY4hfZuvYnX kh2QQ43+B4sGaYaRbP4qXckW67gFMxV78akI94xT/jiYtxZ1j+hbrKw7uaniRk6yqcJL 4AgI5t1Y9o2lhmXrT/Be0+Bu6s1zfsIDIS9OaJeyTcpo8I9OFaugiha4EpnguW0H6zeK VXDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jvoSyuRl; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xi4-20020a170906dac400b00947c011d745si6323957ejb.1035.2023.04.02.04.20.46; Sun, 02 Apr 2023 04:21:15 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=jvoSyuRl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbjDBLE1 (ORCPT + 99 others); Sun, 2 Apr 2023 07:04:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjDBLE0 (ORCPT ); Sun, 2 Apr 2023 07:04:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B871B367 for ; Sun, 2 Apr 2023 04:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=ejIxfkJdvGi4VhuEM+uIPq/ME4Gwyhn3SUJxOyVKLaA=; b=jvoSyuRl6lHbAAAK+auNjlOwCA DRVle1xLadbl+WdFHAhI4Sq/CeDhKGMUHxFeHUHvjTzZImykgjTP1/mgFKSjBUVklaLoQ8DYrmerI Z23x4AVbIWmM8mSO6xI7ngse8vvtwxYOici2o6elhSdP5+kIJSl1wetqhNjn14HYyC3Kh/Ngjogs1 EOHjN4Z+wsx0p6Eg6GUjCuMxGGPPdca8RZqQW/55aNmnhL4wzsiLDYlGy9QTi/7bxsc32tLIP0Oud 0q0ai9+N7lyX54wZgJAVtFPRSyQUPXVaoBFMWDa0zMENu5PjsnEEbBrNurpFlPJhDdZHHIVBXf9jh PmLlRN6A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pivVK-00DDBb-El; Sun, 02 Apr 2023 11:04:10 +0000 Date: Sun, 2 Apr 2023 12:04:10 +0100 From: Matthew Wilcox To: =?utf-8?B?6YOt6L6J?= Cc: Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH] mm: remove all the slab allocators Message-ID: References: <20230401094658.11146-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Sun, Apr 02, 2023 at 05:09:14PM +0800, 郭辉 wrote: > On 4/1/23 5:46 PM, Vlastimil Babka wrote: > > As the SLOB removal is on track and the SLAB removal is planned, I have > > realized - why should we stop there and not remove also SLUB? What's a > > slab allocator good for in 2023? The RAM sizes are getting larger and > > the modules cheaper [1]. The object constructor trick was perhaps > > interesting in 1994, but not with contemporary CPUs. So all the slab > > allocator does today is just adding an unnecessary layer of complexity > > over the page allocator. > > The slab allocator is very core and very important to the Linux kernel. > After the patch is merged into the mainline, it will have a very profound > impact on the development of the Linux kernel. https://en.wikipedia.org/wiki/April_Fools%27_Day