From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) by kanga.kvack.org (Postfix) with ESMTP id 0757F6B0070 for ; Tue, 16 Jun 2015 11:10:27 -0400 (EDT) Received: by iebgx4 with SMTP id gx4so14830096ieb.0 for ; Tue, 16 Jun 2015 08:10:26 -0700 (PDT) Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net. [2001:558:fe21:29:69:252:207:39]) by mx.google.com with ESMTPS id z5si10889900igg.2.2015.06.16.08.10.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 16 Jun 2015 08:10:26 -0700 (PDT) Date: Tue, 16 Jun 2015 10:10:25 -0500 (CDT) From: Christoph Lameter Subject: Re: [PATCH 7/7] slub: initial bulk free implementation In-Reply-To: Message-ID: References: <20150615155053.18824.617.stgit@devil> <20150615155256.18824.42651.stgit@devil> <20150616072806.GC13125@js1304-P5Q-DELUXE> <20150616102110.55208fdd@redhat.com> <20150616105732.2bc37714@redhat.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Joonsoo Kim Cc: Jesper Dangaard Brouer , Joonsoo Kim , Linux Memory Management List , Andrew Morton , Linux-Netdev , Alexander Duyck On Tue, 16 Jun 2015, Joonsoo Kim wrote: > So, in your test, most of objects may come from one or two slabs and your > algorithm is well optimized for this case. But, is this workload normal case? It is normal if the objects were bulk allocated because SLUB ensures that all objects are first allocated from one page before moving to another. > If most of objects comes from many different slabs, bulk free API does > enabling/disabling interrupt very much so I guess it work worse than > just calling __kmem_cache_free_bulk(). Could you test this case? In case of SLAB this would be an issue since the queueing mechanism destroys spatial locality. This is much less an issue for SLUB. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org