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] memory=x & maxmem=y

On Tue, 22 May 2007 13:26:09 +1000
Brad Plant <bplant@xxxxxxxxxxxx> wrote:

> On Mon, 21 May 2007 21:56:22 -0500 (CDT)
> Paul Archer <tigger@xxxxxx> wrote:
> 
> > After doing some more research, I finally found out what's going on.
> > In order to allocate more memory to a domU, it has to be freed from
> > somewhere else first. In other words, if memory=256 and maxmem=512,
> > then before you run 'xm mem-set mydomU 512', you have to run 'xm
> > mem-set 0 <current memory for dom0 - 256>'.
> > I suppose this would work just as well by taking the memory from
> > another domU (or some combination of domU's and dom0), but I haven't
> > tried that.
> 
> I don't think this is the issue here since the dom0 memory usage will
> balloon down automatically to free up more RAM for the domU. When I
> attempted to get this to work yesterday, dom0 had over 2GB of RAM
> allocated to it, so it had heaps to spare when it ballooned down.
> 
> The problem isn't with trying to allocate memory to a domU, it is
> with trying to get domU to use or recognise the extra memory. I was
> able to allocate the extra memory ok, but running free -m in the domU
> would not show the extra memory as being available.

Sorry Paul, you were right. It seems that dom0 didn't automatically balloon 
down to free up the extra ram. I am now passing the dom0_mem variable to the 
hypervisor so that I don't have to worry about reducing its usage first.

Cheers,

Brad

Attachment: signature.asc
Description: PGP signature

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