From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 11 Mar 2008 18:07:46 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCH 2/2] Make res_counter hierarchical Message-Id: <20080311180746.6d665013.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <47D6451A.7090807@openvz.org> References: <47D16004.7050204@openvz.org> <20080308134514.434f38f4.kamezawa.hiroyu@jp.fujitsu.com> <47D63FBC.1010805@openvz.org> <20080311173225.937935eb.kamezawa.hiroyu@jp.fujitsu.com> <47D6451A.7090807@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Pavel Emelyanov Cc: Balbir Singh , Paul Menage , Daisuke Nishimura , Linux Containers , Linux MM List-ID: On Tue, 11 Mar 2008 11:38:50 +0300 Pavel Emelyanov wrote: > >> > >> + -- > >> + -- > >> | + -- > >> | + -- > >> | | + -- > >> | + -- > >> | + -- > >> + -- > >> | + -- > >> | + -- > >> | | + -- > >> | + -- > >> | + -- > >> + -- > >> + -- > >> + -- > >> | + -- > >> + -- > >> + -- > >> > > please let me confirm. > > > > - swap_counter_X.limit can be defined independent from mem_counter_X.limit ? > > - swap_conter_N1's limit and swap_counter_N's have some relationship ? > > No. The mem_counter_N_limit is the limit for all the memory, that the > Nth group consumes. This includes the RSS, page cache and swap for this > group and all the child groups. Since RSS and page cache are accounted > together, this limit tracks the sum of (memory + swap) values over the > subtree started at the given group. > Hmm, how should I set limit to allow "tons of swap but small limit to memory". 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