From owner-freebsd-ports@FreeBSD.ORG Thu Feb 9 12:10:12 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6AED16A426; Thu, 9 Feb 2006 12:10:12 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from host-212-68-242-42.brutele.be (host-212-68-242-42.brutele.be [212.68.242.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77F0D43D45; Thu, 9 Feb 2006 12:10:11 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id E86D65536; Thu, 9 Feb 2006 13:10:09 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id B9546C129; Thu, 9 Feb 2006 13:10:09 +0100 (CET) Date: Thu, 9 Feb 2006 13:10:09 +0100 From: Jean-Yves Lefort To: Joe Marcus Clarke Message-Id: <20060209131009.47dd1398.jylefort@FreeBSD.org> In-Reply-To: <1139468008.54060.5.camel@shumai.marcuscom.com> References: <43E9FFAE.5020500@FreeBSD.org> <1139468008.54060.5.camel@shumai.marcuscom.com> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__9_Feb_2006_13_10_09_+0100_6dqBq=LR8d3mMIS6" Cc: ports@FreeBSD.org, ale@FreeBSD.org Subject: Re: gamin 0.1.7 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: Thu, 09 Feb 2006 12:10:13 -0000 --Signature=_Thu__9_Feb_2006_13_10_09_+0100_6dqBq=LR8d3mMIS6 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 09 Feb 2006 01:53:28 -0500 Joe Marcus Clarke wrote: > On Wed, 2006-02-08 at 15:26 +0100, Alex Dupre wrote: > > In the last days I worked on porting the latest release of gamin (0.1.7= )=20 > > to FreeBSD (and cygwin, too, but this is for another mailing list ;-)). > > If you don't want to read more, the result was successfully and the new= =20 > > port may be downloaded for testing from=20 > > http://www.alexdupre.com/gamin.tar.gz. > > If you are interested in porting work and changed internals go ahead. > > The 0.1.7 release works (with about the same bugs of 0.1.5)=20 > > out-of-the-box only on Linux with kernel backends (dnotify/inotify).=20 > > Polling is broken, kqueue doesn't compile. I fixed all the bugs I found= =20 > > and tried to make polling and kqueue work flawless. > > Internally I replaced the read of the linux /etc/mtab file with a call= =20 > > to getmntinfo() to know which file system could be monitored by the=20 > > kernel and which should be polled. In the latter case the monitoring jo= b=20 > > is carried out by the polling backend, in the former the job is=20 > > completed by the kqueue backend in the same way is done actually in the= =20 > > 0.1.5 release. > > I did many tests on a 6-STABLE with thousands of monitored dirs/files o= n=20 > > ufs and smbfs file systems to catch any possible bug, but it seems it's= =20 > > working great. > > Unless you will find anything wrong with the port, I'm going to commit= =20 > > it in the end of the week. >=20 > I committed this with a few changes. Someone using NFS along with gamin > might want to validate whether kqueue on NFS is working well. The same > goes for smbfs, msdosfs, and ext2fs. Please address the following issues, or revert: - we now have two different pollers; one is used when gam_kqueue_monitor_enable_kqueue() returns FALSE (for instance when the fd limit is exhausted, or when kevent() fails); one is used for "nfs" and "smbfs" filesystems - the two pollers behave differently, compare: stat() vs lstat(), gam_poll_generic_node_changed() vs gam_kqueue_differs(), scalability, ... - using filesystem names to choose between kqueue and polling is a bad idea, for obvious reasons; one should use fstatfs() and enable kqueue if the MNT_LOCAL flag is set - testing no longer works: make cd $WRKDIR/tests export GAMIN_DEBUG_SERVER=3D../server/gam_server ./testgam - connect test -> it connects to the already running gam_server (the installed one) - the patch which removed a stale socket has been dropped --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Thu__9_Feb_2006_13_10_09_+0100_6dqBq=LR8d3mMIS6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD6zEhyzD7UaO4AGoRAib2AJ4sZ8NN0nSVQVtvDd/tHd1+C175ZgCfWpTW Sr/VMtudhYveOs8+ZJo5tes= =lked -----END PGP SIGNATURE----- --Signature=_Thu__9_Feb_2006_13_10_09_+0100_6dqBq=LR8d3mMIS6--