From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id CE8098D0069 for ; Fri, 21 Jan 2011 02:46:59 -0500 (EST) Date: Fri, 21 Jan 2011 16:45:30 +0900 From: Daisuke Nishimura Subject: Re: [PATCH 3/7] memcg : fix mem_cgroup_check_under_limit Message-Id: <20110121164530.4cf9d01f.nishimura@mxp.nes.nec.co.jp> In-Reply-To: <20110121154141.680c96d9.kamezawa.hiroyu@jp.fujitsu.com> References: <20110121153431.191134dd.kamezawa.hiroyu@jp.fujitsu.com> <20110121154141.680c96d9.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: KAMEZAWA Hiroyuki Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "hannes@cmpxchg.org" , "balbir@linux.vnet.ibm.com" , "akpm@linux-foundation.org" , Daisuke Nishimura List-ID: On Fri, 21 Jan 2011 15:41:41 +0900 KAMEZAWA Hiroyuki wrote: > From: KAMEZAWA Hiroyuki > > Current memory cgroup's code tends to assume page_size == PAGE_SIZE > but THP does HPAGE_SIZE charge. > > This is one of fixes for supporing THP. This modifies > mem_cgroup_check_under_limit to take page_size into account. > > Total fixes for do_charge()/reclaim memory will follow this patch. > > TODO: By this reclaim function can get page_size as argument. > So...there may be something should be improvoed. > > Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Daisuke Nishimura -- 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/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org