Re: Large slab cache in 2.6.1

Andrew Morton
2004-02-22T06:57:22Z

Nick Piggin <piggin@cyberone.com.au> wrote:
>
>
> Can you maybe use this patch then, please?

OK.

> +static unsigned int nr_lowmem_lru_pages(void)

heh, that's what I called it.

> + * Total number of items in each slab should be used, not just freeable ones.
> + * Unfreeable slab items should not count toward the scanning total.

That's up to the individual shrinkers. What we have for dcache and icache
is close enough. Most entries on inode_unused and dentry_unused should be
reclaimable, but checking that with some instrumentation wouldn't hurt.

> + if (i < ZONE_HIGHMEM)
> + *lowmem_scanned += nr_scanned;

yup.