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] how much memory does the hypervisor need

Subject: Re: [Xen-users] how much memory does the hypervisor need
From: Thomas Goirand <thomas@xxxxxxxxxx>
Date: Wed, 18 Feb 2009 12:55:34 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Feb 2009 20:56:23 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=goirand.fr; h=message-id: date:from:mime-version:cc:subject:references:in-reply-to: content-type:content-transfer-encoding; q=dns/txt; s=postfix; bh= 6c3+06rizieuvAsTi17i78XzOg8=; b=pqhBanePJcYe8Tk3m9zvH6YCarKpVlsl lsJibGFjvvhH+yXS58DPAawvYAjyhJZU4Fe7k3dguFI9GPV2+3r1KJW0EJ0EQCmt OVGGwmMtHfEVkMzG1gv1R1OpOuSYz4hdevqUoSGSn8ETSD7MrE+/Pk8DNfh43si0 S4ukawTU9HM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=goirand.fr; h=message-id:date:from:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=postfix; b= YSDx9Zm5ZVYFpKwi9+0FuiQkJrByrVKg8oOx/UKI5CppgAuP6BMwVo/fn9Hkg/o2 H9s7NFcfnMJsQcFJbY74uBtjE7r91GoP04juxVwsN336Qjha2kSwGaEE43ue/AHn 5fpIE/zfTGL0c3RdSNo4/qWObAbKu8fXS7fWwhnAAvc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <DDDB8E86-A169-48D6-9987-9C0D285941EA@xxxxxxxxxxx>
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>
Openpgp: id=98EF9A49
Organization: GPLHost
References: <DDDB8E86-A169-48D6-9987-9C0D285941EA@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
Philipp Schmid wrote:
> so if i take the 16384mb of ram minus the used space and the space xen
> sys it still has i get:
> 
> 16384 - 14037 - 1930744/1024 ~= 461.5mb
> 
> does the hypervisor really need 460mb of memory?
> is there a way to calculate how much memory the hypervisior needs?
> 
> lg philipp


There is no need to do such calculation. Type "xm info" and it will tell
you how much memory you have left. But anyway, I don't think that Xen is
wrong when it tells you there is not enough RAM left.

If you wish to resize the dom0, you can do like this:

xm mem-set Domain-0 384

This will set your dom0 with 384 MB of RAM, which is quite enough if you
don't run too many things in the dom0. At the time of xen 2.0.7, with
sarge, we used to set 128 MB of RAM, and it was quite ok. Now, with
newer operating systems, 384 MB seems to be a reasonable value with
which we never have issues (note that we set 512 MB of swap).

As said Gary, a good idea is to set the dom0 memory footprint in your
grub config, and/or NOT let it baloon out too much (for example by
setting the minimum in xend-config.sxp).

Best Regards,

    Thomas Goirand

-- 
Thomas Goirand
GPLHost CEO
Web: http://www.gplhost.com
GPLHost:>_ Open source hosting worldwide
Web spaces featuring our LGPL control panel and Xen VPS
Locations in Singapore, Sydney, Seattle, Florida, Paris, London,
             Barcelona and Israel

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

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