Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757354Ab2HQKKP (ORCPT ); Fri, 17 Aug 2012 06:10:15 -0400 Received: from mx2.parallels.com ([64.131.90.16]:34321 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300Ab2HQKKL (ORCPT ); Fri, 17 Aug 2012 06:10:11 -0400 Message-ID: <502E17C4.7060204@parallels.com> Date: Fri, 17 Aug 2012 14:07:00 +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: Michal Hocko CC: , , , , Johannes Weiner , Andrew Morton , , Christoph Lameter , "David Rientjes" , Pekka Enberg , "Pekka Enberg" , Suleiman Souhlal Subject: Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children References: <1344517279-30646-1-git-send-email-glommer@parallels.com> <1344517279-30646-10-git-send-email-glommer@parallels.com> <20120817090005.GC18600@dhcp22.suse.cz> <502E0BC3.8090204@parallels.com> <20120817093504.GE18600@dhcp22.suse.cz> In-Reply-To: <20120817093504.GE18600@dhcp22.suse.cz> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1328 Lines: 29 On 08/17/2012 01:35 PM, Michal Hocko wrote: >>> Above you said "Once enabled, can't be disabled." and now you can >>> > > disable it? Say you are a leaf group with non accounted parents. This >>> > > will clear the flag and so no further accounting is done. Shouldn't >>> > > unlimited mean that we will never reach the limit? Or am I missing >>> > > something? >>> > > >> > >> > You are missing something, and maybe I should be more clear about that. >> > The static branches can't be disabled (it is only safe to disable them >> > from disarm_static_branches(), when all references are gone). Note that >> > when unlimited, we flip bits, do a transversal, but there is no mention >> > to the static branch. > My little brain still doesn't get this. I wasn't concerned about static > branches. I was worried about memcg_can_account_kmem which will return > false now, doesn't it. > Yes, it will. If I got you right, you are concerned because I said that can't happen. But it will. But I never said that can't happen. I said (ok, I meant) the static branches can't be disabled. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/