From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757525Ab2IDSWz (ORCPT ); Tue, 4 Sep 2012 14:22:55 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:35486 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757428Ab2IDSWy (ORCPT ); Tue, 4 Sep 2012 14:22:54 -0400 Date: Tue, 4 Sep 2012 11:22:54 -0700 From: Tejun Heo To: Michal Hocko Cc: Glauber Costa , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Dave Jones , Ben Hutchings , Peter Zijlstra , Paul Turner , Lennart Poettering , Kay Sievers , Kamezawa Hiroyuki , Johannes Weiner Subject: Re: [PATCH v2] memcg: first step towards hierarchical controller Message-ID: <20120904182254.GA3638@dhcp-172-17-108-109.mtv.corp.google.com> References: <1346687211-31848-1-git-send-email-glommer@parallels.com> <20120903170806.GA21682@dhcp22.suse.cz> <5045BD25.10301@parallels.com> <20120904130905.GA15683@dhcp22.suse.cz> <504601B8.2050907@parallels.com> <20120904143552.GB15683@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120904143552.GB15683@dhcp22.suse.cz> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Sep 04, 2012 at 04:35:52PM +0200, Michal Hocko wrote: ... > The problem is that we don't know whether somebody has an use case which > cannot be transformed like that. Therefore this patch starts the slow > transition to hierarchical only memory controller by warning users who > are using flat hierarchies. The warning triggers only if a subgroup of > non-root group is created with use_hierarchy==0. > > Signed-off-by: Michal Hocko I think this could work as the first step. Regardless of the involved steps, the goal is 1. finding out whether there are use cases or users of flat hierarchy (ugh... even the name is stupid :) and 2. if so, push them to stop doing that and give them time to do so. While userland growing "echo 1" to use_hierarchy isn't optimal, it isn't the end of the world and something which can be taken care of by the distros. That said, I don't see how different this is from the staged way I suggested other than requiring "echo 1" instead of a mount option. At any rate, the two aren't mutually exclusive and this looks good to me. Thanks. -- tejun