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] PoD: Handle operations properly when domain is d

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] PoD: Handle operations properly when domain is dying
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Wed, 11 Nov 2009 18:12:16 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Wed, 11 Nov 2009 10:12:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d6b6a89e-3f42-499d-8a19-fd574dab7a16@default>
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: <de76405a0911110708i2956c3f0j3b60e63aaa89234c@xxxxxxxxxxxxxx> <d6b6a89e-3f42-499d-8a19-fd574dab7a16@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acpi43rQHgftG+KLS+am7Oz9QMhRKgAFXwTQ
Thread-topic: [Xen-devel] [PATCH] PoD: Handle operations properly when domain is dying
> A possibly related issue came up in a team discussion
> yesterday.  It is not uncommon for management tools to
> check available memory to decide if there is sufficient
> space to provision a new domain, for example when choosing
> a machine on which to start a new domain.  But there is
> no "lock" so if the answer is yes and the machine
> is chosen, but moments later some memory becomes used
> (by PoD or ballooning or ???), domain creation might
> fail due to insufficient memory.

In the xapi toolstack world we assume that all domains on a host will be able 
to balloon down to their "dynamic_min" and use this in our host-choosing logic. 
We bias the choice of host towards the ones with the most memory free... but 
ultimately if the guests don't respond then we'll still get an out-of-memory 
error.

We're also writing/debugging a host ballooning daemon which you can ask to 
reserve memory for stuff like a domain creation. It asks the domains to balloon 
down and then makes sure they stay down by setting maxmem. I'm in the middle of 
writing up how it's supposed to work, I'll send a link around for comments when 
I have a draft.

> Tmem has a "freeze" feature to avoid this problem, but
> tmem has the advantage that all domains will continue
> to function even if tmem is frozen... I'm not sure
> that's true for PoD.

This sounds interesting -- do you have a link to a document somewhere?

Cheers,
Dave

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