From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-mm <linux-mm@kvack.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.28-rc4 mem_cgroup_charge_common panic
Date: Thu, 13 Nov 2008 11:17:02 +0900 [thread overview]
Message-ID: <20081113111702.9a5b6ce7.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <1226527376.4835.8.camel@badari-desktop>
On Wed, 12 Nov 2008 14:02:56 -0800
Badari Pulavarty <pbadari@us.ibm.com> wrote:
> On Tue, 2008-11-11 at 11:09 +0900, KAMEZAWA Hiroyuki wrote:
> > On Tue, 11 Nov 2008 10:14:40 +0900
> > KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> >
> > > On Mon, 10 Nov 2008 13:43:28 -0800
> > > Badari Pulavarty <pbadari@us.ibm.com> wrote:
> > >
> > > > Hi KAME,
> > > >
> > > > Thank you for the fix for online/offline page_cgroup panic.
> > > >
> > > > While running memory offline/online tests ran into another
> > > > mem_cgroup panic.
> > > >
> > >
> > > Hm, should I avoid freeing mem_cgroup at memory Offline ?
> > > (memmap is also not free AFAIK.)
> > >
> > > Anyway, I'll dig this. thanks.
> > >
> > it seems not the same kind of bug..
> >
> > Could you give me disassemble of mem_cgroup_charge_common() ?
> > (I'm not sure I can read ppc asm but I want to know what is "0x20"
> > of fault address....)
> >
> > As first impression, it comes from page migration..
> > rc4's page migration handler of memcg handles *usual* path but not so good.
> >
> > new migration code of memcg in mmotm is much better, I think.
> > Could you try mmotm if you have time ?
>
> I tried mmtom. Its even worse :(
>
> Ran into following quickly .. Sorry!!
>
>From
> Instruction dump:
> 794b1f24 794026e4 7d6bda14 7d3b0214 7d234b78 39490008 e92b0048 39290001
> f92b0048 419e001c e9230008 f93c0018 <f9090008> f9030008 f9480008 48000018
the reason doesn't seem to be different from the one you saw in rc4.
We'do add_list() hear, so (maybe) used page_cgroup is zero-cleared, I think.
We usually do migration test on cpuset and confirmed this works with migration.
Hmm...I susupect following. could you try ?
Sorry.
-Kame
==
Index: mmotm-2.6.28-Nov10/mm/page_cgroup.c
===================================================================
--- mmotm-2.6.28-Nov10.orig/mm/page_cgroup.c
+++ mmotm-2.6.28-Nov10/mm/page_cgroup.c
@@ -166,7 +166,7 @@ int online_page_cgroup(unsigned long sta
end = ALIGN(start_pfn + nr_pages, PAGES_PER_SECTION);
for (pfn = start; !fail && pfn < end; pfn += PAGES_PER_SECTION) {
- if (!pfn_present(pfn))
+ if (!pfn_valid(pfn))
continue;
fail = init_section_page_cgroup(pfn);
}
--
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-11-13 2:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-10 21:43 Badari Pulavarty
2008-11-11 1:14 ` KAMEZAWA Hiroyuki
2008-11-11 2:09 ` KAMEZAWA Hiroyuki
2008-11-12 22:02 ` Badari Pulavarty
2008-11-13 1:09 ` KAMEZAWA Hiroyuki
2008-11-13 2:17 ` KAMEZAWA Hiroyuki [this message]
2008-11-13 18:53 ` Badari Pulavarty
2008-11-14 4:10 ` KAMEZAWA Hiroyuki
2008-11-17 21:30 ` Badari Pulavarty
2008-11-18 1:08 ` KAMEZAWA Hiroyuki
2008-11-13 11:27 ` [BUGFIX][PATCH] memory hotplug: fix notiier chain return value (Was Re: 2.6.28-rc4 mem_cgroup_charge_common panic) KAMEZAWA Hiroyuki
2008-11-13 17:11 ` Badari Pulavarty
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=20081113111702.9a5b6ce7.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pbadari@us.ibm.com \
/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