From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752447Ab2GYSSI (ORCPT ); Wed, 25 Jul 2012 14:18:08 -0400 Received: from mx2.parallels.com ([64.131.90.16]:37906 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752394Ab2GYSSG (ORCPT ); Wed, 25 Jul 2012 14:18:06 -0400 Message-ID: <501037B0.7060602@parallels.com> Date: Wed, 25 Jul 2012 22:15:12 +0400 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Christoph Lameter CC: , Pekka Enberg , David Rientjes , , , , , "Frederic Weisbecker" , Suleiman Souhlal , Pekka Enberg , Michal Hocko , Johannes Weiner Subject: Re: [PATCH v4 24/25] memcg/slub: shrink dead caches References: <1340015298-14133-1-git-send-email-glommer@parallels.com> <1340015298-14133-25-git-send-email-glommer@parallels.com> <5009D8D8.6040509@parallels.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [109.173.1.99] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/25/2012 07:23 PM, Christoph Lameter wrote: > 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. > You might have seen in my last submission that included this in the slab as well.