Re: [PATCH] alloc_percpu() fails to allocate percpu data

From: Christoph Lameter
Date: Mon Mar 03 2008 - 14:30:35 EST


On Mon, 3 Mar 2008, Nick Piggin wrote:

> I think so. If we ask for HWCACHE_ALIGN, it must be for a good reason.
> If some structures get too bloated for no good reason, then the problem
> is not with the slab allocator but with the caller asking for
> HWCACHE_ALIGN.

Right. There should only be a few select users of this strange flag.
Otherwise if a certain alignment is wanted specify it in the alignment
parameter passed to kmem_cache_create.

--
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/