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] memory quesion

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] memory quesion
From: Paras pradhan <pradhanparas@xxxxxxxxx>
Date: Fri, 11 Dec 2009 16:57:21 -0600
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 11 Dec 2009 14:58:45 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=tNbp0RBNNolwnbqcV2R+6x8Ov1GOrwF4zW6l9xD2Kdg=; b=YUo3lsEEyc4CptFV34jaB6ixktXihev3qWwCrdsPzzu1flxBzviFxE0mybz8krQT6F AaZM7CGGkYrUbi0Lx/W+eND9KCP3eEVwP9VY60V3Bj2VmdXYtn10uFBGQwWY2jOcdzQX EaGW128qoQIdlC8Ki6dmEXu4YZKXHZemUH13M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eKkEcYFNpU25ju8P8GoM02A6zy9UxCLgDUEffqW2hvj2jS46JT8yp0+9M1cvHoTMm3 5UI/0QwkXDi56jxFiE9UoLwu96G4JGRqOLIYrENKoBEDd96q3zUnZJv1ppr10RTQRczq dz3EV7j39OjT/GAAF/FRutZpACn/jHRx7Gz14=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0912111416q5b678befsc9523a43090b6e58@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: <8b711df40912111023v4684d7efw64e8bd464dd15e74@xxxxxxxxxxxxxx> <alpine.LRH.0.9999.0912111519300.27205@xxxxxxxxxxxxxxxxxxx> <8b711df40912111228p5a2b90b0r1d7d4dae3561a48e@xxxxxxxxxxxxxx> <7207d96f0912111416q5b678befsc9523a43090b6e58@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

On Fri, Dec 11, 2009 at 4:16 PM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
On Sat, Dec 12, 2009 at 3:28 AM, Paras pradhan <pradhanparas@xxxxxxxxx> wrote:
>>> My system has 64GB of Physical RAM. When I boot the system with Xen
>>> kernel,
>>> I can see only 32GB assigned to dom0. my xm info o/p is;
>>>
>>> total_memory           : 65530
>>> free_memory            : 31513
>>>
>>> My understanding is when the system is booted with xen kernel, all of the
>>> memory should be assigned to dom0.

No, it shouldn't. In fact, it's actually best practice to LIMIT the
ammount of dom0 memory from the start.

>>>
>>> Os is: RH 5.4 64bit.
>>
>> This is a limitation of the Xen kernel; only 32GB will be visible to Dom0.
>> The "missing" 32GB can still be allocated to DomU's, however.

AFAIK it's a "limitation" of RHEL's kernel-xen. They did it for a very
good reason though: providing a usable dom0 system on servers with >=
32GB memory.

For a dom0 to be usable and stable, i guess 32 GB of memory is not needed. Around 1GB should be enough(?) and this 1 GB is set using dom0_mem=1Gb param? correct me if i am wrong.

 

You could probably override that behavior with some kernel command
line options, but it's not recommended.

> Do I need mem=64G in grub or not ?

If you plan to have some domUs running on it, you can leave it as it
is. domU will be able to use the 32GB currently not in use by dom0.

In fact, domUs can also use some memory currently used by dom0, so if
already have an idea how much memory domUs will be using in total, you
can (later) limit dom0 memory usage to start with less memory (I
usually set it to somewhere between 500M - 1G).

So is it still true that domU can use memory more than 32GB whereas it is showing up only 32G? I will having around 20 virtual machines and each will use 1 to 2 CPU and 2 GB of RAM.

So,  i need some suggestions here.

Thanks !
Paras.

 

--
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>