From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id DDD206B00C8 for ; Wed, 3 Jun 2009 11:28:57 -0400 (EDT) Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail7.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id n538MFP2003485 for (envelope-from kamezawa.hiroyu@jp.fujitsu.com); Wed, 3 Jun 2009 17:22:16 +0900 Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 5AC9F45DE61 for ; Wed, 3 Jun 2009 17:22:15 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 34D7F45DE57 for ; Wed, 3 Jun 2009 17:22:15 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id D26EFE08015 for ; Wed, 3 Jun 2009 17:22:14 +0900 (JST) Received: from ml13.s.css.fujitsu.com (ml13.s.css.fujitsu.com [10.249.87.103]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 4896BE08008 for ; Wed, 3 Jun 2009 17:22:14 +0900 (JST) Date: Wed, 3 Jun 2009 17:20:39 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCH mmotm 2/2] memcg: allow mem.limit bigger than memsw.limit iff unlimited Message-Id: <20090603172039.71e6df7c.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20090603140102.72b04b6f.nishimura@mxp.nes.nec.co.jp> References: <20090603114518.301cef4d.nishimura@mxp.nes.nec.co.jp> <20090603115027.80f9169b.nishimura@mxp.nes.nec.co.jp> <20090603125228.368ecaf7.kamezawa.hiroyu@jp.fujitsu.com> <20090603140102.72b04b6f.nishimura@mxp.nes.nec.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Daisuke Nishimura Cc: LKML , linux-mm , Andrew Morton , Balbir Singh , Li Zefan , Paul Menage List-ID: On Wed, 3 Jun 2009 14:01:02 +0900 Daisuke Nishimura wrote: > On Wed, 3 Jun 2009 12:52:28 +0900, KAMEZAWA Hiroyuki wrote: > > On Wed, 3 Jun 2009 11:50:27 +0900 > > Daisuke Nishimura wrote: > > > > > Now users cannot set mem.limit bigger than memsw.limit. > > > This patch allows mem.limit bigger than memsw.limit iff mem.limit==unlimited. > > > > > > By this, users can set memsw.limit without setting mem.limit. > > > I think it's usefull if users want to limit memsw only. > > > They must set mem.limit first and memsw.limit to the same value now for this purpose. > > > They can save the first step by this patch. > > > > > > > I don't like this. No benefits to users. > > The user should know when they set memsw.limit they have to set memory.limit. > > This just complicates things. > > > Hmm, I think there is a user who cares only limitting logical memory(mem+swap), > not physical memory, and wants kswapd to reclaim physical memory when congested. > At least, I'm a such user. > > Do you disagree even if I add a file like "memory.allow_limit_memsw_only" ? > We can it _now_. Thanks, -Kame -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org