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] Bug in Xen 4.1.0: Xen leaks tapdisk2 processes

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Bug in Xen 4.1.0: Xen leaks tapdisk2 processes
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Fri, 06 May 2011 12:27:29 -0600
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Nathan March <nathan@xxxxxx>, Andreas Kinzler <ml-xen-devel@xxxxxx>, Daniel Stodden <Daniel.Stodden@xxxxxxxxxx>
Delivery-date: Fri, 06 May 2011 11:32:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1304588710.26692.76.camel@xxxxxxxxxxxxxxxxxxxxxx>
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: <4D9305C2.5020900@xxxxxx> <4DBB13E2.9030103@xxxxxx> <1304438166.18845.129.camel@xxxxxxxxxxxxxxxxxxxxxx> <4DC038FA.3070305@xxxxxx> <1304588710.26692.76.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.18 (X11/20081112)
Ian Campbell wrote:
> On Tue, 2011-05-03 at 18:18 +0100, Nathan March wrote:
>   
>> On 5/3/2011 8:56 AM, Ian Campbell wrote:
>>     
>>> On Fri, 2011-04-29 at 20:39 +0100, Nathan March wrote:
>>>       
>>>>>>> in Xen 4.1.0 using "tap2:aio:/dev/sdaX" Xen leaks tapdisk2 processes.
>>>>>>> After running some VMs and terminating them, only dom0 running, "ps
>>>>>>> aux" shows:
>>>>>>>               
>>>>> I can definitely confirm this, on a machine with 2 active VMs:
>>>>>           
>>> I'm assuming this is xl specific and that xend isn't behaving this way
>>> too, is that correct?
>>>       
>> That's a good question, I'm not really sure. I'm doing all the vm
>> creation/migration/shutdown using libvirt 0.9.0 rc1 and just connecting
>> with xen:/// to the local xend.  I thought xl was just a userspace
>> replacement for xm and the backend functionality was the same?
>>     

libvirt 0.9.0 was released.  In fact, 0.9.1 is now out.

>
> xl is a complete standalone toolstack, including the backend
> functionality.
>
>   
>> I don't have a spare server to test the patch with at the moment, but I
>> can try this out later this week.
>>     
>
> If you are running xm/xend rather than xl then it won't help.
>
> But I'm not sure how one tells with libvrit which you are running, I'd
> expect that if xend were running it would be used by default. Jim?
>   

If xend is running, libvirt will use it.  If not, it will attempt to use
libxenlight.  'virsh version' will tell which xen backend you are using.

E.g. if xend is running:
xen33: # virsh version
Compiled against library: libvir 0.9.0
Using library: libvir 0.9.0
Using API: Xen 3.0.1

If xend is not running:
xen33: # virsh version
Compiled against library: libvir 0.9.0
Using library: libvir 0.9.0
Using API: xenlight 0.9.0

Looks like I need to put libxenlight's version in there instead of
libvirt's version, but 'Xen' vs. 'xenlight' will tell which libvirt
backend is being used.

Regards,
Jim

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