lkml.org 
[lkml]   [2009]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] SLQB slab allocator
On Wed, Jan 21, 2009 at 03:59:18PM +0100, Ingo Molnar wrote:
>
> * Nick Piggin <npiggin@suse.de> wrote:
>
> > +/*
> > + * Management object for a slab cache.
> > + */
> > +struct kmem_cache {
> > + unsigned long flags;
> > + int hiwater; /* LIFO list high watermark */
> > + int freebatch; /* LIFO freelist batch flush size */
> > + int objsize; /* The size of an object without meta data */
> > + int offset; /* Free pointer offset. */
> > + int objects; /* Number of objects in slab */
> > +
> > + int size; /* The size of an object including meta data */
> > + int order; /* Allocation order */
> > + gfp_t allocflags; /* gfp flags to use on allocation */
> > + unsigned int colour_range; /* range of colour counter */
> > + unsigned int colour_off; /* offset per colour */
> > + void (*ctor)(void *);
> > +
>
> Mind if i nitpick a bit about minor style issues? Since this is going to
> be the next Linux SLAB allocator we might as well do it perfectly :-)

Well, let's not get ahead of ourselves :) But it's very appreciated.

I think most if not all of your suggestions are good ones, although
I probably won't convert to ftrace just for the moment.

I'll come up with an incremental patch....

Thanks,
Nick


\
 
 \ /
  Last update: 2009-01-21 16:21    [W:0.284 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site