Re: [PATCH] Caches that shrink automatically

From: Linus Torvalds (torvalds@transmeta.com)
Date: Sun Aug 04 2002 - 13:43:16 EST


On Sun, 4 Aug 2002, Andreas Gruenbacher wrote:
>
> Currently there is no way for modules to define dynamically sized caches that
> shrink upon memory pressure. We need this for implementing Extended Attribute
> caches on ext2, ext3, and ReiserFS. Other caches could also make use of the
> same mechanism (e.g., nfsd's permission cache, dcache, icache, dqache).

This is what the slablru patches should do.. Any slab user should be able
to get a callback when the LRU decides that the page seems to be unused.

                Linus

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



This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:25 EST