Re: [PATCH] Caches that shrink automatically

Linus Torvalds (torvalds@transmeta.com)
Sun, 4 Aug 2002 11:43:16 -0700 (PDT)


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/