Re: [PATCH 2/2] HWPOISON: Attempt directed shrinking of slabs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. The likelyhood of the shaking having any effect
is quite low.

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.

Maybe the best idea is to first call drop_slab() instead (evicts all possible fs
objects) and then call kmem_cache_shrink().




--
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>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]