Re: Large slab cache in 2.6.1

From: Nick Piggin
Date: Sun Feb 22 2004 - 19:32:41 EST




Linus Torvalds wrote:


On Sat, 21 Feb 2004, Andrew Morton wrote:

yeah. We should have made that change when making shrink_slab() ignore
highmem scanning.

Something like this (the function needs a rename)


Why not just pass in the list of zones? That way the _caller_ determines what zones he is interested in.

So just add a "struct zonelist *zonelist" as the argument, the same way "__alloc_pages()" has..



The caller might as well just pass in the total size of all
LRUs that it has scanned. It has to traverse the zones anyway,
and this enables it to take the size *before* shrinking, which
gives you a better number.

-
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/