Thread (3 messages) 3 messages, 2 authors, 2002-09-15

Re: [PATCH] ageable slab callbacks

From: Ed Tomlinson <hidden>
Date: 2002-09-15 23:54:25

On September 15, 2002 07:44 pm, Andrew Morton wrote:
Hi, Ed.
Geez, I did miss alot didn't I?  Thanks for the review, I will
eyeball the next one much more carefully.
Ed Tomlinson wrote:
quoted
Hi,

This lets the vm use callbacks to shrink ageable caches.   With this we
avoid having to change vmscan if an ageable cache family is added.  It
also batches calls to the prune methods (SHRINK_BATCH).
I do believe it would be better to move the batching logic into
slab.c and not make the individual cache implementations have
to know about it.  Just put the accumulators into cachep-> and
only call the shrinker when the counter reaches the threshold
Yes it would be better.  Problem is how to find the number of entries in
the cache we want to prune.  We could ask the shrink callback return
this when passed a zero in ratio - I do not like dual purpose functions
that much though...

Thanks,

Ed

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help