Re: [PATCH 0/5] make slab gfp fair

Christoph Lameter
2007-05-14T20:25:24Z

On Mon, 14 May 2007, Peter Zijlstra wrote:

> > > The thing is; I'm not needing any speed, as long as the machine stay
> > > alive I'm good. However others are planing to build a full reserve based
> > > allocator to properly fix the places that now use __GFP_NOFAIL and
> > > situation such as in add_to_swap().
> >
> > Well I have version of SLUB here that allows you do redirect the alloc
> > calls at will. Adds a kmem_cache_ops structure and in the kmem_cache_ops
> > structure you can redirect allocation and freeing of slabs (not objects!)
> > at will. Would that help?
>
> I'm not sure; I need kmalloc as well.

We could add a kmalloc_ops structuret to allow redirects?