[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xm mem-set on a running dom0



On Tue, Oct 27, 2009 at 12:47 PM, Israel Garcia <igalvarez@xxxxxxxxx> wrote:
> Hi Fajar,
> You're right, it worked. :-)
>
> last question, in case of changing memory (increase/decrease) to
> domU's I must change the .cfg file and restart domU? Or I can use
> command xm mem-set?

xm mem-set is enough for it to take effect immediately. To have it
persistent on next domU boot, you also need to edit domU config. You
don't have to restart domU. This method has a limitation though: you
can shrink, but you can't grow beyond initial allocation.

If you want to grow domU memory beyond initial allocation (only for PV
guests), you need to prepare it first:
- have old-style kernel-xen (I use the one from RHEL)
- have domU config with something like this

#=================================
memory = "500"
maxmem = "8000"
#=================================

with that domU will start with 500MB, but you can increase its memory
later up to 8000MB.

I also like to add these:

#=================================
vcpus=8
vcpu_avail=1
cpus="1-7"
#=================================

with that domU will start with 1 vcpu, but you can increase it later
up to 8 vcpus.
Note that memory and maxmem has been available for a long time, but
vcpu_avail is kinda new (check whether you have it with "xm create
--help_config").

-- 
Fajar

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.