Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4441166yba; Tue, 9 Apr 2019 19:49:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj4S2z5FoFR53m+Gmg3gi+HDhGrREepqhF9fgocyJxlfVSF6mRBQO9t9ov8N4BOIDwTo/Y X-Received: by 2002:a63:7141:: with SMTP id b1mr38259580pgn.331.1554864560568; Tue, 09 Apr 2019 19:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554864560; cv=none; d=google.com; s=arc-20160816; b=xkSom+Y3bVjawSSTRpvLqa+hAWKG6ZLdYAq3NvvLTBxtpyaBhpVj3SuXoZaJk1I/fK PGSPvpKoALdILoEgaFPpmP2en5Jc/RvWanrkV7ZA/oDIsc/qmrKTd7cE5NeizfIUZKCX d6gmG/hJlnJgR2awJJhuavaf7RwIE+Q6sj6u9KBvIoBzd1s21pXcYTNda8F1j32mgNQR 3BYw1wEtEu6I6c7xPkfF+bJhHgvjTXzNziRLRENYlNVh1NoKIdF3YvuJ1dBh6mlKWNBl 5nSsE7astYsm8G16gs8OlrCSH1pDKk4uAezUILJJ/mPzOSwaO/tXlLQtB7zr3Ctn2N7q HywA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XlC3RnW+D3VAmOuoJxxfAw5B6kl3S91FZ3Fvm+E8U4A=; b=YDfyx+o+/HJl8PPpGsYKT+XLcNHE3TemlNKuiLwyk/+/ztc+HPgZxt7wANxsOd2V51 /rdwXKL9S6hwD27Qt7sen4ftM9xsqzMeOS4ycYHjavRQU4k46xXVRCk+1uLVXemsOz6g pP0qqVzziwRASInJmkB5NeHU6OWgDlQDiKDJVPqp/ajOmIPgOrSXsujzhv91EvABocYQ fALaYwVCtTXHRTeiw87MOWCWkhBbf+J67KbDRiWNpjAZBEX3gm4r8l0/SDEexIPe3fwO OTNIDWZddxdXDSOg8gX/jASKlNWbJ1+BEoFmO2zL7LI7wLT/eB9OYThKrKtuI23be9Ys BjNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lOxkk1da; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si26594673pgh.7.2019.04.09.19.49.05; Tue, 09 Apr 2019 19:49:20 -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=@messagingengine.com header.s=fm2 header.b=lOxkk1da; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbfDJCsC (ORCPT + 99 others); Tue, 9 Apr 2019 22:48:02 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:44155 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfDJCsC (ORCPT ); Tue, 9 Apr 2019 22:48:02 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 89AA411096; Tue, 9 Apr 2019 22:48:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 09 Apr 2019 22:48:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XlC3RnW+D3VAmOuoJ xxfAw5B6kl3S91FZ3Fvm+E8U4A=; b=lOxkk1daLOiUegnToXTPbXZstC7PhgN8v JNgQ4F00fMnTVZ9Snb0TFwk1DOJX1P61pbFmowgODP7h80N4aot4GVMGZz3fOYik AnUTSDJTvxaREOlbp5MXLBDdt6wCTpG98txUqu/KxZ2tNB3P8Dn/iPtOjjwKyohF e5GFJR9x6pYoyB2Fb99+TrdsSEfBr/9RfytcES7lAuuSP9/iyrqHOdZDjEzXqS1Z SImlly6TxIpyKk/7r83JOAj8p3/NXz5yhv5iSyY7rdmDeZdiIKmwn5x+MojV8IjW xx7oSwhoA/WUlWAT2wgAvT16zBbZ4qxnHGVm3CU/uAtW3XoAPds1Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudeigdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepfdfvohgsihhnucev rdcujfgrrhguihhnghdfuceothhosghinheskhgvrhhnvghlrdhorhhgqeenucfkphepud dvgedrudejuddrudelrdduleegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtohgsihhn sehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from eros.localdomain (124-171-19-194.dyn.iinet.net.au [124.171.19.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 746D610391; Tue, 9 Apr 2019 22:47:56 -0400 (EDT) From: "Tobin C. Harding" To: Andrew Morton Cc: "Tobin C. Harding" , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Tejun Heo , Qian Cai , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] mm: Remove the SLAB allocator Date: Wed, 10 Apr 2019 12:47:13 +1000 Message-Id: <20190410024714.26607-1-tobin@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 - 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 ... Testing: Build kernel with `make defconfig` (on x86_64 machine) followed by `make kvmconfig`. Then do the same and manually select SLOB. Boot both kernels in Qemu. thanks, Tobin. Tobin C. Harding (1): mm: Remove SLAB allocator include/linux/slab.h | 26 - kernel/cpu.c | 5 - mm/slab.c | 4493 ------------------------------------------ mm/slab.h | 31 +- mm/slab_common.c | 20 +- 5 files changed, 5 insertions(+), 4570 deletions(-) delete mode 100644 mm/slab.c -- 2.21.0