Re: [GIT PULL] scheduler fixes

Rusty Russell
2009-05-19T14:41:26Z

On Tue, 19 May 2009 07:36:26 am Linus Torvalds wrote:
> > One of the biggest user of bootmem is the mem_map[] hierarchies and
> > the page allocator bitmaps. Not sure we can get rid of bootmem there
> > - those areas are really large, physical memory is often fragmented
> > and we need a good NUMA sense for them as well.
>
> I think that's the _valid_ kind of use of a bootmem allocator.
>
> But for something like the scheduler data structures? Not so much.

Yeah, and it feels dirty to use slab_is_available() to figure if the code
should kmalloc or alloc_bootmem.

Ideally kmalloc/kfree would "always work". But at least we could get closer.

Thanks,
Rusty.