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] Error restoring DomU when using GPLPV

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Error restoring DomU when using GPLPV
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Tue, 4 Aug 2009 19:01:51 +1000
Cc: Joshua West <jwest@xxxxxxxxxxxx>
Delivery-date: Tue, 04 Aug 2009 02:02:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C69DAE01.11421%keir.fraser@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D016DE055@trantor> <C69DAE01.11421%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoUog43ZhCRzTxFSPuGfTBNvaTQKgAAoXawAAfYLBAAAY5aQAADuI5wAADcjpYAATfpwA==
Thread-topic: [Xen-devel] Error restoring DomU when using GPLPV
> 
> On 04/08/2009 08:58, "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
wrote:
> 
> > When the DomU is running, 'xm debug q' looks like:
> >
> > (XEN) General information for domain 23:
> > (XEN)     refcnt=3 dying=0 nr_pages=197611 xenheap_pages=33
> > dirty_cpus={1} max_pages=197632
> >
> > During restore, it looks like this:
> > (XEN) General information for domain 22:
> > (XEN)     refcnt=3 dying=0 nr_pages=196576 xenheap_pages=5
dirty_cpus={}
> > max_pages=197632
> 
> Is the host simply out of memory?

No. 5G physical memory free and there is only 768MB assigned to the
DomU. I can start the guest again, I just can't restore it.

> If dom22 above has 196576 pages and
> max_pages=197632 then an allocation of 33 order-0 extents should not
fail
> due to over-commitment to the guest.

196576 is just where it happened to be when I took the last 'xm debug
q', before 'xm restore' failed and deleted it. The allocation of '33'
returns '32' so it does appear to be an off-by-one error.

> The only reason for such a failure is
> inadequate memory available in the host free pools. Perhaps xend
> auto-ballooning is involved? I'd turn it off if so, as it blows. It
could
> have freed up one-page-too-few or somesuch.

I assume that what happens is that the memory continues to grow until it
hits max_pages, for some reason.  Is there a way to tell 'xm restore'
not to delete the domain when the restore fails so I can see if nr_pages
really does equal max_pages at the time that it dies?

The curious thing is that this only happens when GPLPV is running. A PV
domU or a pure HVM DomU doesn't have this problem (presumably that would
have been noticed during regression testing). It would be interesting to
try a PVonHVM Linux DomU and see how that goes... hopefully someone who
having the problem with GPLPV also has PVonHVM domains they could test.

James



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