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] domU unable to release memory to dom0

To: Sandesh <sandesh.ahiremath@xxxxxxxxx>
Subject: Re: [Xen-devel] domU unable to release memory to dom0
From: Luke S Crawford <lsc@xxxxxxxxx>
Date: 08 Jul 2008 15:58:39 -0400
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 08 Jul 2008 12:59:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1215544643.9133.18.camel@ec4t16cg-1518809>
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: <1215544643.9133.18.camel@ec4t16cg-1518809>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
Sandesh <sandesh.ahiremath@xxxxxxxxx> writes:
>   i want to know when exactly does the memory get released back to dom0
> when domU is shutdown are destroyed. Actually i was just playing with
> the code, and it so happened that now when i shutdown/destroy my domU
> memory is not getting released back to dom0. The bad part is that even
> after undoing all the changes the problem persists..

>From what I understand, when a XenU exits, it frees the memory back to the
xen free pool, but does not automatically baloon that ram back to the Dom0.

look at 'xm info'  -  is the ram from the DomU being sent back to the 
free_memory  pool?

if so, and you want the ram back in the Dom0, just 'xm mem-set 0 [megabytes]'

Personally, I have had some problems with balooning the Dom0 up and down, so
I set dom0_mem on the kernel command line and  dom0-min-mem 
in xend-config.sxp to the same value.  I don't ever do anything in the Dom0
anyhow, so there is no reason to keep free ram in the Dom0 rather than the
free pool.  

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

<Prev in Thread] Current Thread [Next in Thread>