From owner-freebsd-emulation@FreeBSD.ORG Mon May 15 16:50:44 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 B459016AFF1; Mon, 15 May 2006 16:50:44 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id A056043D79; Mon, 15 May 2006 16:50:41 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 50A86294BB; Mon, 15 May 2006 09:50:41 -0700 (PDT) To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Mon, 15 May 2006 09:50:41 -0700 From: Bakul Shah Message-Id: <20060515165041.50A86294BB@mail.bitblocks.com> Cc: Subject: 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: Mon, 15 May 2006 16:50:45 -0000 This is what happens when I start skype (NOTE: this is *not* limited to skype -- I see the same problem with a thunderbird linux binary but linux-firefox & linux-opera work fine). $ skype & $ sudo sh -c " while sleep 3; do lsof |grep skype|wc; done" 4126 38134 495635 4196 38959 499830 4226 39229 502965 4266 39589 507145 4296 39859 510280 4336 40219 514460 4366 40489 517595 4406 40849 521775 4436 41119 524910 4476 41479 529090 4516 41839 533270 4546 42109 536405 4586 42469 540585 ^C Is this a known problem or am I in an alternate universe? I am running -current as of yesterday, with a freshly installed linux_base-8 and skype. But this has been happening for atleast a couple weeks and may be more. Looking at the lsof output, about a third opens are for a directory, two thirds are files. It seems to open over a hundred directories (all of them multiple times)! It opens over 400 files (all multiple times). Many of these files have nothing to do with skype! Doing a truss shows a lot of linux_ioctl() and gettimeofday() on one skype_bin process and linux_times() and linux_time() on another process. Doung ktrace on these processes shows something totally different (all sorts of syscalls). Thanks for any help or hints on how to debug this.... -- bakul