Re: slab-alignment-rework.patch in -mc
From: Manfred Spraul
Date: Tue Apr 20 2004 - 12:31:34 EST
Andrea Arcangeli wrote:
On Tue, Apr 20, 2004 at 12:24:23AM -0700, Andrew Morton wrote:
So I do think that we should either make "align=0" translate to "pack them
densely" or do the big sweep across all kmem_cache_create() callsites.
agreed.
What about this proposal:
SLAB_HWCACHE_ALIGN clear: align to max(sizeof(void*), align).
SLAB_HWCACHE_ALIGN set: align to max(cpu_align(), align).
cpu_align is the cpu cache line size - either runtime or compile time.
Or are there users that want an alignment smaller than sizeof(void*)?
--
Manfred
-
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/