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

2007-04-05 Thread Christoph Lameter
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. Th

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

2007-04-05 Thread William Lee Irwin III
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 thre

[i386] Use page allocator to allocate threadinfo structure

2007-04-04 Thread Christoph Lameter
i386 uses kmalloc to allocate the threadinfo structure assuming that the allocations result in a page sized aligned allocation. That has worked so far because SLAB exempts page sized slabs from debugging and aligns them in special ways that goes beyond the restrictions imposed by KMALLOC_ARCH_M