Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4186862yba; Wed, 17 Apr 2019 06:28:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0SjREcetLyNzGm8nP6qnILywSrSwkBaxGrflc3OamFAf8YMRdbz+GZ5TpqYGpU1gqwetA X-Received: by 2002:a17:902:e393:: with SMTP id ch19mr85597299plb.117.1555507731727; Wed, 17 Apr 2019 06:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555507731; cv=none; d=google.com; s=arc-20160816; b=AG/paqlI76Sb04CIKqHaDCjB38M8oCH0O7tgtEH3A95Q6i3fLCREi5kWq85HkhKs1W ag7w+bwXoS7cvcyv6etw71zGaLL1CKW8MqbpvdN1tb814G7hqbUcoYo6kur/W1Rz+pVR 6v+143gasx0cUkkApNMWnxEjy4S80ZdPd9492xawwkrWpUv2xNs6+yS63GAwnglNoRM9 5sy6FiK2HgYMuP7XSR3jzc56QkFi1T8gqCGaJVoRsUFU5gEdg+cuRH/zr2BgX8b08aIa fNkwVMaLEsVRPN/Z8I1wHf2lBgiBuR3yMro/+H4SbZoNyQDNw0vfzWKcbzhqfwAkOQaC bZNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=YqX4IqwhOKtdQgwoSSH2ORlPh0JlcO87zSizgsZDkE0=; b=kwel8KL6oGU0RXrCKya2Zr6YqUN3irw37qPdTSeA6PBmJikIN/9Xcua+vp0CAP24bo ceQ9RBZypd/ywQ+iY32XGssAcFo/WCTxmBExK12BgjcwreWY5z366KDm3dcCwr2ftlMD HY/xdzdRjaMNtHjH2RHaX8ulJGUNmW1vqTXFzWJlz5inc287LZdSe/0sQLZYIloGDrsi iY2+ZeWGR9FyEkuWz9pmoGsU2ycMGNDSxjctYuDVMV+V9Bv2JHvJ2oSsbiwj/BgIs7bt EKuWLjrVm1iueggY/gYuUcZ0kTmbpAQBpFKuf8N2iTbSurrr9phbswLZJ9X09Bu9TMcR PslA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=bZjJwk3b; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si44652163pgn.143.2019.04.17.06.28.36; Wed, 17 Apr 2019 06:28:51 -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=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=bZjJwk3b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732208AbfDQN1o (ORCPT + 99 others); Wed, 17 Apr 2019 09:27:44 -0400 Received: from a9-46.smtp-out.amazonses.com ([54.240.9.46]:39622 "EHLO a9-46.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727034AbfDQN1o (ORCPT ); Wed, 17 Apr 2019 09:27:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1555507663; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=9pePXe16Pm2sxz5+PY34bI9W90zEIcb20PpoSEOxJTI=; b=bZjJwk3bVTXsr1+Ka6SqEQZ7tpn+LdSlTg8zXZXM2NSPN/ix4m4ImO+nk8wNWLgb f/EueiAV+rbhBF2JrWPmqKMZlIqnt44dbCE+dTsKw0nBaY9UbpaRrDCN/LPrmaRXtsb GaUIudJugC+DttqYbbZvPaU9Vj1fQfjqcOT/JJY0= Date: Wed, 17 Apr 2019 13:27:43 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Jesper Dangaard Brouer cc: Pekka Enberg , Michal Hocko , "Tobin C. Harding" , Vlastimil Babka , "Tobin C. Harding" , Andrew Morton , Pekka Enberg , David Rientjes , Joonsoo Kim , Tejun Heo , Qian Cai , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mel Gorman , "netdev@vger.kernel.org" , Alexander Duyck Subject: Re: [PATCH 0/1] mm: Remove the SLAB allocator In-Reply-To: <20190417105018.78604ad8@carbon> Message-ID: <0100016a2b7b515b-2a0a4fab-6c9d-4eeb-a0c8-d3fffbf64e55-000000@email.amazonses.com> References: <20190410024714.26607-1-tobin@kernel.org> <20190410081618.GA25494@eros.localdomain> <20190411075556.GO10383@dhcp22.suse.cz> <262df687-c934-b3e2-1d5f-548e8a8acb74@iki.fi> <20190417105018.78604ad8@carbon> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.04.17-54.240.9.46 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Apr 2019, Jesper Dangaard Brouer wrote: > I do think SLUB have a number of pathological cases where SLAB is > faster. If was significantly more difficult to get good bulk-free > performance for SLUB. SLUB is only fast as long as objects belong to > the same page. To get good bulk-free performance if objects are > "mixed", I coded this[1] way-too-complex fast-path code to counter > act this (joined work with Alex Duyck). Right. SLUB usually compensates for that with superior allocation performance. > > 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. > > I also worry about long uptimes when SLUB objects/pages gets too > fragmented... as I said SLUB is only efficient when objects are > returned to the same page, while SLAB is not. ??? Why would SLUB pages get more fragmented? SLUB has fragmentation prevention methods that SLAB does not have.