From mboxrd@z Thu Jan 1 00:00:00 1970 From: Balbir Singh Subject: Re: [BUGFIX][RFC][PATCH][only -mm] FIX memory leak in memory cgroup vs. page migration [0/1] Date: Wed, 17 Oct 2007 02:33:28 +0530 Message-ID: <47152720.2020007@linux.vnet.ibm.com> References: <20071002183031.3352be6a.kamezawa.hiroyu@jp.fujitsu.com> Reply-To: balbir-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20071002183031.3352be6a.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: "containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org" , "linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org" , Christoph Lameter List-Id: containers.vger.kernel.org KAMEZAWA Hiroyuki wrote: [snip] > # migrate_test mmaps 512Mfile and call system call move_pages(). and sleep. > [root@drpq kamezawa]# ./migrate_test 512Mfile 1 & > [1] 4108 This step fails for me. I get an -ENOENT error from the utility you sent me. As I look through the migration code more (It's too late for me to double check), but it seems that only pages mapped in the process are migrated. cat(1) won't really map anything. Am I missing some of the reproduction steps? > #At the end of migration, > [root@drpq kamezawa]# cat /opt/mem_control/group_?/memory.usage_in_bytes > 539738112 > 537706496 > > #Wow, charge is twice ;) -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL