Re: [rfc][patch 2/3] slab: introduce SMP alignment

From: Pekka Enberg
Date: Mon Mar 03 2008 - 15:42:20 EST


On Mon, Mar 3, 2008 at 10:24 PM, Nick Piggin <npiggin@xxxxxxx> wrote:
> > Then align the objects at cacheline boundaries by providing a value for
> > the align parameter to kmem_cache_create().
>
> max(num_possible_cpus() > 1 ? cache_line_size() : 0, mandatory_alignment)?
>
> Then suppose we want a CONFIG_TINY option to eliminate it?

Hmm... Can't we just fix SLAB_HWCACHE_ALIGN in SLUB to follow the
semantics of SLAB?
--
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/