From owner-freebsd-current@FreeBSD.ORG Tue May 16 05:33:57 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 123D816A403 for ; Tue, 16 May 2006 05:33:57 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59B9B43D46 for ; Tue, 16 May 2006 05:33:56 +0000 (GMT) (envelope-from yuri.pankov@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so113563nfc for ; Mon, 15 May 2006 22:33:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=ZCAT12AH4xL3Rmsy/iObZz/+H5t2TwK3RwTbnVkNdUktL7hBDycOY7Ap/ppW7Wy0YnUC7y5X/KZKJjwqNS2zcx5ERwfADV07lSqilXSpx76U5oiZyi/rtI39uwoyan/RoHENXdrRI/rqHUCFpCtHsuhO/2n3C9LY5LmXtq0ZPCM= Received: by 10.49.72.15 with SMTP id z15mr3746524nfk; Mon, 15 May 2006 12:04:35 -0700 (PDT) Received: from klamath.irbis.net.ru ( [85.118.141.6]) by mx.gmail.com with ESMTP id r33sm6102207nfc.2006.05.15.12.04.32; Mon, 15 May 2006 12:04:34 -0700 (PDT) From: Yuri Pankov To: vova@fbsd.ru In-Reply-To: <1147718259.1435.3.camel@localhost> References: <20060515165041.50A86294BB@mail.bitblocks.com> <1147718259.1435.3.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Mon, 15 May 2006 23:04:29 +0400 Message-Id: <1147719869.77022.3.camel@localhost.localnet> Mime-Version: 1.0 X-Mailer: Evolution 2.7.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Re: linux emulation file descriptor leakage -current? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 05:33:57 -0000 On Mon, 2006-05-15 at 22:37 +0400, Vladimir Grebenschikov wrote: > В пн, 15/05/2006 в 09:50 -0700, Bakul Shah пишет: > > 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). > > same problem with skype here (fresh 7.0-CURRENT + fresh gnome) > I was forced to increase kern.maxfiles to make my system alive. I think your issue is described in /usr/ports/devel/gamin/pkg-message, which is used by GNOME. > > > $ 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 Yuri