Received: by 10.192.165.148 with SMTP id m20csp2488827imm; Thu, 26 Apr 2018 11:53:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpYZ2zwYKrlSF+C4Q802UI5ce/bGoJiTqMueVBnI+vN12HCvDeoCF8KDF6SfL64+eDujA+T X-Received: by 10.98.174.19 with SMTP id q19mr13745143pff.155.1524768797729; Thu, 26 Apr 2018 11:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524768797; cv=none; d=google.com; s=arc-20160816; b=MbeTuu7/16WheZ0Pn2mnwgzao/GDbCVou2r90ldMHH8aTPaNe57ayrQBuJRKWrnnWI YqhU04FN0fpiTcR2ZJ1jpdU+pzkbj5VqUwYV5fLxp2oT6hpzm6UFZIWGBNsyvXdS5x08 DPbXyDFOs/EFbWJygpdXmDKvJgKcg6Uj1VKNcZcqvIs2N68nAYU9s7n1gRr4aETGCpgp heIRj6WKX2U9SksQ9+E81pNpdLGGsmQDoTXbOykeQGK7sBotBsiBFj9sQz6Xj39aqUnL b8lsFHeI/kxTpedSlIdBabq94SRkZEpqN1c/sdoSNCvm827oRz3mcq3/4ehpj5o9WbRJ RNKQ== 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 :arc-authentication-results; bh=3KKycsx74rU1pGYSO5D2d5p/3NcjkmvtEMICxPWAFpM=; b=nToDiPVGiRgWY8V8tBuDjWbSAkZ9L1ygZ3IcNTrbQHP6FF1rPxuPgLonsotAKSp/L5 lZwU2CHNmusVIW0HCKBXHGlECFn5X9NWDKCsG8N8qmlJoyPgc7qyw4fUlf16dya4CWyB 8sPB0MEpAD2K2TRurSbBLvW5drZcyJC38d1rv3kD4YPyPbBRHhvh2G7jTXfmsPbvoh3j aSyYbHr593GTcjRWk3uTzuTBY/0NuKi0dr7hxW4ayQxJ0cRspYlF8ceMaueg3v9j+Eld vG6ucawo5yXEIh/hbqF9AH4Asq6kDnda5pgSysBtpdniEBfjDqKt8jziYS/oTkOvdRby LB5w== ARC-Authentication-Results: i=1; mx.google.com; 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 a8si15525386pgu.535.2018.04.26.11.53.03; Thu, 26 Apr 2018 11:53:17 -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; 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 S1752952AbeDZSvy (ORCPT + 99 others); Thu, 26 Apr 2018 14:51:54 -0400 Received: from resqmta-ch2-05v.sys.comcast.net ([69.252.207.37]:51008 "EHLO resqmta-ch2-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbeDZSvw (ORCPT ); Thu, 26 Apr 2018 14:51:52 -0400 Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-05v.sys.comcast.net with ESMTP id Bh4tfq9OlQ4H5BlzkfSqJ6; Thu, 26 Apr 2018 18:51:52 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-13v.sys.comcast.net with ESMTPA id BlzjfTEvK1YFjBlzjfIOpR; Thu, 26 Apr 2018 18:51:52 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 314DA1161690; Thu, 26 Apr 2018 13:51:51 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 2FF281160356; Thu, 26 Apr 2018 13:51:51 -0500 (CDT) Date: Thu, 26 Apr 2018 13:51:51 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Mikulas Patocka cc: Mike Snitzer , Vlastimil Babka , Matthew Wilcox , Pekka Enberg , linux-mm@kvack.org, dm-devel@redhat.com, David Rientjes , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] slab: introduce the flag SLAB_MINIMIZE_WASTE In-Reply-To: Message-ID: References: <20c58a03-90a8-7e75-5fc7-856facfb6c8a@suse.cz> <20180413151019.GA5660@redhat.com> <20180416142703.GA22422@redhat.com> <20180416144638.GA22484@redhat.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfJKLQ1CxPCts46KSlPJRHJI9bUIXRgK8x70TBokkjOSVfl0THl/iopA0zWEWcvTh9ZkUWjyCBS58q8m4AopiXKgZkMSiElIsc6jMB7CL7YxLrD4DXJ5E VIpUV74gu82glKUoDs8dzw7gUiUf/1es6qoG2Jqy+JPyG9afNY7A/ggOaZ6raFrR9WmXimVLUcLnKor2iLYwrXeYKySGxLTlQiB5oR8JBqwBrsIC9ihntqu/ 4ldJGg0aHAjrhz5ccQyiyKYKTlIQFpvH/BVLW5t67YAbA9gTnw+AWVvceBc7PPk7rO+NtDVq7HAM1nYVO/ra6vi2XgmnH6JDKfCxgXUhYe40Z4n27vHu+3wv Qs0gacrbQD+Y/J3KSaim1QnO/9OVCWsT9lp/V0hKFdc9LjDDa/1dxjtH5Aqg84eEHp38nGjfF4NyF91ZmHzIgELQApGSAuXpHc9+2LXI5/5TWeEYlEke/pYZ tsjEZBVDjYSpf10S Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Apr 2018, Mikulas Patocka wrote: > > > > Could yo move that logic into slab_order()? It does something awfully > > similar. > > But slab_order (and its caller) limits the order to "max_order" and we > want more. > > Perhaps slab_order should be dropped and calculate_order totally > rewritten? Yes you likely need to do something creative with max_order if not with more stuff.