Re: [patch 07/23] SLUB: Add defrag_ratio field and sysfs support.

Christoph Lameter
2007-11-07T18:30:25Z

On Wed, 7 Nov 2007, Johannes Weiner wrote:

> Hi Christoph,
>
> On Tue, Nov 06, 2007 at 05:11:37PM -0800, Christoph Lameter wrote:
> > --- linux-2.6.orig/include/linux/slub_def.h 2007-11-06 12:36:28.000000000 -0800
> > +++ linux-2.6/include/linux/slub_def.h 2007-11-06 12:37:44.000000000 -0800
> > @@ -53,6 +53,13 @@ struct kmem_cache {
> > void (*ctor)(struct kmem_cache *, void *);
> > int inuse; /* Offset to metadata */
> > int align; /* Alignment */
> > + int defrag_ratio; /*
> > + * objects/possible-objects limit. If we have
> > + * less that the specified percentage of
>
> That should be `less than', I guess.

Correct.