From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Wright Subject: Re: Domains not being destroyed properly Date: Fri, 24 Jun 2011 14:36:17 +0100 Message-ID: <4E0492D1.1080308@overnetdata.com> References: <4DFB3A90.70707@overnetdata.com> <1308657108.6920.25.camel@zakaz.uk.xensource.com> <4E009530.2040108@overnetdata.com> <20110621133908.GE5650@dumpdata.com> <4E00B019.5090108@overnetdata.com> <1308671090.6920.89.camel@zakaz.uk.xensource.com> <4E00C0FC.1060305@overnetdata.com> <1308729414.6920.126.camel@zakaz.uk.xensource.com> <4E048921.8000201@overnetdata.com> <20110624130129.GB17634@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110624130129.GB17634@whitby.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: Ian Campbell , "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On 24/06/2011 14:01, Tim Deegan wrote: > Hi, > > At 13:54 +0100 on 24 Jun (1308923697), Anthony Wright wrote: >> The problem is that I don't think there's enough information available >> from watching @releaseDomain to implement a reaper well. The >> xenstore-watch on @releaseDomain only tells you that a domain has died >> (to make things more complicated I actually get two notifications when a >> domain get's shutdown), it doesn't tell you which domain has died. A >> reaper would have to maintain a list of domains as they were before the >> notification to compare against the list after the notification to be >> able to issue a notification for the domain that has died. > That sounds awfully fragile. It could get a list of all living domains > and reap qemus/xenstore data for any domain not in the list. (Or, more > safely, enumerate all qemus and xenstore entries and check for each > whether the domain is alive). Is this information still available after a domain has been destroyed? I was expecting that the watcher of @releaseDomain was only notified of a domain destruction after the domain had been completely destroyed so there would be no information amount the domain available any more. Are you saying the would still be qemus/xenstore information available for the domain, and if so how does it get tidied up? Anthony.