From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751765AbZBQEmm (ORCPT ); Mon, 16 Feb 2009 23:42:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750971AbZBQEmd (ORCPT ); Mon, 16 Feb 2009 23:42:33 -0500 Received: from e28smtp02.in.ibm.com ([59.145.155.2]:50777 "EHLO e28smtp02.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbZBQEmd (ORCPT ); Mon, 16 Feb 2009 23:42:33 -0500 Date: Tue, 17 Feb 2009 10:12:22 +0530 From: Balbir Singh To: KAMEZAWA Hiroyuki Cc: linux-mm@kvack.org, Sudhir Kumar , YAMAMOTO Takashi , Bharata B Rao , Paul Menage , lizf@cn.fujitsu.com, linux-kernel@vger.kernel.org, KOSAKI Motohiro , David Rientjes , Pavel Emelianov , Dhaval Giani , Rik van Riel , Andrew Morton Subject: Re: [RFC][PATCH 0/4] Memory controller soft limit patches (v2) Message-ID: <20090217044222.GE20958@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: <20090216110844.29795.17804.sendpatchset@localhost.localdomain> <20090217090523.975bbec2.kamezawa.hiroyu@jp.fujitsu.com> <20090217030526.GA20958@balbir.in.ibm.com> <20090217130352.4ba7f91c.kamezawa.hiroyu@jp.fujitsu.com> <20090217132039.3504cd3d.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20090217132039.3504cd3d.kamezawa.hiroyu@jp.fujitsu.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * KAMEZAWA Hiroyuki [2009-02-17 13:20:39]: > On Tue, 17 Feb 2009 13:03:52 +0900 > KAMEZAWA Hiroyuki wrote: > > > > > 2. I don't like to change usual direct-memory-reclaim path. It will be obstacles > > > > for VM-maintaners to improve memory reclaim. memcg's LRU is designed for > > > > shrinking memory usage and not for avoiding memory shortage. IOW, it's slow routine > > > > for reclaiming memory for memory shortage. > > > > > > I don't think I agree here. Direct reclaim is the first indication of > > > shortage and if order 0 pages are short, memcg's above their soft > > > limit can be targetted first. > > > > > My "slow" means "the overhead seems to be big". The latency will increase. > > > > About 0-order > > In patch 4/4 > > + did_some_progress = mem_cgroup_soft_limit_reclaim(gfp_mask); > > + /* > > should be > > if (!order) > > did_some_progress = mem.... > above is wrong. > > if (!order && (gfp_mask & GFP_MOVABLE)) ....Hmm, but this is not correct. > I have no good idea to avoid unnecessary works. > > BTW, why don't you call soft_limit_reclaim from kswapd's path ? > I think it has to be both kswapd and pdflush path, I can consider that option as well. That needs more thought on the design. -- Balbir