Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: How reliable is SLAB_HWCACHE_ALIGN? | From | Robert Love <> | Date | Wed, 10 Sep 2003 11:41:04 -0400 |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |