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-devel

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

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: how to change the memory size of a VM
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=YyXyxObmR+TjJcsGa8W0ppzSyqe33UQ1+x0foXItNS4=; b=EB3g10VD3jtPFBdZlVexDPWgr8zWEnhHalL5sdNBhjdJ6K1zN89tQrR1xK4ft2aHre TV+cO5i9oI7e3IQwA/xhpj3lrZwxN6gWAZoTNHNDQMszJKJxaI+kWeVieFaHXQ8Rs4qM n0Cq56nkAZIdeUapMzUJjsf0Qm9aRpS31FEN4=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C71501B7.19048%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <994429490911021254i5c6435d6sb58aef31b5c8043b@xxxxxxxxxxxxxx> <C71501B7.19048%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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