Re: slab: Remove SLAB_NO_REAP option

From: Pekka Enberg
Date: Thu Feb 23 2006 - 13:34:57 EST


On Thu, 2006-02-23 at 09:20 -0800, Christoph Lameter wrote:
> On Thu, 23 Feb 2006, Pekka J Enberg wrote:
>
> > We need _something_ to avoid excessive scanning of cache_cache. It takes a
> > hell of a lot insmod/rmmod to actually free a full page. Maybe something
> > like this (totally untested) patch?
>
> What excessive scanning of cache_cache? If the per cpu cache of
> cache_cache has been drained then there will be no scanning just an
> inspection if there are zero elements.

Look at the loop, it is redundant work (like acquiring/releasing a
spinlock). The cache_cache is practically static, which is why it makes
sense to leave it alone.

Pekka

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/