[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0903310925130.24040@qirst.com>
Date: Tue, 31 Mar 2009 09:26:26 -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 Mon, 30 Mar 2009, David Rientjes wrote:
> @@ -3833,7 +3830,9 @@ static ssize_t order_store(struct kmem_cache *s,
> if (order > slub_max_order || order < slub_min_order)
> return -EINVAL;
>
> + thrash_ratio = s->min_free_watermark * 100 / oo_objects(s->oo);
> calculate_sizes(s, order);
> + s->min_free_watermark = oo_objects(s->oo) * thrash_ratio / 100;
> return length;
> }
>
Hmmm.. Still calculating the trash ratio based on existing objects per
slab and then resetting the objects per slab to a different number.
Shouldnt the trash_ratio simply be zapped to an initial value if the
number of objects per slab changes?
--
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