Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment

Christoph Lameter
2008-03-03T19:08:58Z

On Mon, 3 Mar 2008, Nick Piggin wrote:

> SLUB should pack even small objects nicely into cachelines if that is what
> has been asked for. Use the same algorithm as SLAB for this.

Why? SLAB does not cacheline align objects smaller than cache_line_size()
/2. If they are already not cache line aligned then we can make them as
dense as possible. That is what SLUB does.