Re: [i386] Use page allocator to allocate threadinfo structure

From: Christoph Lameter
Date: Thu Apr 05 2007 - 14:15:43 EST


On Thu, 5 Apr 2007, William Lee Irwin III wrote:

> On Wed, Apr 04, 2007 at 05:40:31PM -0700, Christoph Lameter wrote:
> > Replace the calls to kmalloc with calls into the page allocator.
> > An alternate solution may be to create a custom slab cache where the
> > alignment is set to PAGE_SIZE. That would allow slub debugging to be
> > applied to the threadinfo structure.
> > Signed-off-by: Christoph Lameter <clameter@xxxxxxx>
>
> This was originally made a slab allocation as a preparatory cleanup
> for things that were never merged, and are never likely to be. One
> might as well revert it, though it does make stack space usage
> slightly more difficult to account for.

No other platform does account for kernel stack space though. And you got
two pages per process. Pretty straightforward.
-
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/