From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f200.google.com (mail-qk0-f200.google.com [209.85.220.200]) by kanga.kvack.org (Postfix) with ESMTP id 03A346B0003 for ; Mon, 16 Apr 2018 11:25:33 -0400 (EDT) Received: by mail-qk0-f200.google.com with SMTP id y2so958754qki.21 for ; Mon, 16 Apr 2018 08:25:32 -0700 (PDT) Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id c124si15365869qkd.182.2018.04.16.08.25.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 08:25:32 -0700 (PDT) Date: Mon, 16 Apr 2018 11:25:30 -0400 (EDT) From: Mikulas Patocka Subject: Re: 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Christopher Lameter Cc: Mike Snitzer , Vlastimil Babka , Matthew Wilcox , Pekka Enberg , linux-mm@kvack.org, dm-devel@redhat.com, David Rientjes , Joonsoo Kim , Andrew Morton On Mon, 16 Apr 2018, Christopher Lameter wrote: > On Mon, 16 Apr 2018, Mikulas Patocka wrote: > > > > Please clarify further, thanks! > > > Mike > > > > Yes, using a slab cache currently doesn't avoid this rouding (it needs the > > SLAB_MINIMIZE_WASTE patch to do that). > > Or an increase in slab_max_order But that will increase it for all slabs (often senselessly - i.e. kmalloc-4096 would have order 4MB). I need to increase it just for dm-bufio slabs. Mikulas From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikulas Patocka Subject: Re: slab: introduce the flag SLAB_MINIMIZE_WASTE Date: Mon, 16 Apr 2018 11:25:30 -0400 (EDT) Message-ID: References: <20c58a03-90a8-7e75-5fc7-856facfb6c8a@suse.cz> <20180413151019.GA5660@redhat.com> <20180416142703.GA22422@redhat.com> <20180416144638.GA22484@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christopher Lameter Cc: Mike Snitzer , Matthew Wilcox , Pekka Enberg , linux-mm@kvack.org, dm-devel@redhat.com, David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka List-Id: dm-devel.ids On Mon, 16 Apr 2018, Christopher Lameter wrote: > On Mon, 16 Apr 2018, Mikulas Patocka wrote: > > > > Please clarify further, thanks! > > > Mike > > > > Yes, using a slab cache currently doesn't avoid this rouding (it needs the > > SLAB_MINIMIZE_WASTE patch to do that). > > Or an increase in slab_max_order But that will increase it for all slabs (often senselessly - i.e. kmalloc-4096 would have order 4MB). I need to increase it just for dm-bufio slabs. Mikulas