Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4033136rwl; Sun, 2 Apr 2023 21:25:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZajZvuHDK+hFefQpB4aiZceBQQ0oTHd7ZTKqT8SrhxJCNvFRfmfhN48n2koPaGF74gVEJU X-Received: by 2002:a17:907:a808:b0:93f:fbe:c389 with SMTP id vo8-20020a170907a80800b0093f0fbec389mr30808928ejc.13.1680495932679; Sun, 02 Apr 2023 21:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680495932; cv=none; d=google.com; s=arc-20160816; b=D+QtD7mzyGPBmmy/jIPIKYqX8iQ6uVdIGPKkMPRDhy0+NRAh/5GgRhl+UbdlsFs1ve dxhKaZTrWm/q7wQkPrAJk26JABnzvNQ4nhqN6bq1mwCAMFONr2P92GC+KSdnHaEJ3URj izc1YKQ7R7luN7XmluPAjzlnkgp/9/Ln5Dgs3209Dr3MWRDEJs+LbKdbFJzLHe18wNmW ILFwjQNexrrDLf57p6qZp0u8tqBg2cODBLs4XAK/AObmWgZeoPBKUdnBUzT6PrSjl9oM /SqyoafT6Gy6ssc6vfO3H4LvNwSwSPRg3DsgisJcjEsz6EkQcS9oDid8xGs/hEPr9Uc8 9j1Q== 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=JCaTQDH69Gr7URRj8QyibVsxSrgDVKe91Qxc5yJkGbU=; b=FOoGic4NXa4ASBQMpeCSPNW9bom964ydXwDi/6YBWuYrgzCitmqUNasgsjnVf/to/S t9B5NWp7tmHcNr/pfpbamhSL/31i6WxcEMq8k08IpU+UZHalFYycxolrm0/tu4/C8juC XyfQsErDGG+3mwEv9XR0hj0FvhSOmX0uiEXPR/cc6Iue3sArub96RSawEY68nFAaYmvK 8ZYxUwJy4wbeOvz4QeRjGko1OkSZ8hpJovRwelsKzlChK6vzdjboluSwtYtuX7Z2rjsk hQ3+pdqlZZh6cirOuZ/KgimEkVSQ1cE+8UzGy5fMZ1J2YkZiF4EDY9E8iKKYPC2q0PNF JuDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SjkWhVfE; 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 m19-20020a17090607d300b00927fac8f169si6394828ejc.442.2023.04.02.21.24.33; Sun, 02 Apr 2023 21:25:32 -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=SjkWhVfE; 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 S231319AbjDCENX (ORCPT + 99 others); Mon, 3 Apr 2023 00:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjDCENV (ORCPT ); Mon, 3 Apr 2023 00:13:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA99B658E for ; Sun, 2 Apr 2023 21:13:20 -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=JCaTQDH69Gr7URRj8QyibVsxSrgDVKe91Qxc5yJkGbU=; b=SjkWhVfETbkBwIiO3wuXoyAZcx hcJd/IM2FXNh9RH8xcEz1SCvIM76JjdQ8pxXeaaXa4gP7+8Oa9NA9uJHjMuV/k5Cd0HxapJhOTAsA aYMDeICvhSMEMLzKLFEjS3D5Ul/lMoYYBm+DzwT7C7D75cc3MjVgzFDpvMzHW83H/59XVWQRnO1eG nAmLZ8WYVmeTLZsF0cKznYrp+YmX3NyzShe9nF6OZeYBqcjD9BGOyVv3zyRUBBCF3ohdpBat44eku CC24y6hpszrJ3dpsj0kwDP03Gloh6jbb8ROX+oHYPlKh+DlPBPdcW4czkJpYQTPKkmZv1MK+aGzHX ziCVIu1Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pjBZ5-00DmSH-Ru; Mon, 03 Apr 2023 04:13:07 +0000 Date: Mon, 3 Apr 2023 05:13:07 +0100 From: Matthew Wilcox To: "Fabio M. De Francesco" Cc: =?utf-8?B?6YOt6L6J?= , Vlastimil Babka , Linux-MM , LKML , 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 Mon, Apr 03, 2023 at 05:51:42AM +0200, Fabio M. De Francesco wrote: > On Sun, 2 Apr 2023, 13:04 Matthew Wilcox, wrote: > > > 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 > > > Wow! > > The most interesting implication of this "patch" is that you noticed that > some people may actually need the link above to be able to distinguish > between foolishness and reality... As the article says, this is a Western tradition, and we shouldn't assume that somebody from (I assume) China would be familiar with this particular foolishness ;-)