Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2657257rwl; Sat, 1 Apr 2023 11:45:19 -0700 (PDT) X-Google-Smtp-Source: AKy350apQdtJOkkG2pmG7bN9UUrIONErdu0avyyRjk1pgbiHAFEBrXBoHMfra99o8xuiqkdEmJ3y X-Received: by 2002:aa7:9567:0:b0:625:caa5:67ee with SMTP id x7-20020aa79567000000b00625caa567eemr27024057pfq.19.1680374719408; Sat, 01 Apr 2023 11:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680374719; cv=none; d=google.com; s=arc-20160816; b=OPXqBiTAKIq8VTt+W1rsUAOPOmc8mRz+7dTy0OgOmNUZy2SNNocOuynrL5B120gpZ2 W8JsL+tRTChAx/bAOm2iFs6enK4hZNJToimGqWRPHXNlTaLxRl1GLjudTHzPRdN2xHEw 9+jsXeVef0njzCILJWfr7V7QcmyL8q2d/tiTC5rGYUoEXsRsIcu+vUcJmsUW84/0WrzA MFFJklPGbyrV8267XmRbV7hJIPEzAia2dHrUadp8S8naZq5Djf52b4oIj+FBazwi9+7R YUyG2dln1m47x5z1wUyCnvNtzUib/t6Xj0AgWzBA2i7o7q4NoZiStmXYhVHC9kaA3TpT MGMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=jtBt5fUPJ4VEImH8JCx4gxqIK1DWrto3n6/SYiKIeCo=; b=MWsqJ21ESJ2meEvo3NHpfrOLFrLjyo3yByiz9/E+PywIsgTqMMcva61steH/DmSSSO 4OYA9TBr9zbqgfASc9p2OS4z40ZRK3Z3VlNj7hl1I9KMY6TmsHgeNkVF1shcTMKnVgrg MVnFDvcsMJqFvqyesiASw2x8kSagjWN6YUqIZpMxI8nlV7v7LQCId4Y8DihPYD8brDQg P/a3cyuu+T1luLN3XHy7m27kgm2On8/7JwPJNf76scA33fnyW+L16PP6/OuRTyTvBxc5 9TVNs+h/a2se1oMdNn8c/bhnCM66Nwyzn7gBcAG2lo6BTl4gmSkMQkLsiUvnVgZi/dAQ nAcQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u36-20020a634564000000b0051353d86539si5294433pgk.687.2023.04.01.11.45.08; Sat, 01 Apr 2023 11:45:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbjDASdh convert rfc822-to-8bit (ORCPT + 99 others); Sat, 1 Apr 2023 14:33:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjDASdf (ORCPT ); Sat, 1 Apr 2023 14:33:35 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4774A128 for ; Sat, 1 Apr 2023 11:33:34 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-310-9qR693MXNOmG_FSLux21XA-1; Sat, 01 Apr 2023 19:33:31 +0100 X-MC-Unique: 9qR693MXNOmG_FSLux21XA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 1 Apr 2023 19:33:28 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sat, 1 Apr 2023 19:33:28 +0100 From: David Laight To: 'Vlastimil Babka' , "linux-mm@kvack.org" CC: "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: RE: [PATCH] mm: remove all the slab allocators Thread-Topic: [PATCH] mm: remove all the slab allocators Thread-Index: AQHZZH7yC1nc5Yxd6ES5VUUdsjQvja8WxpGg Date: Sat, 1 Apr 2023 18:33:28 +0000 Message-ID: References: <20230401094658.11146-1-vbabka@suse.cz> In-Reply-To: <20230401094658.11146-1-vbabka@suse.cz> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.0 required=5.0 tests=PDS_BAD_THREAD_QP_64, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 From: Vlastimil Babka > Sent: 32 March 2023 10:47 > > 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. Why stop there? Remove kmalloc() completely. With cheap memory isn't unreasonable to go back to compile-time settable fixed size arrays for all items. Should make 'use after free' much easier to track down. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)