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

Re: [Xen-devel] Re: how to change the memory size of a VM


  • To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • From: Jia Rao <rickenrao@xxxxxxxxx>
  • Date: Mon, 2 Nov 2009 16:46:23 -0500
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 02 Nov 2009 13:47:03 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Ua/SvVnzOUMOFv6P5qpGJJCcJLZmq/QF3f7jGT2SewdFumGdLhXJVeW2rx7T+3NxE7 R9GjDMU0f3mmJqGm4mihZcyvgpnAXDiqWnqWahmGgFNyKX39U58aHLB8Clj6B8xfAUYw RG3IUhj3iSoc4siyUgDvjjXpI/tmsTMCbB3Zo=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

What I understand here is:

Although configured with 2GB memory, the guest only used part of the assigned memory(active onees), gives the unused memory back to xen.
Upon reconfigured to 1GB, the guest got informed from xenstore about the new size, and updates its own view of the memory info, like the number in /proc/meminfo.

Is it correct ?

On Mon, Nov 2, 2009 at 4:37 PM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
On 02/11/2009 20:54, "Jia Rao" <rickenrao@xxxxxxxxx> wrote:

> It seems that to change the memory size of a VM, you just need to save the new
> size in somewhere, xenstore?
> How would the new size take effect? the memory mapping of the VM must be
> modified somewhere.

The VM itself gives up memory back to Xen, after reading the updated memory
size from xenstore.

 -- Keir



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

 


Rackspace

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