We used to fix to 1 GB dom0''s RAM memory using command xm mem-set. Can I change the parameter of xm mem-set to a newone without restarting xend or xendomains or other daemon? -- Regards; Israel Garcia _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Oct 27, 2009 at 6:55 AM, Israel Garcia <igalvarez@gmail.com> wrote:> We used to fix to 1 GB dom0''s RAM memory using command xm mem-set. Can > I change the parameter of xm mem-set to a newone without restarting > xend or xendomains or other daemon?Yes, assuming it''s less than dom0_mem value (if you have it) on grub.conf''s xen.gz line. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Oct 27, 2009 at 10:51 AM, Israel Garcia <igalvarez@gmail.com> wrote:> Hi fajar, > > Suppose I have set the command "xm mem-set Domain-0 1024" at boot > time, now I want to increase or decrease this amount of memory, How > can i do this? running again e.g "xm mem-set Domain-0 512"? I tried > but get this error: > > "a domain cannot go above the amount of memory that it originally booted > with."It should work. try "xm mem-set 0 512M". What does "xm list 0" currently show? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/26/09, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Tue, Oct 27, 2009 at 10:51 AM, Israel Garcia <igalvarez@gmail.com> wrote: >> Hi fajar, >> >> Suppose I have set the command "xm mem-set Domain-0 1024" at boot >> time, now I want to increase or decrease this amount of memory, How >> can i do this? running again e.g "xm mem-set Domain-0 512"? I tried >> but get this error: >> >> "a domain cannot go above the amount of memory that it originally booted >> with." > > It should work. try "xm mem-set 0 512M". > What does "xm list 0" currently show?dom0:~# xm li 0 Name ID Mem VCPUs State Time(s) Domain-0 0 712 4 r----- 497149.9 regards, Israel.> > -- > Fajar >-- Regards; Israel Garcia _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Oct 27, 2009 at 11:23 AM, Israel Garcia <igalvarez@gmail.com> wrote:>>> running again e.g "xm mem-set Domain-0 512"? I tried >>> but get this error: >>> >>> "a domain cannot go above the amount of memory that it originally booted >>> with." >> >> It should work. try "xm mem-set 0 512M". >> What does "xm list 0" currently show? > > dom0:~# xm li 0 > Name ID Mem VCPUs State Time(s) > Domain-0 0 712 4 r----- 497149.9Can you run "xm mem-set 0 512M"? Here''s what I get on my setup (different memory amount, but same idea) xen02 ~ # xm list 0 Name ID Mem VCPUs State Time(s) Domain-0 0 768 2 r----- 18321.6 xen02 ~ # xm mem-set 0 750M xen02 ~ # xm list 0 Name ID Mem VCPUs State Time(s) Domain-0 0 750 2 r----- 18322.7 -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Can you run "xm mem-set 0 512M"? > Here''s what I get on my setup (different memory amount, but same idea) > > xen02 ~ # xm list 0 > Name ID Mem VCPUs State > Time(s) > Domain-0 0 768 2 r----- > 18321.6 > xen02 ~ # xm mem-set 0 750M > xen02 ~ # xm list 0 > Name ID Mem VCPUs State > Time(s) > Domain-0 0 750 2 r----- > 18322.7Hi 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? thanks tons regards Israel.> > -- > Fajar >-- Regards; Israel Garcia _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Oct 27, 2009 at 12:47 PM, Israel Garcia <igalvarez@gmail.com> 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@lists.xensource.com http://lists.xensource.com/xen-users