Re: [PATCH 1/7] slab: infrastructure for bulk object allocation and freeing

2015-06-16 Thread Andrew Morton
On Mon, 15 Jun 2015 17:51:56 +0200 Jesper Dangaard Brouer wrote: > +bool kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, > + void **p) > +{ > + return kmem_cache_alloc_bulk(s, flags, size, p); > +} hm, any cal

Re: [PATCH 1/7] slab: infrastructure for bulk object allocation and freeing

2015-06-15 Thread Christoph Lameter
On Mon, 15 Jun 2015, Alexander Duyck wrote: > So I can see the motivation behind bulk allocation, but I cannot see the > motivation behind bulk freeing. In the case of freeing the likelihood of the > memory regions all belonging to the same page just isn't as high. The likelyhood is high if the

Re: [PATCH 1/7] slab: infrastructure for bulk object allocation and freeing

2015-06-15 Thread Alexander Duyck
On 06/15/2015 08:51 AM, Jesper Dangaard Brouer wrote: From: Christoph Lameter [NOTICE: Already in AKPM's quilt-queue] Add the basic infrastructure for alloc/free operations on pointer arrays. It includes a generic function in the common slab code that is used in this infrastructure patch to cr

[PATCH 1/7] slab: infrastructure for bulk object allocation and freeing

2015-06-15 Thread Jesper Dangaard Brouer
From: Christoph Lameter [NOTICE: Already in AKPM's quilt-queue] Add the basic infrastructure for alloc/free operations on pointer arrays. It includes a generic function in the common slab code that is used in this infrastructure patch to create the unoptimized functionality for slab bulk operati