Thread (38 messages) 38 messages, 4 authors, 2014-06-04

Re: [PATCH -mm 5/8] slab: remove kmem_cache_shrink retval

From: Christoph Lameter <cl@gentwo.org>
Date: 2014-06-03 14:48:56
Also in: linux-mm

On Tue, 3 Jun 2014, Vladimir Davydov wrote:
Still, I really want to evict all empty slabs from cache on memcg
offline for sure. Handling failures there means introducing a worker
that will retry shrinking, but that seems to me as an unnecessary
complication, because there's nothing that can prevent us from shrinking
empty slabs from the cache, even if we merge slab defragmentation, isn't
it?

May be, it's worth introducing a special function, say kmem_cache_zap(),
that will only evict empty slabs from the cache, plus disable empty
slabs caching? This function would be called only from memcg offline for
dead memcg caches.
I am fine with the lower impact version that you came up with later.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help