From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 29 Nov 2007 10:37:02 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCH][for -mm] per-zone and reclaim enhancements for memory controller take 3 [3/10] per-zone active inactive counter Message-Id: <20071129103702.cbc5cf73.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <1196284799.5318.34.camel@localhost> References: <20071127115525.e9779108.kamezawa.hiroyu@jp.fujitsu.com> <20071127120048.ef5f2005.kamezawa.hiroyu@jp.fujitsu.com> <1196284799.5318.34.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Lee Schermerhorn Cc: Andrew Morton , "balbir@linux.vnet.ibm.com" , "yamamoto@valinux.co.jp" , "linux-mm@kvack.org" , "containers@lists.osdl.org" , LKML , Christoph Lameter List-ID: On Wed, 28 Nov 2007 16:19:59 -0500 Lee Schermerhorn wrote: > As soon as this loop hits the first non-existent node on my platform, I > get a NULL pointer deref down in __alloc_pages. Stack trace below. > > Perhaps N_POSSIBLE should be N_HIGH_MEMORY? That would require handling > of memory/node hotplug for each memory control group, right? But, I'm > going to try N_HIGH_MEMORY as a work around. > Hmm, ok. (>_< > Call Trace: > [] show_stack+0x80/0xa0 > sp=a0000001008e39c0 bsp=a0000001008dd1b0 > [] show_regs+0x870/0x8a0 > sp=a0000001008e3b90 bsp=a0000001008dd158 > [] die+0x190/0x300 > sp=a0000001008e3b90 bsp=a0000001008dd110 > [] ia64_do_page_fault+0x8e0/0xa20 > sp=a0000001008e3b90 bsp=a0000001008dd0b8 > [] ia64_leave_kernel+0x0/0x270 > sp=a0000001008e3c20 bsp=a0000001008dd0b8 > [] __alloc_pages+0x30/0x6e0 > sp=a0000001008e3df0 bsp=a0000001008dcfe0 > [] new_slab+0x610/0x6c0 > sp=a0000001008e3e00 bsp=a0000001008dcf80 > [] get_new_slab+0x50/0x200 > sp=a0000001008e3e00 bsp=a0000001008dcf48 > [] __slab_alloc+0x2e0/0x4e0 > sp=a0000001008e3e00 bsp=a0000001008dcf00 > [] kmem_cache_alloc_node+0x180/0x200 > sp=a0000001008e3e10 bsp=a0000001008dcec0 > [] mem_cgroup_create+0x160/0x400 > sp=a0000001008e3e10 bsp=a0000001008dce78 > [] cgroup_init_subsys+0xa0/0x400 > sp=a0000001008e3e20 bsp=a0000001008dce28 > [] cgroup_init+0x90/0x160 > sp=a0000001008e3e20 bsp=a0000001008dce00 > [] start_kernel+0x700/0x820 > sp=a0000001008e3e20 bsp=a0000001008dcd80 > Maybe zonelists of NODE_DATA() is not initialized. you are right. I think N_HIGH_MEMORY will be suitable here...(I'll consider node-hotplug case later.) Thank you for test! Regards, -Kame -- 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