On Thu, 24 Feb 2000, Tigran Aivazian wrote:
> > I'm trying to implement a cache in a module.
>
> presumably you have investigated using general-purpose cache
> manager, i.e. slab allocator and found it to be inadequate for
> your specific needs?
No memory pressure is exerted on the slab cache, all we
do is agressively reclaim pages that contain unused
entries only...
I think registering a cache with do_try_to_free_pages()
is a good idea. It allows for a more flexible architecture
where drivers can register and unregister caches at their
whim and still have their caches shrunk on demand if there's
memory pressure.
The wanted long-term behaviour is that memory pressure on
caches is directly proportional to the amount of memory a
cache uses, but it's quite possible that the caches can
manage that themselves (with the help of some documentation).
regards,
Rik
-- The Internet is not a network of computers. It is a network of people. That is its real strength.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:10 EST