From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752080AbaEWMJw (ORCPT ); Fri, 23 May 2014 08:09:52 -0400 Received: from cantor2.suse.de ([195.135.220.15]:58087 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413AbaEWMJv (ORCPT ); Fri, 23 May 2014 08:09:51 -0400 Date: Fri, 23 May 2014 14:09:48 +0200 From: Michal Hocko To: Greg Thelen Cc: Andrew Morton , Johannes Weiner , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Tejun Heo , Hugh Dickins , LKML , linux-mm@kvack.org Subject: Re: [PATCH] memcg: deprecate memory.force_empty knob Message-ID: <20140523120948.GA22135@dhcp22.suse.cz> References: <1399994956-3907-1-git-send-email-mhocko@suse.cz> <20140519140248.GD3017@dhcp22.suse.cz> <20140519155018.GF3017@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140519155018.GF3017@dhcp22.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 19-05-14 17:50:18, Michal Hocko wrote: > On Mon 19-05-14 16:02:48, Michal Hocko wrote: > > On Fri 16-05-14 15:00:16, Greg Thelen wrote: > [...] > > > -- First, demonstrate that just rmdir, without memory.force_empty, > > > temporarily hides reparented child memory stats. > > > > > > $ /test > > > p/memory.stat:rss 0 > > > p/memory.stat:total_rss 69632 > > > p/c/memory.stat:rss 69632 > > > p/c/memory.stat:total_rss 69632 > > > For a small time the p/c memory has not been reparented to p. > > > p/memory.stat:rss 0 > > > p/memory.stat:total_rss 0 > > > > OK, this is a bug. Our iterators skip the children because css_tryget > > fails on it but css_offline still not done. Recent cgroup changes distinguish css_tryget and css_tryget_online (http://marc.info/?l=linux-kernel&m=140025648704805). So we will only need to use css_tryget rather than the _online variant in __mem_cgroup_iter_next. I guess this is what Johannes was talking about. -- Michal Hocko SUSE Labs