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

Pekka Enberg
2008-03-03T20:42:16Z

On Mon, Mar 3, 2008 at 10:24 PM, Nick Piggin <npiggin@suse.de> 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?