login
Header Space

 
 

Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Enberg <penberg@...>
Cc: Christoph Lameter <clameter@...>, <netdev@...>, Linux Kernel Mailing List <linux-kernel@...>, <yanmin_zhang@...>, David Miller <davem@...>, Eric Dumazet <dada1@...>
Date: Tuesday, March 4, 2008 - 8:28 pm

On Mon, Mar 03, 2008 at 11:35:44PM +0200, Pekka Enberg wrote:

It started out as a SLUB regression that was exposing poor code in the
percpu allocator due to different SLUB kmalloc alignments. That prompted
some further investigation about the alignment handling in the
allocators and showed up this problem with SLUB's HWCACHE_ALIGN. While
I don't know of a regression caused by it as such, it is totally
unreasonable to just change the semantics of it (seemingly for no good
reason). It is used quite a bit in networking for one, and those guys
count every single cache miss in their fastpaths.



The SMP flag was just an RFC. I think some people (like Christoph) were
being confused about the HWCACHE_ALIGN flag being for avoiding false
sharing on SMP systems. It would actually be also generally useful to
have the SMP flag (eg. see the sites I added it to in patch #3).
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Mon Mar 3, 3:08 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Mon Mar 3, 4:10 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Mon Mar 3, 5:16 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Wed Mar 5, 5:06 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 6:56 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 10:26 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 10:54 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 11:18 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 11:58 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Mon Mar 3, 5:32 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Nick Piggin, (Tue Mar 4, 8:28 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Wed Mar 5, 4:56 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 6:53 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 10:20 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 10:27 pm)
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment, Christoph Lameter, (Thu Mar 6, 10:33 pm)
[rfc][patch 3/3] use SLAB_ALIGN_SMP, Nick Piggin, (Mon Mar 3, 5:36 am)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Eric Dumazet, (Mon Mar 3, 5:53 am)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Nick Piggin, (Mon Mar 3, 8:41 am)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Eric Dumazet, (Mon Mar 3, 9:00 am)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Nick Piggin, (Mon Mar 3, 9:46 am)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Pekka Enberg, (Mon Mar 3, 9:53 am)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Christoph Lameter, (Mon Mar 3, 3:09 pm)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Nick Piggin, (Mon Mar 3, 4:10 pm)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Christoph Lameter, (Mon Mar 3, 4:12 pm)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Nick Piggin, (Mon Mar 3, 4:18 pm)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Christoph Lameter, (Mon Mar 3, 5:14 pm)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Eric Dumazet, (Mon Mar 3, 10:15 am)
Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP, Christoph Lameter, (Mon Mar 3, 3:10 pm)
[rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Mon Mar 3, 5:35 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Mon Mar 3, 3:06 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Mon Mar 3, 4:03 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Mon Mar 3, 4:09 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Mon Mar 3, 4:12 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Mon Mar 3, 4:17 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Mon Mar 3, 4:24 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Mon Mar 3, 5:31 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Fri Mar 7, 12:37 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Fri Mar 7, 1:11 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Fri Mar 7, 1:19 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Fri Mar 7, 1:26 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Tue Mar 11, 3:13 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Wed Mar 12, 2:21 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Fri Mar 7, 1:37 am)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Nick Piggin, (Tue Mar 4, 8:16 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Pekka Enberg, (Mon Mar 3, 4:41 pm)
Re: [rfc][patch 2/3] slab: introduce SMP alignment, Christoph Lameter, (Mon Mar 3, 5:23 pm)
speck-geostationary