Re: [PATCH 7/7] slub: do prefetching in kmem_cache_alloc_bulk()

2015-09-28 Thread Alexander Duyck
On 09/28/2015 05:26 AM, Jesper Dangaard Brouer wrote: For practical use-cases it is beneficial to prefetch the next freelist object in bulk allocation loop. Micro benchmarking show approx 1 cycle change: bulk - prev-patch - this patch 1 - 49 cycles(tsc) - 49 cycles(tsc) - increase

Re: [PATCH 7/7] slub: do prefetching in kmem_cache_alloc_bulk()

2015-09-28 Thread Jesper Dangaard Brouer
On Mon, 28 Sep 2015 07:53:16 -0700 Alexander Duyck wrote: > On 09/28/2015 05:26 AM, Jesper Dangaard Brouer wrote: > > For practical use-cases it is beneficial to prefetch the next freelist > > object in bulk allocation loop. > > > > Micro benchmarking show approx 1

[PATCH 7/7] slub: do prefetching in kmem_cache_alloc_bulk()

2015-09-28 Thread Jesper Dangaard Brouer
For practical use-cases it is beneficial to prefetch the next freelist object in bulk allocation loop. Micro benchmarking show approx 1 cycle change: bulk - prev-patch - this patch 1 - 49 cycles(tsc) - 49 cycles(tsc) - increase in cycles:0 2 - 30 cycles(tsc) - 31 cycles(tsc) -