From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx174.postini.com [74.125.245.174]) by kanga.kvack.org (Postfix) with SMTP id 283E46B004D for ; Wed, 25 Jul 2012 11:23:45 -0400 (EDT) Date: Wed, 25 Jul 2012 10:23:40 -0500 (CDT) From: Christoph Lameter Subject: Re: [PATCH v4 24/25] memcg/slub: shrink dead caches In-Reply-To: <5009D8D8.6040509@parallels.com> Message-ID: References: <1340015298-14133-1-git-send-email-glommer@parallels.com> <1340015298-14133-25-git-send-email-glommer@parallels.com> <5009D8D8.6040509@parallels.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Glauber Costa Cc: linux-mm@kvack.org, Pekka Enberg , David Rientjes , cgroups@vger.kernel.org, devel@openvz.org, kamezawa.hiroyu@jp.fujitsu.com, linux-kernel@vger.kernel.org, Frederic Weisbecker , Suleiman Souhlal , Pekka Enberg , Michal Hocko , Johannes Weiner On Fri, 20 Jul 2012, Glauber Costa wrote: > > This is the same btw in SLAB which keeps objects in per cpu caches and > > keeps empty slab pages on special queues. > > > >> This patch marks all memcg caches as dead. kmem_cache_shrink is called > >> for the ones who are not yet dead - this will force internal cache > >> reorganization, and then all references to empty pages will be removed. > > > > You need to call this also for slab to drain the caches and free the pages > > on the empty list. > > > Doesn't the SLAB have a time-based reaper for that? Yes but it will take a couple of minutes to drain the caches. -- 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/ . Don't email: email@kvack.org