From: Keir Fraser Subject: Re: That xenstored console leak... Date: Mon, 14 Jan 2008 21:54:50 +0000 Message-ID: References: <20080114214848.GB624@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080114214848.GB624@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: Jim Fehlig , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 14/1/08 21:48, "John Levon" wrote: >> Yes, device controllers clean up by deleting /vm//path/to/device. This >> aliases with the new domain's device information (because they're really the >> same vm) and so when the old domain is cleaned up the new domain loses >> information. Disambiguating with an extra level of indirection seemed the >> simplest fix for this. I'm not sure why this leads to xenstore leaks. >> >> When a domain is finally garbage collected in xend, perhaps we should delete >> its entire /vm//? That would seem a nice and reasonable >> catch-all. > > The lack of the latter explains the former - because each instance has a > unique /vm path, there's nothing that ever cleans up the older path > contents (image etc.). Right? I don't understand what you mean. There's no code to delete the entire /vm path, regardless of whether the path is /vm// or /vm/- (I'm pretty sure). And if there was, why would it be affected by the detail of what happens to be the domain's /vm path anyway? -- Keir