Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1186638rwb; Wed, 9 Nov 2022 14:12:02 -0800 (PST) X-Google-Smtp-Source: AMsMyM6IjL6ezSRP/zR9qoyW0Ug3dgsfpXJo5wy5Fo5AN4gwdPsuX4CS91fdFRYT6XreHNb1ztuu X-Received: by 2002:aa7:ccd2:0:b0:462:73bd:3acb with SMTP id y18-20020aa7ccd2000000b0046273bd3acbmr61415983edt.378.1668031922323; Wed, 09 Nov 2022 14:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668031922; cv=none; d=google.com; s=arc-20160816; b=JLxWDwdoI7eiWdAbKTFnPm4COUVTmrcnt63za8k39VHNW7wlmNZ8Vf5dBabY6LN42z uk5w2jWYOopE9doPbqpkexymF0X4TbLZL0SVgSy42N9bUkawS3IpG4TOi/cfYZc0nQhE 6c65YVKh2rm16BqTfFjtT1p2Iq8rSepMiAsz/gJyMSZFElBWuBfg5PUQrmrFd9rfzxhv Y8oYUti0NWSgD9igRUnVRPAoUl/11SWneb8LysLqOFEWJXunQtl8hLJpB1dvfV7rycrY jiQABFd5Phnqjh+b7EVmvrlTiVctFLD7D5QmsQpn6Y5wI5VPFfh2QI4kXFfmk2DZflV7 jXZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6o0JaodUdCinHCuijBKMPPDh4qNhM3W4CwZTMs5pShU=; b=LCMX8hybjuKfgsemAQsON0mad+eGh0T0F/MW06NaX3k9MnosyoaUmY5AnJIKQ92fxU j5r9g80NiWGww+VPYMooGUUca2n/BMIlepfqV5XSoU87ykq7MFuuXjxs2w6SA+Snhq/M 0+E6AriREKdGdMXEmCFIOEieuXBQjb0oG3o8+Qmf2M8JtbguxwtccLKC/XOWlwWN6CXJ 5xQulzrOhz5VwVJ7sVrPGWw+Kha1JNSwkBt7/TJCaPxzwodct1HqSCpxVp7KP8KfajI3 kIl2RNEj9X5eGbxGgIfxyf/dxxPOE8eJkH+06od6oBpuYrkbf5vYMx8gDZR5FSbJv4pQ /P3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b7JdsqL9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a05640213c400b00456cc6e1017si13853805edx.109.2022.11.09.14.11.39; Wed, 09 Nov 2022 14:12:02 -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=@gmail.com header.s=20210112 header.b=b7JdsqL9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231611AbiKIVRM (ORCPT + 92 others); Wed, 9 Nov 2022 16:17:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231185AbiKIVRH (ORCPT ); Wed, 9 Nov 2022 16:17:07 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA8523134D; Wed, 9 Nov 2022 13:17:05 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id p21so18273186plr.7; Wed, 09 Nov 2022 13:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6o0JaodUdCinHCuijBKMPPDh4qNhM3W4CwZTMs5pShU=; b=b7JdsqL98tFczElrzx45zPQRQqT+FLWQdW7GQ21VMf1VWbVkWvdPT7fPQVW9/YYGhj fsJmZVTrJHZqpF5nrGm5JKasB3diwCu2Hs5yNW2C9n/rEZiCH7R7PnAEwZ/MGa/qzyIG zfiOnumXidobU0/zuy474imLQWsj+TNcT1BwOR4wCZrc7nj9wEle1ahDUDnwTkt6UQJ1 bZGNJ9fqbFCNFUTDQDZYUF5tjtiVt+POwV9J5xnlurRxP4GFYN8l+xbrN6OKbV0N8j6j kPz632gUkLxrLhg+OI3WB7b7hny2T7RaIKSOWnHn8CvNieatf9SjrSo7u+FU7dyzH4Jo RWzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6o0JaodUdCinHCuijBKMPPDh4qNhM3W4CwZTMs5pShU=; b=b3PLisN7Ncx58rTaBNLUZpurK7Peo+EAojgr7iioQ2yIi6iizKS3V22O63r4gOy4kb o4CfwbvlQhkpMutY7JA9f7+paUGVPlSSVnSsK1mib/FVf/ojjqLqh2MfYRUP9xk/ylWW CiS56JEg/zNqT5FKe7HNF+wcTuOCuLHfGs9cNia2P52wqsRHAjySRHMTYfX6Bt5MVITu W2/72nLb+cT5EBJ5uuZ/YZKudNtbfejQNK8UI3p9hMVbog6gaMvUkj1OsyCmxJgrbFuR RYUTP2km9yaJR2ivSvJ3VgpVX1O0t1JLoWgH+OBwTYEcek8NnGKcFTxJJCOgME983Rp9 daWQ== X-Gm-Message-State: ACrzQf0K+DeZsk1e++GTBesJ4+5GYDzHBL3XncL5yFdA5ge0zPOjJg/c R11ujVEZewBDVJNQT1mSPe5tfQhfcJwZGIdqGig= X-Received: by 2002:a17:902:da82:b0:186:ee5a:47c7 with SMTP id j2-20020a170902da8200b00186ee5a47c7mr63072929plx.82.1668028625070; Wed, 09 Nov 2022 13:17:05 -0800 (PST) MIME-Version: 1.0 References: <87187c52-ae48-130b-6479-ae1023915bc1@suse.cz> <20221109155008.GC307514@darkstar.musicnaut.iki.fi> In-Reply-To: <20221109155008.GC307514@darkstar.musicnaut.iki.fi> From: Janusz Krzysztofik Date: Wed, 9 Nov 2022 22:16:53 +0100 Message-ID: Subject: Re: Deprecating and removing SLOB To: Vlastimil Babka , Aaro Koskinen 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 , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wednesday, 9 November 2022 16:50:08 CET 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. > > 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. Moreover, I always had issues with availability of socket buffers during USB device setup when trying to use SLOB on Amstrad Delta based on OMAP1510, the least powerful OMAP1. Then, +1 for SLOB removal. Thanks, Janusz