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

hi
I try to do it in the xen-3.1.0,but it does NOT work,or are there something I should do?
   does it work in the xen-3.1.0?
the config file:
kernel = "/boot/vmlinuz-2.6.16-xenU"
memory = 256
maxmem = 512
name = "dom7"
vcpus = 1
vif = [ '' ]
disk = [ 'file:/vm/dom7.img,sda1,w' ]
netmask = "255.255.0.0"
gateway = "192.168.150.1"
hostname = "domp"
ip = "192.168.100.202"
root = "/dev/sda1 ro"
extra = "4"
extra = "mem = 512M"

what should I do?
could you help me

Thanks in advance





Jayson Vantuyl 写道:
I'm not sure.

I use it on 3.0.4-tip.  I do not know if it works with earlier versions.

On May 15, 2007, at 6:47 PM, tgh wrote:

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

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