On Wed, Oct 06, 2010 at 04:26:47PM -0500, Christoph Lameter wrote: > On Wed, 6 Oct 2010, Andi Kleen wrote: > > > When a slab page is found try to shrink the specific slab first > > before trying to shrink all slabs and call other shrinkers. > > This can be done now using the new kmem_page_cache() call. > > What you really would need here is targeted reclaim or the ability to move > objects into other slabs. Yes I know, but that is the first step. > The likelyhood of the shaking having any effect > is quite low. Depends on the workload I guess. > > The calling of the shrinkers is much more effective but it only works for > certain slabs. This is a broad shot against all slabs. It would be best to > call the fs shrinkers before kmem_cache_shrink(). You have to call > kmem_cache_shrink afterwards anyways because the slabs may keep recently > emptied slab pages around. The fs shrinkers may have evicted the objects > but the empty slab page is still around. We currently call the shrinking in a loop, similar to other users. -Andi -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>