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: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Bug in Xen 4.1.0: Xen leaks tapdisk2 processes
From: Nathan March <nathan@xxxxxx>
Date: Fri, 29 Apr 2011 12:39:14 -0700
Delivery-date: Fri, 29 Apr 2011 12:40:49 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=gt.net; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=mail; bh=PsW341vWBvDH AHRvE2bOtpu8FaQ=; b=xG96ynC8rcF6G3o5QYheCpv0dCO4gcopg52WD+rYQXlg +NCFk3VgJe+sYYnOR971H0EaPPrlHa+KfS3SYPuTyLaJ0XQHKGsX4ykjyZEPOHeH TD03xWlFxL6X7gntp97fRbOd5ow6p4BSvEI56CiG4pxAeRz//m3bHhL8wZw0CdA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gt.net; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=mail; b=JLHozp 8oKQb+KR465N/WBoZ5DyjPTPDnNNsDKkcclpJbiVnxdD6b4o1uGKNS0ie+0Z25cj frF2xIU3WuT1LQ0gonrmAceapqLQS7ESSpJczHLXS0n3FZhVqxeu4jX3ejZJOE1J Y+WLXyufDZ3R0U0jMjR00mbdIhLULK0sZ7qBY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D9305C2.5020900@xxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9
> 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:

xen1 ~ # ps auxf | grep -c tapdisk2
115

Although obviously many have been started/stopped/migrated away.
Stracing a few random ones shows them all waiting on fd8:

xen1 ~ # strace -p 11580
Process 11580 attached - interrupt to quit
select(8, [3 4 7], [], [], {425, 231813}^C <unfinished ...>
Process 11580 detached
xen1 ~ # strace -p 19110
Process 19110 attached - interrupt to quit
select(8, [3 4 7], [], [], {421, 228456}^C <unfinished ...>
Process 19110 detached
xen1 ~ # strace -p 20738
Process 20738 attached - interrupt to quit
select(8, [3 4 7], [], [], {415, 152712}^C <unfinished ...>
Process 20738 detached
xen1 ~ #

lsof:

tapdisk2 20738 root    3u  unix 0xffff880018585340        0t0 10490566
/var/run/blktap-control/ctl20738
tapdisk2 20738 root    4u  0000                0,8          0     1000
anon_inode
tapdisk2 20738 root    5u  unix 0xffff8800185858c0        0t0 10490568
socket
tapdisk2 20738 root    7u   CHR              251,3        0t0 10490549
/dev/xen/blktap-2/blktap3
tapdisk2 20738 root    8u   REG               0,22 2147483648 32367811
/mnt/xenDisks1/nathanxen2/swap (10.1.5.1:/vol/xenDisks1)

Let me know if I can grab any useful information for debugging.

- Nathan

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] Bug in Xen 4.1.0: Xen leaks tapdisk2 processes, Nathan March <=