Re: How reliable is SLAB_HWCACHE_ALIGN?

From: Ravikiran G Thirumalai
Date: Thu Sep 11 2003 - 00:48:53 EST


On Wed, Sep 10, 2003 at 11:41:04AM -0400, Robert Love wrote:
> On Wed, 2003-09-10 at 04:16, Ravikiran G Thirumalai wrote:
>
> > Am I missing something or can there really be two objects on the same
> > cacheline even when SLAB_HWCACHE_ALIGN is specified?
>
> No, you are right.
>
> If your object _must_ be cache aligned, use SLAB_MUST_HWCACHE_ALIGN.
>

WOW!!!
Looking at the code though, SLAB_MUST_HWCACHE_ALIGN is never considered
by kmem_cache_create or kmem_cache_alloc. So, right now, there is no way of
getting objects which are _guaranteed_ to be cacheline aligned!!!(?)

Kiran
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/