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] [PATCH] Domain creation 4MB memory allocation

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Michal Novotny" <minovotn@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Domain creation 4MB memory allocation
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Wed, 01 Apr 2009 10:06:58 +0100
Cc:
Delivery-date: Wed, 01 Apr 2009 02:42:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49D31CA1.4090103@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/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: <49D31CA1.4090103@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Michal Novotny <minovotn@xxxxxxxxxx> 01.04.09 09:49 >>>
>Hi,
>I've found some problems when running 2 guests with and then trying to 
>install a new machine (no matter whether using virt-manager or 
>virt-install). I am attaching a patch that fixes this problem.
>
>I was working on 8G box and I have done those things:
> 1. xm create PVguest maxmem=2500 memory=2500
> 2. xm create FVguest maxmem=2500 memory=2500
> 3. virt-install -l http://path/to/install/ -r 2500 -v --nodisks -n 
>someGuestName
>
>Before applying this patch it returned "Cannot allocate memory" error 
>but after applying my patch it created a new domain and started 
>installation well but it's reproducible sometimes and not everytime.

This is just curing (actually not really curing, just reducing the likelihood of
its occurrence) a symptom, rather than the root cause: What if 4Mb turn
out to be insufficient for someone else on some other machine? In order
to guarantee hvm guest creation to be possible (at least in the case
where shadow paging is to be used - not sure about NPT/EPT's
requirements), there has to be a way to guarantee some small amount
of contiguous memory being available in Xen. Ballooning cannot guarantee
this, and after a longer period of up-time with many guests starting and
dying even using dom0_mem= on the Xen command line doesn't help due
to fragmentation being unavoidable.

Jan


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

<Prev in Thread] Current Thread [Next in Thread>