From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: Re: [RFC/PATCH] cgroup swap subsystem In-Reply-To: Your message of "Thu, 6 Mar 2008 21:56:56 +0900 (JST)" <6197904.1204808216900.kamezawa.hiroyu@jp.fujitsu.com> References: <6197904.1204808216900.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Message-Id: <20080312225740.315FD1E703E@siro.lan> Date: Thu, 13 Mar 2008 07:57:40 +0900 (JST) From: yamamoto@valinux.co.jp (YAMAMOTO Takashi) Sender: owner-linux-mm@kvack.org Return-Path: To: kamezawa.hiroyu@jp.fujitsu.com Cc: nishimura@mxp.nes.nec.co.jp, linux-mm@kvack.org, containers@lists.osdl.org, hugh@veritas.com, balbir@linux.vnet.ibm.com, xemul@openvz.org List-ID: > >> At first look, remembering mm struct is not very good. > >> Remembering swap controller itself is better. > > > >The swap_cgroup when the page(and page_cgroup) is allocated and > >the swap_cgroup when the page is going to be swapped out may be > >different by swap_cgroup_move_task(), so I think swap_cgroup > >to be charged should be determined at the point of swapout. > > > Accounting swap against an entity which allocs anon memory is > not strange. Problem here is move_task itself. > Now, charges against anon is not moved when a task which uses it > is moved. please fix this behavior first if you think this is > problematic. > > But, finally, a daemon driven by process event connector > determines the group before process starts using anon. It's > doubtful that it's worth to add complicated/costly ones. > > > Thanks, > -Kame doesn't PEC work asynchronously and allows processes to use anonymous memory before being moved by the daemon? YAMAMOTO Takashi -- 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