On Thu, Mar 5, 2009 at 9:03 AM, Mick Jordan <[email protected]> wrote:
> On 03/05/09 02:52, Bernd Schemmer wrote:
>>
>> Hi,
>>
>> AFAIK as I know you can only shrink the memory for DomU and not add
>> additional memory to it.
>>
> Not true. You can change the maximum memory with "xm mem-max". no-limit
> would be setting it to the max ram on the machine. You can't reduce the max
> memory below the original maxmem specified in the domain configuration file.
> If maxmem isn't specified, it defaults to memory. Here's part of my typical
> config file:
>
> # Initial memory allocation (in megabytes) for the new domain.
> memory = 256
> maxmem = 1024
>
> Given this I can "xm mem-set" up to 1024 while the domain is running. I can
> then do "xm mem-max 2048" to up the limit and then "xm mem-set" up to 2048.
> I can "xm mem-max" anywhere between 1024 and up, but not lower.

Note that the guest OS needs to support raising the memory above the
original allocation.  Solaris currently does not support this.  Xen
will allocate memory to the domain, but the memory will not be used.

The last time I looked (which was a long time ago), Linux did not
support this either.

-Ryan

>
> Mick
>
>
>
>
> _______________________________________________
> xen-discuss mailing list
> [email protected]
>
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to