Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp889498rwb; Wed, 9 Nov 2022 09:51:20 -0800 (PST) X-Google-Smtp-Source: AMsMyM7FtxGiChRmeob7wM0W0gpEBTZ8hiafABb74r83ufGjQgFup8w8fRHi+JI5QAoVPSc2hnhR X-Received: by 2002:a17:906:2592:b0:78d:b43c:81be with SMTP id m18-20020a170906259200b0078db43c81bemr1492158ejb.600.1668016280704; Wed, 09 Nov 2022 09:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668016280; cv=none; d=google.com; s=arc-20160816; b=t87BnfcuHolHbj4PJAPOy8ZrgRI0zpvw9v77rrxcgxlN1GTWOtmwW0tzxR8fijSYUN 868hwOSvI4D6f3t5hB/UlzJuHLowFOGqM8GFN300JjSHSD4J4JKZgzwr5Emmv1lR8eyI 97PZdanVWuG5Ta/FYhI7glyz9uSd4wpV4owm2bhxYYdd0Q1LB1Dkib6itlygdD2vAK++ KgWav0NCuVmTnw6gIihT+ji2wXwMTlFhYmbx7X2iqKD0t27lwu+5o5icYNhPKAwr0FiX s3cwjlXYuo+4QfoguTAyxNkaL1gMiiYS5rW4RJ6m3OcyFFj5N560yz27EfchRAmARNQX ijuA== 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:date:dkim-signature; bh=1DtV4m9Sb5qzkkKdA2/5+vCFUTti1KLgMKN6UgI5yyk=; b=HlntvqKe9IKQqGQPxlWsHwWxGnFe46UNa+pNTaawsjjoAzAyD2p5OOcRPnVBhO9n6n 7jUQF9egVvkVibFyOto8esR5D7qrSC1wgeD+w3Dsn1cyfDQPZf6TT0qiYU405O9InNHX huDno0GIKNdHPFg1xrsM6zE/WDj3+OanRGszNNEYgEkoZwDwEl7g4rblmTjHBid3QfZh eQmpC9CEyTc0+/zfgAAwe0nfiCotySp9I1P80EqeGXQdHuerKeCqM4KJUEB+r2aA8iO3 51Y5MZsmdTjhMt+yx4bzLmqR4KG2uO9g5fCscRp1LWKuodHXedzvDQzyUHcOJ8bBrgyQ zwsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ARGpruzL; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id de22-20020a1709069bd600b007a6ec6fb027si12754210ejc.538.2022.11.09.09.50.58; Wed, 09 Nov 2022 09:51:20 -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=@kernel.org header.s=k20201202 header.b=ARGpruzL; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231717AbiKIRpn (ORCPT + 92 others); Wed, 9 Nov 2022 12:45:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiKIRpm (ORCPT ); Wed, 9 Nov 2022 12:45:42 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60315BA8; Wed, 9 Nov 2022 09:45:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 17E57B81F53; Wed, 9 Nov 2022 17:45:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B079DC433C1; Wed, 9 Nov 2022 17:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668015938; bh=i7sn7z8xD6SHJEq5dmKr3bGFRNb5IIYU4SUzL9diu3w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ARGpruzLN9OuV1JYvbeHm52w2t6ttIgcwOERaZqjZsnd7VJWeUE/iSfoj625HTPs9 LjIQy4r4/9BKNBA6nWXBmpYOA6SsvVWKXtma/QrTzMUEYdJHxRYVSM9ZzUmQDzL5gE yDkr6hT/XY5diiSADUVNUIFYs+FYy1RrzAoBCPu9+EF7pWX009Q1jSYcQpTH5/jXIz UvI5GVfMJsao2fdud1mdLsEBszy13PadoZxvIu7tt2f03u7RvYE5qrnsmDSaX9P9Yh hM2ic17YHSLgzomL7XWQE7iOvMfjj1ER/bTY5pZSY9MusLUUoQPuUHwDBgI3X4tiuz SLCO2K4jannvg== Date: Wed, 9 Nov 2022 19:45:19 +0200 From: Mike Rapoport To: Aaro Koskinen Cc: Vlastimil Babka , 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: References: <87187c52-ae48-130b-6479-ae1023915bc1@suse.cz> <20221109155008.GC307514@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221109155008.GC307514@darkstar.musicnaut.iki.fi> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Nov 09, 2022 at 05:50:08PM +0200, Aaro Koskinen wrote: > 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. Looks like the same happened with arch/arm/configs/pxa_defconfig. XCEP board had SLOB in its defconfig and when common pxa_defconfig was created it apparently used it. Looks like the board has 64M of RAM, so dropping CONFIG_SLOB=y from arch/arm/configs/pxa_defconfig and arch/arm/configs/xcep_defconfig seems very reasonable. -- Sincerely yours, Mike.