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-users

Re: [Xen-users] Xen 4.0 memory overcommitment

To: Antoine Benkemoun <antoine.benkemoun@xxxxxxxxx>
Subject: Re: [Xen-users] Xen 4.0 memory overcommitment
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Thu, 29 Apr 2010 19:58:20 +0300
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 29 Apr 2010 09:59:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <k2wfc1cbedb1004211323m450aeb9cr99e8f0978ca1dd48@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <k2wfc1cbedb1004211323m450aeb9cr99e8f0978ca1dd48@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Apr 21, 2010 at 10:23:39PM +0200, Antoine Benkemoun wrote:
>    Hello,
> 
>    I am running a functional Xen 4.0 platform. The objective is the project I
>    am currently running is to replace 4 VMWare ESX by 4 Xen 4.0 hypervisors.
>    I have been able to reproduce all the core VMWare features in Xen (but
>    better of course =D) except memory overcommitment.
>

What do you exactly mean with memory overcommitment here? 

Xen supports memory ballooning, but it has never really supported memory 
overcommit,
by design. 

Memory in Xen guests is guaranteed to be real memory, so the guests will perform
well using it. If you need some virtual/overcommitted memory just add more swap 
to the guest.
 
>    I know this feature has been included since Xen 3.3 but I have found
>    almost no information about it.
> 

I don't think Xen 3.3 has any kind of memory overcommit.

>    When I try to start a domain with more RAM then is available on the server
>    I get the following message :
> 
>    VmError: I need 1433600 KiB, but dom0_min_mem is 200704 and shrinking to
>    200704 KiB would leave only 1348320 KiB free.
> 

See: 
http://wiki.xensource.com/xenwiki/XenBestPractices

You should use dom0_mem= parameter for xen.gz to dedicate a fixed amount
of memory for dom0.

>    Well I know it doesn't have enough RAM, that's the whole point. Do I need
>    to enable something specific somewhere ? I am using the Jeremy's 2.6.31
>    kernel (thank you whoever you may be !).
> 
>    Thank you in advance for your help,
> 

Xen 4.0 actually added some forms of memory overcommit, tmem and hvm guest
memory page sharing (de-duplication).

See: http://wiki.xensource.com/xenwiki/Xen4.0

-- Pasi


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

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