Mailing List Archive

Changing domain 0 memory
With no 0 domains, I can change the memory dedicated by:
1. Changing the appropriate line in the domain config file
2. Restarting the domain

Is it possible to do something similar with domain 0, without
rebooting the machine?

Something like:
1. Change the memory amount
2. Shutdown domain 0 to only XEN kernel
3. Restart domain 0

Kenneth Power

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: Changing domain 0 memory [ In reply to ]
You don't need to restart domains to change their memory allocation, this
includes dom0.

Use "xm balloon domid target-mb" to request a domain to "balloon" its memory
to the target value.

Use "xm maxmem domid max-mb" to subsequently tell Xen to prevent the domain
unballooning to more than "max-mb"

If you try to reduce a domain to something too small then it'll have out of
memory problems - just think twice when you balloon so you don't shoot
yourself in the foot ;-)

Cheers,
Mark

On Thursday 14 April 2005 19:00, Kenneth Power wrote:
> With no 0 domains, I can change the memory dedicated by:
> 1. Changing the appropriate line in the domain config file
> 2. Restarting the domain
>
> Is it possible to do something similar with domain 0, without
> rebooting the machine?
>
> Something like:
> 1. Change the memory amount
> 2. Shutdown domain 0 to only XEN kernel
> 3. Restart domain 0
>
> Kenneth Power
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: Changing domain 0 memory [ In reply to ]
vm-tools vm script will adjust your dom 0 size down in order to make
room for the create.

http://www.cs.utexas.edu/users/aliguori/vm-tools/

wm
================

Kenneth Power wrote:

>With no 0 domains, I can change the memory dedicated by:
> 1. Changing the appropriate line in the domain config file
> 2. Restarting the domain
>
>Is it possible to do something similar with domain 0, without
>rebooting the machine?
>
>Something like:
> 1. Change the memory amount
> 2. Shutdown domain 0 to only XEN kernel
> 3. Restart domain 0
>
>Kenneth Power
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@lists.xensource.com
>http://lists.xensource.com/xen-users
>
>
>

--
Sincerely, Woody Marvel LTC Open Source Projects Beaverton, OR
tel: 503-578-3833/775-3833 email: marvel@us.ibm.com
=======================================================================
"The branch is not only ever near the stem, but ever receiving life and fruitfulness from it." -- C.H.Spurgeon
=======================================================================



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