Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp733754rwb; Wed, 9 Nov 2022 08:04:08 -0800 (PST) X-Google-Smtp-Source: AMsMyM6Gk6bx9jpMcYTwopWki9aWKXAe4w3NnpdwPlMb/x5XxLAuVSv5UchqkwjexdOaSX4EXhPj X-Received: by 2002:a63:4420:0:b0:470:89:8e7c with SMTP id r32-20020a634420000000b0047000898e7cmr36741750pga.150.1668009848249; Wed, 09 Nov 2022 08:04:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668009848; cv=pass; d=google.com; s=arc-20160816; b=vGH2CxctjYzJ1ecaSSRAXu/gcfrVJwvYvNDmI3ZW5rhMtTx6noKORHG0xgSXxMMVjw 7rXtIqui5vLLkaaikmQT6spzDgsBMW1cqPu7f3zyGLeLDarhAQ72Vj12HcFFtkdOxP6s OOmeY7pvchp0RCHo5vWZ5YP21V9hHZG1bMGEa7yr95Zo9y/8qE6VnXmPvshgvqRID6II ZOJiRAupkmLjPTEmcbCcAnYtCU2ktvbKgMXd0sz4tFIKYhdrEFxcPmPQ+ut467cAsYC3 cVa71DUoOWLF1Mip861ACbFZRCJBWg68tjuGTg3IbyizlrdUrpHBAHwNk+XjXDpu8/2s fh9Q== ARC-Message-Signature: i=2; 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:date:dkim-signature; bh=BHna4eOsJNa6jYXmw+tDBqgbBaWjKPKSATnmoXtvD6E=; b=CQm6uv4TJtwv8DGP04Ecc0XBLnItLZvUS7Y/09Z3nsecSSgFo9MdbCr+0EF+4H7kG8 2oTVAB/VLjDCxS+kFKrm5Bdmyj/j3+Yj4PJAojhLlje/lsF/gWog1EsDv/J0ijZ0gcST WyxM3ocQryrs0NrVi4WNH68LkmUjaBC3nK+uER71ujnpLoNwrceScmH9aLy04Q3bWzEm F7+S+e4gWh7w2mNXCdZn2m0zeZO5AX/0XYWpDJqjueCAoPXT/42VXIZUVLSTNytNX5Bb ZPD6AwSCVWmIavLwpMan6jfS8B1N5wfq+wfZQTidpphvGt/ijxn1Q+VA490dEaIBbIqx BRGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=jVqp7WR1; arc=pass (i=1); 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 a15-20020a17090ad80f00b0020cedba54fcsi1457628pjv.55.2022.11.09.08.03.52; Wed, 09 Nov 2022 08:04:08 -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=@iki.fi header.s=meesny header.b=jVqp7WR1; arc=pass (i=1); 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 S229590AbiKIPuU (ORCPT + 93 others); Wed, 9 Nov 2022 10:50:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiKIPuS (ORCPT ); Wed, 9 Nov 2022 10:50:18 -0500 Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB34413F7E; Wed, 9 Nov 2022 07:50:17 -0800 (PST) Received: from darkstar.musicnaut.iki.fi (85-76-49-22-nat.elisa-mobile.fi [85.76.49.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: aaro.koskinen) by meesny.iki.fi (Postfix) with ESMTPSA id 5065B20092; Wed, 9 Nov 2022 17:50:10 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1668009012; 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=BHna4eOsJNa6jYXmw+tDBqgbBaWjKPKSATnmoXtvD6E=; b=jVqp7WR1xNj9cQVnjX26nQIa0sIJ7CIYmIKDCdmml8y0lg2hYRKNMhoCWhGvaG9xi20Q7Z vJCEKKIY2Ip2/zQw5wC3JuCMVFnqVCBlU2GjzIg3OvldqapenUvhOoRb4yvP6546HFOGHC R20IBBqDUumCQggds467xH3mhuzOB8k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1668009012; 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=BHna4eOsJNa6jYXmw+tDBqgbBaWjKPKSATnmoXtvD6E=; b=iHrt/OPqY6xXFjullaYr2tdte4CnFKRPP/Qv9sI1/eV6eyFCRudApCF0y9xE9HyjG9CrJ/ GXTjlex8eS4bD+EEoXcJDgSLHDg7OS1E9S1Aruo/b2DONAWedPhitDNQncR7xYDAL5BGok lacxDr15fvQajVKMJ2Fqdt7GnI9N1aE= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=aaro.koskinen smtp.mailfrom=aaro.koskinen@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1668009012; a=rsa-sha256; cv=none; b=UTFdz4Eys6UJMnuJ1tki0FsSrCtGO9PLelwNKipGe+wWFE3KzecrcbdWpKG/2765JqlV6k MaTTRfw1yV0mijWeIwe5jnXrgfu3LnOwBdunfs5BMitsHuvF9O1N1NAxEJhHt4R0cIG0H7 6LLpguKVNzSAV4wkUxWys5Y35sSz8fU= Date: Wed, 9 Nov 2022 17:50:08 +0200 From: Aaro Koskinen To: Vlastimil Babka Cc: Pasha Tatashin , Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Matthew Wilcox , Roman Gushchin , Linus Torvalds , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Catalin Marinas , Rustam Kovhaev , Andrew Morton , Josh Triplett , Arnd Bergmann , Russell King , Alexander Shiyan , Janusz Krzysztofik , Tony Lindgren , Yoshinori Sato , Rich Felker , Jonas Bonn , Stefan Kristiansson , Stafford Horne , "linux-arm-kernel@lists.infradead.org" , openrisc@lists.librecores.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org Subject: Re: Deprecating and removing SLOB Message-ID: <20221109155008.GC307514@darkstar.musicnaut.iki.fi> References: <87187c52-ae48-130b-6479-ae1023915bc1@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87187c52-ae48-130b-6479-ae1023915bc1@suse.cz> 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_NONE, 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 Hi, On Wed, Nov 09, 2022 at 10:00:25AM +0100, Vlastimil Babka wrote: > > On Tue, Nov 8, 2022 at 10:55 AM Vlastimil Babka wrote: > >> I believe SLOB can be removed because: > >> > >> - AFAIK nobody really uses it? It strives for minimal memory footprint > >> by putting all objects together, which has its CPU performance costs > >> (locking, lack of percpu caching, searching for free space...). I'm not > >> aware of any "tiny linux" deployment that opts for this. For example, > >> OpenWRT seems to use SLUB and the devices these days have e.g. 128MB > >> RAM, not up to 16 MB anymore. I've heard anecdotes that the performance > >> SLOB impact is too much for those who tried. Googling for > >> "CONFIG_SLOB=y" yielded nothing useful. > > > > I am all for removing SLOB. > > > > There are some devices with configs where SLOB is enabled by default. > > Perhaps, the owners/maintainers of those devices/configs should be > > included into this thread: [...] > > arch/arm/configs/omap1_defconfig:CONFIG_SLOB=y I have been using SLUB on my OMAP1 boards with 32 MB RAM, because of better debugging features and the memory footprint difference doesn't really matter for my use cases. Looking at history why SLOB was added there, it seems it came from 6cfce27c14aa ("omap1: Add omap1_defconfig") when separate boards configs were merged, and SX1 board happened to have SLOB in there. This board is nowadays only used in QEMU anyway. There are OMAP1 boards with only 16 MB, but support for those boards will be removed. So from OMAP1 side, I don't think there is any real need for SLOB anymore. A.