From: Jia Rao Subject: Re: Re: how to change the memory size of a VM Date: Mon, 2 Nov 2009 16:46:23 -0500 Message-ID: <994429490911021346o32bfa7f1veb18ff063f73d91e@mail.gmail.com> References: <994429490911021254i5c6435d6sb58aef31b5c8043b@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0263420956==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0263420956== Content-Type: multipart/alternative; boundary=00032555a9a20e93dd04776a4f77 --00032555a9a20e93dd04776a4f77 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > On 02/11/2009 20:54, "Jia Rao" 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 > > > --00032555a9a20e93dd04776a4f77 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 fr= om 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 a= t 4:37 PM, Keir Fraser <keir.fraser@eu.citrix.com> wrote:
On 02/11/2009 20:54, "Jia Rao" <rickenrao@gmail.com> 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.

=A0-- Keir



--00032555a9a20e93dd04776a4f77-- --===============0263420956== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0263420956==--