From owner-freebsd-ports@FreeBSD.ORG Sun Jul 15 02:36:21 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C203B1065675; Sun, 15 Jul 2012 02:36:21 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from server2.allsitecontrol.com (server2.allsitecontrol.com [63.143.36.210]) by mx1.freebsd.org (Postfix) with ESMTP id 7AD738FC14; Sun, 15 Jul 2012 02:36:21 +0000 (UTC) Received: from tor20.anonymizer.ccc.de ([31.172.30.3]:47949 helo=internal.tormail.org) by server2.allsitecontrol.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.77) (envelope-from ) id 1SpxGX-003ZGe-P0; Sat, 14 Jul 2012 03:59:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:In-Reply-To:Subject:Cc:To:From; bh=c8WJe7iU/PQthLlGBRyOT75DsKiLK2G7lyxH/76r3U4=; b=fPweGq9vAyKDnqZxuhSEf6EghPO23fmHUjTBIDh2cvqfD3FZatI0nc/oHljWv00ZkDXCgzKUntCEaOpz5WOdQAkiG7aSHkqbBUBcDdgmfNuAWJkefLeiDJ5tIlw+Cyuc3tlLZoWMPjBb5zziVIZ2Zr/QTyWq4SfzbYrtk8INq9M=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1SpxEn-000Iev-7I; Sat, 14 Jul 2012 07:58:01 +0000 From: Jan Beich To: lev@FreeBSD.org In-Reply-To: <38147362.20120713210039__36015.2969988578$1342198926$gmane$org@serebryakov.spb.ru> (Lev Serebryakov's message of "Fri, 13 Jul 2012 21:00:39 +0400") Date: Sat, 14 Jul 2012 03:58:27 -0400 References: <38147362.20120713210039__36015.2969988578$1342198926$gmane$org@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1SpxEn-000Iev-7I@internal.tormail.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server2.allsitecontrol.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tormail.org X-Source: X-Source-Args: X-Source-Dir: Cc: ports@freebsd.org, gnome@FreeBSD.org Subject: Re: gam_server (gamin-0.1.10_4) consumes 100% CPU (one core) with libinotify (libinotify-20110829) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2012 02:36:21 -0000 Lev Serebryakov writes: > Hello, Ports. > > I've installed "darktable" port, which brings up "gamin" (configured > with libinotify), and now when I run darktable gam_Server consumes > 100% of my CPU (one core). > > ktrace shows that it spins in tight loop with kevent() call, which > always failed: > > 71730 gam_server 0.000175 CALL kevent(0x3,0x8043bc000,0xb5,0x7fffffbfdf90,0x1,0) > 71730 gam_server 0.000239 GIO fd 3 wrote 4096 bytes > 71730 gam_server 0.000252 RET kevent -1 errno 9 Bad file descriptor > 71730 gam_server 0.000255 CALL kevent(0x3,0x8043bc000,0xb5,0x7fffffbfdf90,0x1,0) > 71730 gam_server 0.000312 GIO fd 3 wrote 4096 bytes > 71730 gam_server 0.000323 RET kevent -1 errno 9 Bad file descriptor > 71730 gam_server 0.000325 CALL kevent(0x3,0x8043bc000,0xb5,0x7fffffbfdf90,0x1,0) > 71730 gam_server 0.000382 GIO fd 3 wrote 4096 bytes > 71730 gam_server 0.000392 RET kevent -1 errno 9 Bad file descriptor > > and so on... > > I'm using > > FreeBSD blob.home.serebryakov.spb.ru 9.0-STABLE FreeBSD 9.0-STABLE #32: Fri Jun 1 00:49:11 MSK 2012 root@blob.home.serebryakov.spb.ru:/usr/obj/usr/src/sys/BLOB amd64 > > FS is UFS2. Same here: 10.0-CURRENT, ZFS, gamin from marcuscom repo. It doesn't happen with pkgsrc patches, though.