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] I need some answers please

To: xen-users@xxxxxxxxxxxxxxxxxxx, Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] I need some answers please
From: inas mohamed <inas_2003@xxxxxxxxx>
Date: Tue, 8 Mar 2011 00:52:19 -0800 (PST)
Cc:
Delivery-date: Tue, 08 Mar 2011 00:53:16 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1299574339; bh=+nQyhZD3GCN7u26ZRk9IoQF3QUrEmgXGmc8ZQXXjpls=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=pZah4IywSIPDiFb60PI6iCu8xQqltKKMtnIDPFM9o3nEnZ4vgYD4M7F6MMsyiODbgrIXCDeY6iCMhUefZq9rKG1uwSmmxGhOXKVHU6LpnbCoSRfs8U2ETdTKzYXgrrrNPeX/PXkZsIAc5KFrECGcxBtsCmIypDQpG9FlxlWvsdg=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=59xP286BJsHGNSuJJSsCJNcFxVKBdtghckYN+v72xxoURnX+QekUBQWO6+XGcPqt8W6sW/v7dRmA6SqCBVFPQLn/RcVStvg9ROVaf+PdIvJc7f4fFTeb8DOe5kw9Leylrtk3xjrk13XENpvmabhC+QaSH2ajQl4FdK114gcZ//o=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <p0624084dc99b8a2e450d@xxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks for all, 

1. But if this is the case what is the benefit of using a resource pool??

2. You said if VM is down it will release the RAM. why when I tried to find free memory on the host (using free -m) I am not be able to see more free memory? actually even the total memory is not correct.So, the correct question is how to find the total and free physical memory on XCP host??

Thanks again for helping me. 

--- On Tue, 3/8/11, Simon Hobson <linux@xxxxxxxxxxxxxxxx> wrote:

From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] I need some answers please
To: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Tuesday, March 8, 2011, 9:34 AM

inas mohamed wrote:

> 1. when I create a VM I am allocating memory for this one, my question is : Is this memory is reserved to that VM even if it is down?and if yes how can I use this memory for another VM while it is down?

The memory is reserved for the VM while it is running, but is available if the VM is stopped. I believe that at the moment, there is no dynamic memory usage - ie you cannot overcommit and have memory automatically moved between VMs.

But there is a mechanism called ballooning which allows memory to be dynamically altered (at least for PV guests, not sure about HV guests) - so you can manually balloon down memory on one guest and reuse it in another. I think there is work going on with a view to automating this, but if you stop and think what's involved, it's a very non-trivial task.

> 2. If I have xen host with 12G RAM and I want to create 3 VMs on that host what is the maximum value for RAM size I can use to leave enough memory for the XEN host to work fine?

Depending what you are doing in the host, about 512M should be fine. It's worth adding a "dom0_mem=512M" statement in your bootloader* so that the Dom0 kernel sets it's table sizes according to the memory it will be using rather than the memory in themachine.

* As in "kernel  /xen-x.x.x-amd64.gz dom0_mem=512M"

> 3.If many hosts joined a pool lets say 3 hosts each with 12G RAM and each one has its local SR (no shared storage). Can I create a VM with more than 12G RAM and specify a sr of one host for it?

No, you cannot share ram across hosts. On a host with 12G ram, you'll be limited to something like 11G for a single VM - allowing 1/2G for the host itself, and some overhead (not sure how much) for Xen.


When setting up your guest, it is worth setting "memory" and "mexmem" - memory is how much the guest will be started with, mexmem is the upper limit it can be ballooned to.

Using the old style config files, it would be set like this - dunno about XCP :
memory  = '256'
maxmem  = '512'

-- Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

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

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