Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5245562yba; Wed, 10 Apr 2019 14:54:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5YlCl9mFvGevyPw8izxvfQnJDJj6FoDlFyhyoLarw4mbSL86zSgO6td6NGO3bj4ZkPMKi X-Received: by 2002:a63:d302:: with SMTP id b2mr7798353pgg.13.1554933287798; Wed, 10 Apr 2019 14:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554933287; cv=none; d=google.com; s=arc-20160816; b=BVwtC12QqaRtY1IlXmGPKYroXfkLA+jmzGAiFO23HnJiiHYKo1+V7ashnplSZQD4wi 8R/bt91naYchAljKyg1MC1DibMKYJNMU+wFpYRJ9jlBVtwudy49pMnkR+wsveshuMESk OQM8w95ftjNgpXvQ3hcyIlM8gwUvAB9pzVDS6vkpRtzeF4ASJoKdoofTsmtTnR3pvSHK J0R49jc0vuXpU57oEgWozOmVH1vmybi3WIjygng9MGKn6Ya6SlbW+feUi8Qpallt+cqI ImpiY1a7a1M2pO93tdZnMWTCJZO5/hxsT8suLeyxvD1BndeWcE8nZvKQRJrJye4rWpgm OxyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=3p4NjpgsoDwbHSH6o2K2Uu1LYIhK93bOWHp3cUQbm2A=; b=x71fs4dKvYgXspgp0mXNg2hKIcqsxsvDxQALKCCmSPYhxnSqbNS02eZyIy8xoRgYHI xbk1BU83ex7SyO9H/9JRri+RZtz57y7omfoiFfjM18CD84cUmimrAVCXhGT55o48JAgY dn+UKk+1idyjtSijHvve9iF4oGY8huI9FQpSDZMKHiCYzBFMZlSLP+npVW3u8/EzQr6o g0UutRLJZTxHfu9LZ9XJJWFrbaVLEzqtCBggar9rrvXEAQBv/iGP3qHLXomxXZTHLg4h SamgfiyzRwPc4KNsvl+6LVB7WbQryP+VJr7JU9hqB4FXmb1qCc9mbLzlJarMKiHVxyS4 eJNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Msrizkcs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 34si1467972plp.239.2019.04.10.14.54.32; Wed, 10 Apr 2019 14:54:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Msrizkcs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbfDJVxh (ORCPT + 99 others); Wed, 10 Apr 2019 17:53:37 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36246 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfDJVxh (ORCPT ); Wed, 10 Apr 2019 17:53:37 -0400 Received: by mail-pl1-f194.google.com with SMTP id ck15so2217699plb.3 for ; Wed, 10 Apr 2019 14:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=3p4NjpgsoDwbHSH6o2K2Uu1LYIhK93bOWHp3cUQbm2A=; b=MsrizkcsUEOZCuBtc2jjJ33ioMjLFHRiq8EFcPhxHCxgPgPD0/aZP86p7dL55H6EkJ NgWmq+jptlJZdv043JixiEwvFb7TZKI7KHbJn30hSDYNhwzSV5yliJ37T7PSzn1vSXUZ SFL4WG4WJiRMozOWJov6H5uI5Iwv0WRgqGDmdscGoDpEJGFSrYfOOVp73gi0JJp9NzOF Do4Mxw4mxX/ucfurwHCr+/exhwgraTzHqinP9/gK9uBaTY6B+RjK0HrkhoqfDMdsndxq f76oQL5lDV8iQZ/JbsJ63T5Lqe0AZ+d3zKSnUAYQAVpFRSK4vOGAjlL/FdKKyWkeaMKB 4sGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=3p4NjpgsoDwbHSH6o2K2Uu1LYIhK93bOWHp3cUQbm2A=; b=Ib09KYvn7Ix6mBjjQzDvMYv4mBSJRjymMMFVbNuYQXN5x4QA+dZ0lm8SmxD7B7PlTZ 7QsXY+MqltHVwOZ65ks5AdNbLI/vYtNc1HY+Tu5G7iWfRIaaFPjIKRIoP8rkxCy/spYM YV/obrofAH7wY2Jy14lx1zd5Ni2JDo44WBiGpQVbmOIy4tH1K2+HkkKKHg/sqQ640Ze3 jTsBxcR1gV6x6zOLowfVxk0H4lpLfxDxMAd/jjZZU8ANAD0/0YTyqlJdFyPRTwAhCDNX w1Eyys79ymn3VhpzIphg4DmEAZPs8XnGkJ85ZPbKkofOox8eWaQu0WVR443CtHEyxOF1 ZM6w== X-Gm-Message-State: APjAAAUZXi6nR/YyTXhhlIQf4FasIvjSDepQqcszTAbL4GQ1oTF/d+xl TvZgmlceZALO2uRYJMNT7Oxh3w== X-Received: by 2002:a17:902:be09:: with SMTP id r9mr44752098pls.215.1554933215988; Wed, 10 Apr 2019 14:53:35 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id v19sm66087651pfa.138.2019.04.10.14.53.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 14:53:35 -0700 (PDT) Date: Wed, 10 Apr 2019 14:53:34 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Vlastimil Babka cc: "Tobin C. Harding" , Andrew Morton , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Tejun Heo , Qian Cai , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mel Gorman Subject: Re: [PATCH 0/1] mm: Remove the SLAB allocator In-Reply-To: Message-ID: References: <20190410024714.26607-1-tobin@kernel.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Apr 2019, Vlastimil Babka wrote: > On 4/10/19 4:47 AM, Tobin C. Harding wrote: > > Recently a 2 year old bug was found in the SLAB allocator that crashes > > the kernel. This seems to imply that not that many people are using the > > SLAB allocator. > > AFAIK that bug required CONFIG_DEBUG_SLAB_LEAK, not just SLAB. That > seems to imply not that many people are using SLAB when debugging and > yeah, SLUB has better debugging support. But I wouldn't dare to make the > broader implication :) > > > Currently we have 3 slab allocators. Two is company three is a crowd - > > let's get rid of one. > > > > - The SLUB allocator has been the default since 2.6.23 > > Yeah, with a sophisticated reasoning :) > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a0acd820807680d2ccc4ef3448387fcdbf152c73 > > > - The SLOB allocator is kinda sexy. Its only 664 LOC, the general > > design is outlined in KnR, and there is an optimisation taken from > > Knuth - say no more. > > > > If you are using the SLAB allocator please speak now or forever hold your peace ... > > FWIW, our enterprise kernel use it (latest is 4.12 based), and openSUSE > kernels as well (with openSUSE Tumbleweed that includes latest > kernel.org stables). AFAIK we don't enable SLAB_DEBUG even in general > debug kernel flavours as it's just too slow. > > IIRC last time Mel evaluated switching to SLUB, it wasn't a clear > winner, but I'll just CC him for details :) > We also use CONFIG_SLAB and disable CONFIG_SLAB_DEBUG for the same reason.