Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5602068yba; Thu, 11 Apr 2019 01:28:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOhfNN/zCPG1AmxEOLMjn5qICmXC4RcQLumXgl1y9z4mCemJt+/c0yfKoxXSVcwaHHzrZ7 X-Received: by 2002:a17:902:22f:: with SMTP id 44mr45421152plc.175.1554971332180; Thu, 11 Apr 2019 01:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554971332; cv=none; d=google.com; s=arc-20160816; b=K/h5aHFnfZmOhzwNADd8Slm0srm6/pPUWomM9GbB8c8gDU4abyLHxL3xuFvNXxqvuA KE02GGvGLlZLLtgZItOJ6hygtbsDBqlCfWfrd+5YAmN8zRWvYxkYDy3wBVBXwQupiSLB l5Fbk9GqgqrgZcDtvAFx9wrsEyldJfzQ4zeeerYKJ+0tphcsrVDv7nDUu7lBaZqApfMR tZUwoSaiE4Pv9Q5t6c60OgRBdJzHbflcayOuQVhxSSLQyPm9kWQQ2Nx7ahqRe09DX46J 1RF+5Rg0mjC/VwrNREXqwZSWftk9sIXd+dU5I+ALTeo12vnG7YUInHx4CdvHGmmA7ulw 8sDg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=8u2aEsZLEcR3+NjWzB2WQbH67+zA4PHcHkWEVgf17q8=; b=hThuJJ3e4Lm6oPowPq+8oIijU6tzs0ZKnRvg3cPCMN8oUXA4VBLbHGSDQn3SGLn3f8 nPb/odKg42h1/MVPdChBYxEaj0E9MSbkAOZT800/FkS51Z0VJJE8P4RxnrIT+zox4ec4 XdCvanZiWw4ijNn/DFCF/Y/6iVx3MnG+X9L9YcazEMk/oeSQOF/WFX0yM7xLQenRMjyP REG39AbLDSps2Z/e1GJ+FCLwdb3jTv/xcOi8KBZUZN+gkV12ROH73RQoM5jYkgq8+ae0 ndmG3fGcxJISAF0ndhgBssOFi6FuutI58mX+pOP6EIDFLWjM9nwgs2w/S4UYc4MHCf3l ZGLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=JigCMARg; 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=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si28096473pfa.41.2019.04.11.01.28.36; Thu, 11 Apr 2019 01:28:52 -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=JigCMARg; 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=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726773AbfDKI1d (ORCPT + 99 others); Thu, 11 Apr 2019 04:27:33 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:58035 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfDKI1d (ORCPT ); Thu, 11 Apr 2019 04:27:33 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 663755A4B; Thu, 11 Apr 2019 04:27:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 11 Apr 2019 04:27:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=8u2aEsZLEcR3+NjWzB2WQbH67+zA4PHcHkWEVgf17 q8=; b=JigCMARgrDNIum5VLN/vsLwM+7b/HmaMjhOl1gQgI1DMsfEtQqx1Lp7V+ I1LKTlANOniVThkARVNXhfzle/8SlP4NfgNpkJTg8HIUvDryMe5NqsIfP9ZPnBpj cm1QmSfLlvmamSRIQ/7QJZz9c2WKBAmZllGZvlhijoyOLXwG4O/QleI0bnmAf9A0 dyZxq7AqyAL/j9MWFghdSCXxSmZI/oYZ8rkzytD1JbwlP5znLwquo9CdX+c+ZrIm FKIh6n+Qcvb9+OW9or4cHefL1Gop8IEXaP66p+iBv/6SWUMb4mx+12wNXyutZi1P qZO3AK7K/isKWsgBGqfEZn5IdM98Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudelgddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghkkhgr ucfgnhgsvghrghcuoehpvghnsggvrhhgsehikhhirdhfiheqnecukfhppeekledrvdejrd effedrudejfeenucfrrghrrghmpehmrghilhhfrhhomhepphgvnhgsvghrghesihhkihdr fhhinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.104] (89-27-33-173.bb.dnainternet.fi [89.27.33.173]) by mail.messagingengine.com (Postfix) with ESMTPA id 2B2E01030F; Thu, 11 Apr 2019 04:27:28 -0400 (EDT) Subject: Re: [PATCH 0/1] mm: Remove the SLAB allocator To: Michal Hocko , "Tobin C. Harding" Cc: Vlastimil Babka , "Tobin C. Harding" , Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Tejun Heo , Qian Cai , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mel Gorman References: <20190410024714.26607-1-tobin@kernel.org> <20190410081618.GA25494@eros.localdomain> <20190411075556.GO10383@dhcp22.suse.cz> From: Pekka Enberg Message-ID: <262df687-c934-b3e2-1d5f-548e8a8acb74@iki.fi> Date: Thu, 11 Apr 2019 11:27:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190411075556.GO10383@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 4/11/19 10:55 AM, Michal Hocko wrote: > Please please have it more rigorous then what happened when SLUB was > forced to become a default This is the hard part. Even if you are able to show that SLUB is as fast as SLAB for all the benchmarks you run, there's bound to be that one workload where SLUB regresses. You will then have people complaining about that (rightly so) and you're again stuck with two allocators. To move forward, I think we should look at possible *pathological* cases where we think SLAB might have an advantage. For example, SLUB had much more difficulties with remote CPU frees than SLAB. Now I don't know if this is the case, but it should be easy to construct a synthetic benchmark to measure this. For example, have a userspace process that does networking, which is often memory allocation intensive, so that we know that SKBs traverse between CPUs. You can do this by making sure that the NIC queues are mapped to CPU N (so that network softirqs have to run on that CPU) but the process is pinned to CPU M. It's, of course, worth thinking about other pathological cases too. Workloads that cause large allocations is one. Workloads that cause lots of slab cache shrinking is another. - Pekka