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] [PATCH] linux/balloon: don't allow ballooningdowna domai

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] linux/balloon: don't allow ballooningdowna domain below a reasonable limit
From: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Date: Thu, 1 May 2008 08:44:34 -0600
Cc: Ky Srinivasan <KSrinivasan@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, KurtGarloff <garloff@xxxxxxx>
Delivery-date: Thu, 01 May 2008 08:47:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C43F2977.18119%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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
Reply-to: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aciq2837Icx9f6ONQ8iHVW90S2iKiQAP/bIgAA9ev3oAD2pk8A==
> Can't vm_committed_space grow *bigger* than available memory 
> when using
> swap? It may indicate the 'static' demand for memory (in 
> terms of requested
> allocations so far) but we're interested in dynamic demand 
> (how much of that
> allocated memory is actually used), which afaics 
> vm_committed_space doesn't
> appear very useful for.
> 
> Some indication of paging churn, or average age of pages in memory, or
> something like that, would seem more useful (albeit 
> arbitrarily harder to
> work out from within the balloon driver!).
> 
> Maybe I'm missing something. I've only had a quick look at usage of
> vm_committed_space.

You are right about vm_committed_space growing bigger.  I was
too terse: I was trying to use it in a min(x,y,z) calculation
with the existing algorithm, but apparently it becomes too small
sometimes (e.g. during shutdown) and I observed OOM problems.

However vm_committed_space seems to be a pretty good dynamic demand
indicator in general.  Try watch'ing it in a window while doing
other tasks on a machine/VM, e.g.:

watch grep Committed_AS /proc/meminfo

It grows rapidly when memory hogs are launched and shrinks
rapidly when the machine goes idle.  So it seems to work
well for at least a first approximation for selfballooning.

Dan


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

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