Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760060AbYFIKeV (ORCPT ); Mon, 9 Jun 2008 06:34:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759189AbYFIKeN (ORCPT ); Mon, 9 Jun 2008 06:34:13 -0400 Received: from E23SMTP01.au.ibm.com ([202.81.18.162]:41175 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759126AbYFIKeM (ORCPT ); Mon, 9 Jun 2008 06:34:12 -0400 Message-ID: <484D070D.4010209@linux.vnet.ibm.com> Date: Mon, 09 Jun 2008 16:03:49 +0530 From: Balbir Singh Reply-To: balbir@linux.vnet.ibm.com Organization: IBM User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: KAMEZAWA Hiroyuki CC: "linux-mm@kvack.org" , LKML , "menage@google.com" , "xemul@openvz.org" , "yamamoto@valinux.co.jp" Subject: Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3) References: <20080604135815.498eaf82.kamezawa.hiroyu@jp.fujitsu.com> <484CF82E.1010508@linux.vnet.ibm.com> <20080609185505.4259019f.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20080609185505.4259019f.kamezawa.hiroyu@jp.fujitsu.com> 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: 2423 Lines: 71 KAMEZAWA Hiroyuki wrote: > On Mon, 09 Jun 2008 15:00:22 +0530 > Balbir Singh wrote: > >> KAMEZAWA Hiroyuki wrote: >>> Hi, this is third version. >>> >>> While small changes in codes, the whole _tone_ of code is changed. >>> I'm not in hurry, any comments are welcome. >>> >>> based on 2.6.26-rc2-mm1 + memcg patches in -mm queue. >>> >> Hi, Kamezawa-San, >> >> Sorry for the delay in responding. Like we discussed last time, I'd prefer a >> shares based approach for hierarchial memcg management. I'll review/try these >> patches and provide more feedback. >> > Hi, > > I'm now totally re-arranging patches, so just see concepts. > > In previous e-mail, I thought that there was a difference between 'your share' > and 'my share'. So, please explain again ? > > My 'share' has following characteristics. > > - work as soft-limit. not hard-limit. > - no limit when there are not high memory pressure. > - resource usage will be proportionally fair to each group's share (priority) > under memory pressure. > My share is very similar to yours. A group might have a share of 100% and a hard limit of 1G. In this case the hard limit applies if the system has more than 1G of memory. I think of hard limit as the final controlling factor and shares are suggestive. Yes, my shares also have the same factors, but can be overridden by hard limits. > If you want to work on this, I can stop this for a while and do other important > patches, like background reclaim, mlock limitter, guarantee, etc.. because my > priority to hierarchy is not very high (but it seems better to do this before > other misc works, so I did.). > I do, but I don't want to stop you from doing it. mlock limitter is definitely important, along with some control for large pages. Hierarchy is definitely important, since we cannot add other major functionality without first solving this proble, After that, High on my list is 1. Soft limits 2. Performance/space trade-offs > Anyway, we have to test the new LRU (RvR LRU) at first in the next -mm ;) Yes :) I just saw that going in -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL -- 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/