From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: linux-mm@kvack.org, balbir@linux.vnet.ibm.com, xemul@openvz.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] memcg: end migration fix (was [bad page] memcg: another bad page at page migration (2.6.26-rc5-mm3 + patch collection))
Date: Tue, 24 Jun 2008 16:19:03 +0900 [thread overview]
Message-ID: <20080624161903.238eb868.nishimura@mxp.nes.nec.co.jp> (raw)
In-Reply-To: <20080624145127.539eb5ff.kamezawa.hiroyu@jp.fujitsu.com>
On Tue, 24 Jun 2008 14:51:27 +0900, KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> Hi, Nishimura-san. thank you for all your help.
>
> I think this one is......hopefully.
>
I hope so too :)
I think the corner case that this patch fixes is likely
in my case(there may be other cases though..).
I'm testing this one now.
> ==
>
> In general, mem_cgroup's charge on ANON page is removed when page_remove_rmap()
> is called.
>
> At migration, the newpage is remapped again by remove_migration_ptes(). But
> pte may be already changed (by task exits).
> It is charged at page allocation but have no chance to be uncharged in that
> case because it is never added to rmap.
>
I think "charged by mem_cgroup_prepare_migration()" is more precise.
> Handle that corner case in mem_cgroup_end_migration().
>
>
Thanks,
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-06-24 7:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 5:53 [bad page] memcg: another bad page at page migration (2.6.26-rc5-mm3 + patch collection) Daisuke Nishimura
2008-06-23 6:08 ` KAMEZAWA Hiroyuki
2008-06-23 11:21 ` KAMEZAWA Hiroyuki
2008-06-23 11:44 ` Daisuke Nishimura
2008-06-24 1:37 ` Daisuke Nishimura
2008-06-24 3:22 ` KAMEZAWA Hiroyuki
2008-06-24 3:26 ` KAMEZAWA Hiroyuki
2008-06-24 5:51 ` [PATCH] memcg: end migration fix (was [bad page] memcg: another bad page at page migration (2.6.26-rc5-mm3 + patch collection)) KAMEZAWA Hiroyuki
2008-06-24 7:19 ` Daisuke Nishimura [this message]
2008-06-24 7:30 ` KAMEZAWA Hiroyuki
2008-06-24 7:27 ` Balbir Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080624161903.238eb868.nishimura@mxp.nes.nec.co.jp \
--to=nishimura@mxp.nes.nec.co.jp \
--cc=balbir@linux.vnet.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox