lkml.org 
[lkml]   [2009]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/3] slub: add per-cache slab thrash ratio
On Sun, 29 Mar 2009, David Rientjes wrote:

> @@ -2291,10 +2292,13 @@ static int calculate_sizes(struct kmem_cache *s, int forced_order)
> /*
> * Determine the number of objects per slab
> */
> + if (oo_objects(s->oo))
> + thrash_ratio = s->min_free_watermark * 100 / oo_objects(s->oo);
> s->oo = oo_make(order, size);

s->oo is set *after* you check it. Check oo_objects after the value has
been set please.




\
 
 \ /
  Last update: 2009-03-30 16:47    [W:0.195 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site