WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [RFH] xen domain0 failover stuff

To: Don Zickus <dzickus@xxxxxxxxxx>
Subject: Re: [Xen-devel] [RFH] xen domain0 failover stuff
From: Chris Wright <chrisw@xxxxxxxxxxxx>
Date: Thu, 30 Mar 2006 21:48:12 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 31 Mar 2006 05:48:49 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20060330213511.GB4802@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060327220842.GG9941@xxxxxxxxxx> <cea9bc0da1c55019f130fb0245ce9e25@xxxxxxxxxxxx> <20060330213511.GB4802@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
* Don Zickus (dzickus@xxxxxxxxxx) wrote:
> Continuing on my project to get a domain0 to failover to a second domain0,
> I have stumbled upon an out of memory problem.  Does anyone know what type
> of quirky scenario I would have had to create in order to have
> xen_create_contiguous_region() fail within
> swiotlb_init_with_default_size() of the linux x86_64 kernel?  

Sounds like nothing other than running low on that amount of contiguous
pages.

CTRL-a CTRL-a CTRL-a m

Typing that should show you what's available, I suspect it's less than
the swiotlb is asking for.

> I have managed to debug it down to alloc_heap_pages(MEMZONE_DMADOM, order)
> returning NULL.  But my problem is I couldn't figure out how those heaps
> were created in the first place.  

Boot time, IIRC.

> This domain is supposed to be configured with 256MB of memory (and "xm
> list" confirms that).  So for the actual domain to run out of memory seems
> illogical.  

It's the swiotlb asking for too large an order allocation.  You can
certainly limit it to smth small like 1MB (swiotlb=1 on dom0 kernel
command line) and hope that's sufficient.  Hmm, wonder if there would
be a way to reuse those pages from the first dom0.

thanks,
-chris

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel