From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 1 01:50:07 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5902D16A41F for ; Fri, 1 Jun 2007 01:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0155C13C458 for ; Fri, 1 Jun 2007 01:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l511o6oB042996 for ; Fri, 1 Jun 2007 01:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l511o6aj042995; Fri, 1 Jun 2007 01:50:06 GMT (envelope-from gnats) Date: Fri, 1 Jun 2007 01:50:06 GMT Message-Id: <200706010150.l511o6aj042995@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Bakul Shah Cc: Subject: Re: kern/97326: [linux] file descriptor leakage in linux emulation X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bakul Shah List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 01:50:07 -0000 The following reply was made to PR kern/97326; it has been noted by GNATS. From: Bakul Shah To: Gavin Atkinson Cc: bug-followup@FreeBSD.org Subject: Re: kern/97326: [linux] file descriptor leakage in linux emulation Date: Thu, 31 May 2007 18:23:55 -0700 > > The original behaviour was believed to have been fixed in > src/sys/compat/linux/linux_stats.c version 1.83 > http://lists.freebsd.org/pipermail/freebsd-emulation/2006-May/002122.html > http://lists.freebsd.org/pipermail/freebsd-emulation/2006-May/002127.html > > After the request for feedback (after the above messages), the following > response was sent but seemingly never made it to PR trail > http://lists.freebsd.org/pipermail/freebsd-bugs/2006-September/020014.html > > "I do not see the original behavoir but I do see a slow leak > in skype. Every time a call is made (for example to the > skype testing service) it leaks 10 to 15 descriptors to > /dev/mixer0 + some more. About 75% opens are to /dev/mixer0. > Still think this is an emulation problem not skype's. > > firefox etc. also seem to keep far too many files open. For > example firefox has 500+ open descriptors) with 4 tabbed > windows open. But in my limited testing can't tell if there > is a leak. > > I am running linux_base-fc-4_7 on a one month old > freebsd-current." Sorry, somehow I missed your email originally and found it today by chance. I tested it with skype and there is still a leak of 10 descriptors each time the skype testing service is called. All of the additional open file descriptors are opens to /dev/mixer0. Now I am running linux_base-fc-4_9. I suspect the bug is in the emulation layer. To test you will need a skype account. Then fire it up, call skype testing service and the the whole transaction finish. Wait for another 3 minutes or so as some descriptors take a while to close. Then do lsof |grep skype > file1 now call it again. Wait for another 3 minutes or so and do lsof |grep skype > file2 file2 will have 10 more lines than file1. If you grep for mixer0, you will see 10 more lines in file2 than in file1.