From: Daisuke Nishimura Subject: Re: [PATCH 0/4] swapcgroup(v2) Date: Fri, 23 May 2008 11:10:29 +0900 Message-ID: <48362795.9020709@mxp.nes.nec.co.jp> References: <48350F15.9070007@mxp.nes.nec.co.jp> <20080522164421.84849565.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080522164421.84849565.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: KAMEZAWA Hiroyuki Cc: YAMAMOTO Takashi , Linux MM , Linux Containers , Hugh Dickins , Balbir Singh , Pavel Emelyanov List-Id: containers.vger.kernel.org On 2008/05/22 16:44 +0900, KAMEZAWA Hiroyuki wrote: > On Thu, 22 May 2008 15:13:41 +0900 > Daisuke Nishimura wrote: > >> Hi. >> >> I updated my swapcgroup patch. >> > seems good in general. > > Thanks :-) >> ToDo: >> - handle force_empty. > > Without this, we can do rmdir() against cgroup with swap. right ? > You are right. There are some cases that cgroup dir cannot be removed because there remains some swap usage even when no tasks remain in the dir. In such cases, the only way to remove the dir is currently to do swapoff. So, I think this is the most important todo. >> - make it possible for users to select if they use >> this feature or not, and avoid overhead for users >> not using this feature. >> - move charges along with task move between cgroups. >> > I think memory-controller's anon pages should also do this.... > But how do you think about shared entries ? > Yes. This is a big problem. I don't have any practical idea yet, but at least I think it should be avoided for some shared entry to be charged to different groups. Thanks, Daisuke Nishimura.