Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1543391pxb; Wed, 20 Oct 2021 07:10:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9eIaLDgAnQXmex29np+H42k1YrfADO8MLph4ACWSumKS5ekklmanJGCw5W/iJoCi01kj/ X-Received: by 2002:a05:6a00:a23:b0:43d:e856:a3d4 with SMTP id p35-20020a056a000a2300b0043de856a3d4mr124889pfh.17.1634739055398; Wed, 20 Oct 2021 07:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634739055; cv=none; d=google.com; s=arc-20160816; b=bPtGkLXmmgdICU/CeBciHBedh0YuHo5Z9xo+O6lT3gSglPOQ8DT5KS/T0Frpy753W/ qlQwalX5F7XcIgFVOfJbO2EiCGg6aLmcBi7s0mQCasH4NZzBkSCIKA4HxQAmwBjzP1U5 83BZ2BCj0c+tzf0xvoFT3kDYDNzuqsiF3D9ceMqT6dHtMAGPPP8f1u8UHLM+MMlcdTpU LJzHjuIJ9S8Y0p1miuLuz/DU6bmnL4e9YkbaMvTzFOlIZ9mx2iWuaRGt5JEPhlUulaXG 9IMTlM+Nu6m6Tlr8tLlLP252UUVPHATRuiuNdXwveKQAR0tsnDjSj+AuX9/VNkfLf0U1 Vr/Q== 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=KRTYJRPRYXm9ZqJy2lw2hJUmwgSE6jOOWBjg81sbw4s=; b=c1emRQslfHJ7bqjMpLxkuAzAWrdW6QKWfWNjxSjOyJB6Y72G5WhtDC8vFharRFPU8K bfPTJjgKL1HxASP2re0+ejZ+wCuhwdGNGHnzS+RuLj6QMvUQS3eKw2KyynLI3Gb5Kxbb +kEYiVbv2VCqWw/zxmeb6DGlupbvHNTtkWwcoRj3HYCaWFt4Ym4ujV+pSli2opBqA1tR bxUd+1oIlDdZXfliCTKwHvu1fFW2HK+SzpgLOawgLdfOm3fCNvlmog3R1k5x1TxslmbL AdGerdU2NQg1Bxl11y6KcTBSgrGKHLcG20V6T08FCI5yGYqS8hd2IEG0D1SGnFHInpAx vIXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nkMjLC8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si3771608pgj.465.2021.10.20.07.10.41; Wed, 20 Oct 2021 07:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nkMjLC8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbhJTOLd (ORCPT + 99 others); Wed, 20 Oct 2021 10:11:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbhJTOLc (ORCPT ); Wed, 20 Oct 2021 10:11:32 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC8DEC06161C for ; Wed, 20 Oct 2021 07:09:17 -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-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KRTYJRPRYXm9ZqJy2lw2hJUmwgSE6jOOWBjg81sbw4s=; b=nkMjLC8wVsQezunuXjfT408tBj kH18as1wq/LCEf+14wdzpwtwaanEW7VgIagT4snLfmL9jsIeBSLB6HmtXrrZ0PBwPdHpBZxTfhbK5 iIZomUoy2oLAtrvT5cT44eK+TVkQxZaNZnDDHpLqkqNUrFiDTZ+pODYjioxewujb1GZrwhbu3P6B/ L2ZZZASPiHNRULrYXNiduTXcwtqwO7IjyxvbCCanossohZXivpFbqsqUVFjL2lvOYnWw2AoT4doUw UN58roeFyvFRetjQLgg/NsKfJKSwJQ2fx0KgcCNhI0tRuok/uvbRht/QHnwyH/5YTThJrzpOON2/g lPTlZZXw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdCFr-00CYGK-Nl; Wed, 20 Oct 2021 14:08:03 +0000 Date: Wed, 20 Oct 2021 15:07:43 +0100 From: Matthew Wilcox To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , linux-mm@kvack.org, Dave Taht Subject: Re: [RFC PATCH] mm, slob: Rewrite SLOB using segregated free list Message-ID: References: <20211020135535.517236-1-42.hyeyoo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020135535.517236-1-42.hyeyoo@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 01:55:35PM +0000, Hyeonggon Yoo wrote: > Hello linux-mm, I rewrote SLOB using segregated free list, > to understand SLOB and SLUB more. It uses more kilobytes > of memory (48kB on 32bit tinyconfig) and became 9~10x faster. > > But after rewriting, I thought I need to discuss what SLOB is for. > According to Matthew, SLOB is for small machines whose > memory is 1~16 MB. > > I wonder adding 48kB on SLOB memory for speed/lower latency > is worth or harmful. > > So.. questions in my head now: > - Who is users of SLOB? > - Is it harmful to add some kilobytes of memory into SLOB? > - Is it really possible to run linux under 10MB of RAM? > (I failed with tinyconfig.) > - What is the boundary to make decision between SLOB and SLUB? There certainly are people running Linux on such small machines. Nicolas Pitre talked about what it takes to do it in a series of four articles: https://lwn.net/Articles/746780/ It's been a couple of decades since I was last paid to work on such a system. Dave Taht (cc'd) may be able to help you find people who care about these use cases. And maybe they can tell you whether 9-10x faster for 48kB extra memory consumption is a good tradeoff for them.