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] extra = "mem=1024" and maxmem

To: Jayson Vantuyl <jvantuyl@xxxxxxxxxxxxxx>, Denny Schierz <linuxmail@xxxxxxxx>
Subject: Re: [Xen-users] extra = "mem=1024" and maxmem
From: tgh <tianguanhua@xxxxxxxxxx>
Date: Wed, 16 May 2007 10:02:15 +0800
Cc: "'xen-users@xxxxxxxxxxxxxxxxxxx'" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 15 May 2007 19:00:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <464A62BA.3000000@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46499CCE.8090701@xxxxxxxx> <3FF3FEC2-D0AD-48F5-9B89-591B114EEF12@xxxxxxxxxxxxxx> <464A62BA.3000000@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
hi
I am sorry for misspelling It does not work in xen-3.0.3 ,I missed the NOT in the last mail

Does it work in xen-3.0.4,or what should I do?

Thanks



tgh 写道:
hi
I am using xen-3.0.3,and I try to set "memory" and "maxmem" following your discussion,but it does work as expected
Does it only work in xen-3.0.4 and later version,or what should I do ?

could you help me
Thanks in advance


Jayson Vantuyl 写道:
There are really three options.


'extra= "mem=1024"' tells the kernel inside of the domain that it only has a 1GB of memory. This is really not the way to do this. Instead use memory=1024.

"maxmem" tells the hypervisor and the kernel inside of the domain how large it could get. This can be adjusted at any time, but Linux domains don't use it after boot time. The advantage of using this option is that the Linux inside of the domain sizes its internal tables so it can grow to that size. This means that you can dynamically change the amount of memory available inside of the domain.

For example, if you have these options for a domain:

memory=1024
maxmem=4096

You will have the kernel boot up with 1GB of memory. At any point you can increase it to, for example, 2 GB with this command:

xm mem-set <domain> 2048

The kernel will automagically increase to 2GB of RAM. This is, as you might imagine, extremely cool.

Also, you can always size down a domain below its initial RAM usage to free up memory it is not using, which can be handy on busy or complex production servers.

On May 15, 2007, at 4:43 AM, Denny Schierz wrote:

hi,

what is the different between the domU config parameter:

[...]
extra = "mem=1024"
[..]


and

[...]
maxmem="1024"
[...]

is maxmem only available on 3.0.4 and later?

cu denny

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



--
Jayson Vantuyl
Systems Architect
*Engine Yard <http://www.engineyard.com>*
jvantuyl@xxxxxxxxxxxxxx <mailto:jvantuyl@xxxxxxxxxxxxxx>


------------------------------------------------------------------------

_______________________________________________
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





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