[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0903301026580.13333@qirst.com>
Date: Mon, 30 Mar 2009 10:30:41 -0400 (EDT)
From: Christoph Lameter <cl@...ux.com>
To: David Rientjes <rientjes@...gle.com>
cc: Pekka Enberg <penberg@...helsinki.fi>,
Nick Piggin <nickpiggin@...oo.com.au>,
Martin Bligh <mbligh@...gle.com>, linux-kernel@...r.kernel.org
Subject: Re: [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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists