All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@novell.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com,
	"Daniel P. Berrange" <berrange@redhat.com>,
	John Levon <levon@movementarian.org>
Subject: Re: That xenstored console leak...
Date: Mon, 14 Jan 2008 16:49:20 -0700	[thread overview]
Message-ID: <478BF500.9050409@novell.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

Keir Fraser wrote:
> On 14/1/08 20:08, "John Levon" <levon@movementarian.org> wrote:
>
>   
>> I see the behaviour in 3.1 with HVM domains. If I live migrate twice,
>> then the MAC address is lost, and a new random one is generated:
>>
>> I don't have to do anything "special", this happens every time on 3.1. I
>> presume that the troublesome changeset fixes this exact problem.
>>     
>
> Yes, device controllers clean up by deleting /vm/<uuid>/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/<uuid>/<unique-number>? That would seem a nice and reasonable
> catch-all.
>   

Reverting changesets 15967 and 15957 in addition to the attached patch
fixes the leak and allows multiple localhost migrations.  I'm not sure
what we get by nuking /vm/<uuid>/device/vif/<dev_num> anyway - other
than the problems we're seeing :-). vif appears to be the only device
stored in the /vm/<uuid>/device path anyway.

I will continue testing with this setup ...

Jim


[-- Attachment #2: xenstore-leak.diff --]
[-- Type: text/x-patch, Size: 580 bytes --]

diff -r 533a8e6cebd0 tools/python/xen/xend/server/DevController.py
--- a/tools/python/xen/xend/server/DevController.py	Sat Jan 12 11:26:04 2008 +0000
+++ b/tools/python/xen/xend/server/DevController.py	Mon Jan 14 16:38:18 2008 -0700
@@ -237,7 +237,6 @@ class DevController:
                 xstransact.Remove(backpath)
             xstransact.Remove(frontpath)
 
-        self.vm._removeVm("device/%s/%d" % (self.deviceClass, dev))
 
     def configurations(self, transaction = None):
         return map(lambda x: self.configuration(x, transaction), self.deviceIDs(transaction))

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

             reply	other threads:[~2008-01-14 23:49 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 23:49 Jim Fehlig [this message]
2008-01-15  8:10 ` That xenstored console leak Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2008-01-18 23:14 Jim Fehlig
2008-01-18 23:18 ` Keir Fraser
2008-01-18 23:47   ` Jim Fehlig
2008-01-19  8:11     ` Keir Fraser
2008-01-25  2:00       ` Jim Fehlig
2008-01-25  7:44         ` Keir Fraser
     [not found]           ` <479A002E.6010802@novell.com>
2008-01-25 15:41             ` John Levon
2008-01-25 16:21               ` Jim Fehlig
2008-01-11 17:39 John Levon
2008-01-11 19:24 ` Keir Fraser
2008-01-11 19:48 ` Jim Fehlig
2008-01-11 19:57   ` John Levon
2008-01-14 19:27   ` Jim Fehlig
2008-01-14 20:08     ` John Levon
2008-01-14 21:29       ` Keir Fraser
2008-01-14 21:48         ` John Levon
2008-01-14 21:54           ` Keir Fraser
2008-01-14 22:55             ` John Levon
2008-01-14 22:59               ` Daniel P. Berrange
2008-01-15  8:08                 ` Keir Fraser
2008-01-15  8:06               ` Keir Fraser
2008-01-15 13:42                 ` John Levon
2008-01-15 13:54                   ` Keir Fraser
2008-01-15 13:57                   ` Keir Fraser
2008-01-15 13:59                     ` Keir Fraser
2008-01-15 14:31                       ` John Levon
2008-01-15 14:37                         ` Keir Fraser
2008-01-15 14:38                           ` John Levon
2008-01-15 14:42                             ` Keir Fraser
2008-01-15 15:59                               ` Jim Fehlig
2008-01-15 16:11                                 ` John Levon
2008-01-15 16:28                                   ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478BF500.9050409@novell.com \
    --to=jfehlig@novell.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=berrange@redhat.com \
    --cc=levon@movementarian.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.