Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1014362imm; Wed, 13 Jun 2018 11:55:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLL6aQxcwWiI8sxCplThmu/fOopL6uz9l0a6NAW3swvpWsbkn3NXgkDhBhQBNNRURFZ7KTa X-Received: by 2002:a63:721d:: with SMTP id n29-v6mr4968685pgc.194.1528916141152; Wed, 13 Jun 2018 11:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528916141; cv=none; d=google.com; s=arc-20160816; b=CcT6f+DtTc1DoVyut/POUViO8NKKahsQZ8eFSALJAcxpUPwyu0vhGS6IXVHMgbB4ky 5DOpu3b9KGSBIjH6BUPcu9p7VZXJYlor1G9wr84ltPXSCLtV/+eNTXnFtlHxxSL+kUci obyfU+Okf6RYao04UquZQENHMVHwIXxs75LJp9kxJtk7z+XbLjFfGKIOBuPlb5cfYzlS 0ztt6DqWm8WqeqrpkLoLAhN3ndQxxB7N3BXMqCIDykcbDU86pMRzqu1l02njXQn+UvHn 0vp1FKxc/Hmn1P6D6DC18Rff4eCy/sSYDW3buqrbYzJCRvMDFpPu0MfGPl+JYP3frlBk 6bfA== 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=Ie17Ws/4c6xXkx8BsdT75jKVUWf0rzTACff+m2gUXZY=; b=HMNc7QyprsMQyEHutx8R4dmWjiUQ9xvGrEI32KTnhrUqYHpAD3WEdentG2TxIidoDb DGFXRLQLREQmJsH8E4YYE11Z/rGYwA1u5SYRenZ7CAwxNKPuSOKMEaxX6yiA4pbJFirp dIgQAiOG6VkB6tmvFMIDu6K8sBJ+tw/Sb7pr9/VxSSuHzo4TMJU8RlgcS3Cej+1fOrTm J7KkmmNvmyTQbJ49VV8kbafLrfxmNGRDzvP+VZjOucxc/X0rUJqdz0x6B8CWABPqqZyZ LDCTgG+Pr1ckmxk8EpWca9W1V3igXNL54cxPogEHBN7ecW0JUVFOnh2dFLEna+p1Ay7U ZU+Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z190-v6si2840627pgd.646.2018.06.13.11.55.26; Wed, 13 Jun 2018 11:55:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754580AbeFMSxv (ORCPT + 99 others); Wed, 13 Jun 2018 14:53:51 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51278 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751898AbeFMSxt (ORCPT ); Wed, 13 Jun 2018 14:53:49 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 462CF81902A5; Wed, 13 Jun 2018 18:53:49 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DB3282166BB3; Wed, 13 Jun 2018 18:53:48 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w5DIrmuL028412; Wed, 13 Jun 2018 14:53:48 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w5DIrl2p028408; Wed, 13 Jun 2018 14:53:47 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Wed, 13 Jun 2018 14:53:47 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Christoph Hellwig cc: Christopher Lameter , 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: <20180613181654.GA24315@infradead.org> Message-ID: References: <20180613181654.GA24315@infradead.org> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 13 Jun 2018 18:53:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 13 Jun 2018 18:53:49 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpatocka@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Jun 2018, Christoph Hellwig wrote: > On Wed, Jun 13, 2018 at 01:01:22PM -0400, Mikulas Patocka wrote: > > Hi > > > > I'd like to ask about this patch - will you commit it, or do you want to > > make some more changes to it? > > How about you resend it with the series adding an actual user once > ready? I haven't actually seen patches using it posted on any list yet. dm-bufio is already using it. Starting with the kernel 4.17 (f51f2e0a7fb1 - "dm bufio: support non-power-of-two block sizes"), dm-bufio has the capability to use non-power-of-two buffers. It uses slab cache for its buffers - so we would like to have this slab optimization - to avoid excessive memory wasting. Originally, the slub patch used a new flag SLAB_MINIMIZE_WASTE, but after a suggestion from others, I reworked the patch so that it minimizes waste of all slub caches and doesn't need an extra flag to activate. Mikulas