From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69319C6FD1D for ; Wed, 15 Mar 2023 02:54:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9B2438E0002; Tue, 14 Mar 2023 22:54:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 93B338E0001; Tue, 14 Mar 2023 22:54:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7DBBD8E0002; Tue, 14 Mar 2023 22:54:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 6B9548E0001 for ; Tue, 14 Mar 2023 22:54:18 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 33386140F6D for ; Wed, 15 Mar 2023 02:54:18 +0000 (UTC) X-FDA: 80569613796.28.9ED70CB Received: from out-54.mta1.migadu.com (out-54.mta1.migadu.com [95.215.58.54]) by imf03.hostedemail.com (Postfix) with ESMTP id 55CF020003 for ; Wed, 15 Mar 2023 02:54:16 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=S85qHME5; spf=pass (imf03.hostedemail.com: domain of roman.gushchin@linux.dev designates 95.215.58.54 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678848856; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ctapMItOIZsfzFhEc3JvdA9EOk3B6vYmM+FXjmAeKQk=; b=wBgte1v5a28rUVsehJHeZH2Wy+zBx/W0PZQbXrvpAzz22+gCNGegybVq2UeiDB9iR9FeiR XVguNhrBud8/lKDs0t+qRP3/asFmVOl8jW3qqGGqfB6yxlwHT+m+KIcrogpWnXAfaGRowv EgHqXN2+h4zwvZCMzi+MezgV8EDaUb4= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=S85qHME5; spf=pass (imf03.hostedemail.com: domain of roman.gushchin@linux.dev designates 95.215.58.54 as permitted sender) smtp.mailfrom=roman.gushchin@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678848856; a=rsa-sha256; cv=none; b=RaCpadI11NPgBuQ8YHlUjhXT4/i7Nm6Q2xAVwVMxkAltlaPEARbqLyl9PfNU6X61xBd3pb DSVY/a/Ov9oXVKVKkZWd/L/MRIOSdb39p/16OOU/G6RAUZu2nLeKXGofywvhZaNQ/J6k+c xgVOW/HRS0SH520Huo44q2P2zOtBz40= Date: Tue, 14 Mar 2023 19:54:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1678848853; 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=ctapMItOIZsfzFhEc3JvdA9EOk3B6vYmM+FXjmAeKQk=; b=S85qHME5d8VThaKta/6fehQVWG3p4FqIiHEZ7d34QmY87G/pcECtJJwFnb0GrNF1AcFsGK mOIwaeJhFDmW5x9+foUp2O4Gx7CkBTROL7SDa8DENrRKpqTR2cfxh5sVlbFUXfPoHe1SEB /JNZs5CcbaqBFFxZIlUzCloMej+ZUr4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Vlastimil Babka Cc: lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, bpf@vger.kernel.org, linux-xfs@vger.kernel.org, David Rientjes , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Hyeonggon Yoo <42.hyeyoo@gmail.com> Subject: Re: [LSF/MM/BPF TOPIC] SLOB+SLAB allocators removal and future SLUB improvements Message-ID: References: <4b9fc9c6-b48c-198f-5f80-811a44737e5f@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b9fc9c6-b48c-198f-5f80-811a44737e5f@suse.cz> X-Migadu-Flow: FLOW_OUT X-Stat-Signature: m45ztrmgidx34io3miizqgzphd1551yi X-Rspam-User: X-Rspamd-Queue-Id: 55CF020003 X-Rspamd-Server: rspam06 X-HE-Tag: 1678848856-745139 X-HE-Meta: U2FsdGVkX1++Xzmi1aeZoKb/XnGkJvOW19+/HwgIfYxxyiSDsB5s/10Di9FnEsj+o9HK288VqlPehbuD1NWRb1VjjVCZDRn97K8p7b9sbdANPtXQFKSBANp2IQCS6HYHFxFSvpZsa68V6d3uKgkSrRgn7j2BrbiA5/Dr+AbwcrdB3G8UFwsJtOMovUUJevBMToYJcs+EgvDbnYZx37HW6+BnOtRt5JhygnvK56aeES+A2Zt4V+2P424qumKkaCm64IIbSJRZ03yhmciMPdzh78lKs2+lIPBmNR8grG+HGSZbCoZGqtDKuK3wZA8islmSFv5kOlPLmkSlwkbm9gyAepI2KzhYRFsXNVKH8E25xZavt4FUoe200CfuKARHwKmjQS0kahxCPtW4SuDvv+QB/Pa24zVkEdlIejR0Pir6vKq9XHRJk7TdXlitBLz5Ls+BRZe/acnaTI9LF3pnyupP+HVGmzeo5TtBk8fZbTpPGFDAJ5xmf8Ci1B1XWrO35GWa4qTULQrbUG5THQziWjgksndGcEttrRpFQOPkjq/prf4q2AnPjp6+jgvv1dk4vV5V3UIdlljn7D7U/uAAz4KperPG3jSRvMwwr5MaOnM0Si+Emdq+dbaf4T2lU+kREu+bcGgLMEdNgkqMW8MTBt4/TiOsqbLXvoGSlI8wezyMV4Xr/xoEPlBkoM95tqh6NAjJRWeMkH1g4BZRNLuuaKEOQK0H/9DYgBkMpC2Q2VRt6wlp2opGZeESMzpO5XTzZ5wN2vthh0fc0jhl+AWU0zqsyduQMejjFMnJKUG0E50iZ1/Gel7n2fphGc/gjtIChU6h8//PaUG5RkL+aG6F0qVYUCKi74/EBmCC08Qph3ahNF8zox+liUHK41OmJV8aYvFMZWEuRYp8Y4K3lIpoaXlBhloqEd4EupFTD8Is5LTc3m5XMwtKM6JV4tLBAScRZiLkj925P63PRN//agtgoQo tWr98paN QtUwc/LkPRRpdH21O5qCLkeUXItX943/UhmIPqnIPTJgDOtH4rU1Q6N3liyXcuAde4cdltpKWi2pdbGIm/X6+mFcOSpiJwAatp7wooBbkOQQabsr2L7L0Ml82RgSPZ4yO2OOXKc37Maf6vdi+9q/OvX2jxmel6YpsPUVya6jc6HdkztQ= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Mar 14, 2023 at 09:05:13AM +0100, Vlastimil Babka wrote: > As you're probably aware, my plan is to get rid of SLOB and SLAB, leaving > only SLUB going forward. The removal of SLOB seems to be going well, there > were no objections to the deprecation and I've posted v1 of the removal > itself [1] so it could be in -next soon. > > The immediate benefit of that is that we can allow kfree() (and kfree_rcu()) > to free objects from kmem_cache_alloc() - something that IIRC at least xfs > people wanted in the past, and SLOB was incompatible with that. > > For SLAB removal I haven't yet heard any objections (but also didn't > deprecate it yet) but if there are any users due to particular workloads > doing better with SLAB than SLUB, we can discuss why those would regress and > what can be done about that in SLUB. > > Once we have just one slab allocator in the kernel, we can take a closer > look at what the users are missing from it that forces them to create own > allocators (e.g. BPF), and could be considered to be added as a generic > implementation to SLUB. I guess eventually we want to merge the percpu allocator too.