From owner-freebsd-emulation@FreeBSD.ORG Tue May 16 18:02:15 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79F6616AFD9; Tue, 16 May 2006 18:02:15 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0F7043D78; Tue, 16 May 2006 18:02:14 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 16 May 2006 11:01:13 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.11/8.12.11) with ESMTP id k4GI2DM6060783; Tue, 16 May 2006 11:02:13 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.11/8.12.11/Submit) id k4GI28Sm060773; Tue, 16 May 2006 11:02:08 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200605161802.k4GI28Sm060773@ambrisko.com> In-Reply-To: <20060516105251.jkhr0f6pb4ogck4o@netchild.homeip.net> To: Alexander Leidinger Date: Tue, 16 May 2006 11:02:08 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: ambrisko@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: linux emulation file descriptor leakage -current? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 18:02:23 -0000 Alexander Leidinger writes: | Quoting Bakul Shah (from Tue, 16 May 2006 | 01:04:36 -0700): | | >> > The following code from linux_stats.c looked dodgy to me so I | >> > reverted /sys/{i386/linux,compat/{linux,linprocfs}} to about | >> > one month old state and the problem disappears. skype still | >> > opens about 296 files but no more. | >> | >> Can you please do a binary search for the commit which breaks this? Go | >> to a 2 week old current and see if the problem is still there. If it | >> isn't, the problem appeared in the last two weeks, so update to an one | >> week old current (and so on). I think only the kernel needs to be | >> updated. | > | > Yes, only the kernel needs to be updated. Look at rev 1.80 | > of /sys/compat/linux/linux_stats.c and related changes | > (commited on 2006/05/05 16:10:45). I am reasonably certain | > this is the culprit. To avoid looking at alpha support | > removal changes (which have nothing to do with this) do | > | > cd /sys/compat/linux | > cvs diff -D'1 month ago' -D'1 week ago' | > | > This is the only change in that time period. Perhaps the | > commit (sponsored by IronPort Systems) needs to be vetted. | > Removing this code has fixed the problem for me. If you | > have an alternative fix I'll be happy to try it. | | Doug, the problem we see is a file descriptor leak with several | applications. For example start acroread and try to open a file by | browsing for it (instead of specifying it at the command line). | Another possibility is to start skype and login. Can you please have a | look at it? Should be fixed with sys/compat/linux/linux_stats.c version 1.83. It's fixed in my testing: /compat/linux/bin/sh fstat | grep bash Let me know if there are still some issues. I'm behind in my FreeBSD mail and working on some other stuff. Thanks, Doug A.