Re: How reliable is SLAB_HWCACHE_ALIGN?
From: Robert Love
Date: Wed Sep 10 2003 - 10:42:51 EST
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.
But note that this will result in cache aligning objects even if it ends
of wasting a _lot_ of space, such as when debugging is turned on.
I think we only use it for the task_struct_cachep.
Robert Love
-
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/