From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Harper Subject: Re: Numa=on broken? Date: Fri, 4 May 2007 08:38:21 -0500 Message-ID: <20070504133821.GS27552@us.ibm.com> References: <20070503231005.GP27552@us.ibm.com> <94C8C9E8B25F564F95185BDA64AB05F605025EC7@USTR-EXCH5.na.uis.unisys.com> <20070504133314.GR27552@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Y1L3PTX8QE8cb2T+" Return-path: Content-Disposition: inline In-Reply-To: <20070504133314.GR27552@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ryan Harper Cc: "Subrahmanian, Raj" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Y1L3PTX8QE8cb2T+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Ryan Harper [2007-05-04 08:34]: > * Subrahmanian, Raj [2007-05-04 01:23]: > > Ryan, > > I did check out the mail discussion where you encountered and fixed > > this. > > I am seeing this again on 15009, unstable and in 15021 3.1. rc7. > > I have included the debug messages in both runs. > > Hrm, well, we need to see which node the request is failing in so we can > figure out how to initialize the heap. I'm attaching a patch that > should hopefully dump out which node the memory request is failing in. > > Last time, it was the xmalloc() in xen/common/page_alloc.c in > init_heap_pages(). > > Give this patch a spin and email me the output. Here is one that actually compiles. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 ryanh@us.ibm.com --Y1L3PTX8QE8cb2T+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="numa_debug.patch" diff -r 3a5722420de7 xen/common/page_alloc.c --- a/xen/common/page_alloc.c Thu May 03 19:25:47 2007 +0100 +++ b/xen/common/page_alloc.c Fri May 04 08:36:42 2007 -0500 @@ -353,6 +353,8 @@ static struct page_info *alloc_heap_page ASSERT(zone_lo <= zone_hi); ASSERT(zone_hi < NR_ZONES); + printk("%s: request for node %d\n", __func__, node); + if ( unlikely(order > MAX_ORDER) ) return NULL; @@ -543,8 +545,10 @@ void init_heap_pages( if ( !avail[nid_curr] ) { + printk("%s: attempting to initialize avail[%d]\n", __func__, nid_curr); avail[nid_curr] = xmalloc_array(unsigned long, NR_ZONES); memset(avail[nid_curr], 0, NR_ZONES * sizeof(long)); + printk("%s: attempting to initialize _heap[%d]\n", __func__, nid_curr); _heap[nid_curr] = xmalloc(heap_by_zone_and_order_t); init_heap_block(_heap[nid_curr]); } --Y1L3PTX8QE8cb2T+ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Y1L3PTX8QE8cb2T+--