From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 29 15:10:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AE4410656FD for ; Thu, 29 Jan 2009 15:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 224CA8FC17 for ; Thu, 29 Jan 2009 15:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0TFA1lx077674 for ; Thu, 29 Jan 2009 15:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0TFA1wD077673; Thu, 29 Jan 2009 15:10:01 GMT (envelope-from gnats) Resent-Date: Thu, 29 Jan 2009 15:10:01 GMT Resent-Message-Id: <200901291510.n0TFA1wD077673@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Graham Todd " Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F4851065692 for ; Thu, 29 Jan 2009 15:00:47 +0000 (UTC) (envelope-from gtodd@bellanet.org) Received: from smtp106.rog.mail.re2.yahoo.com (smtp106.rog.mail.re2.yahoo.com [68.142.225.204]) by mx1.freebsd.org (Postfix) with SMTP id B930C8FC14 for ; Thu, 29 Jan 2009 15:00:46 +0000 (UTC) (envelope-from gtodd@bellanet.org) Received: (qmail 37778 invoked from network); 29 Jan 2009 14:34:06 -0000 Received: from unknown (HELO wawanesa.iciti.ca) (gtodd@99.246.4.156 with login) by smtp106.rog.mail.re2.yahoo.com with SMTP; 29 Jan 2009 14:34:06 -0000 Received: from wawanesa.iciti.ca (wawanesa.iciti.ca [192.168.2.4]) by wawanesa.iciti.ca (Postfix) with ESMTP id 8FAA1BF for ; Thu, 29 Jan 2009 09:34:08 -0500 (EST) Message-Id: <1233239648.4531@wawanesa.iciti.ca> Date: Thu, 29 Jan 2009 09:34:08 -0500 From: "Graham Todd " To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: Subject: ports/131122: port devel/gamin default polling frequency increases load w/ large kern.maxfiles X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 15:10:03 -0000 >Number: 131122 >Category: ports >Synopsis: port devel/gamin default polling frequency increases load w/ large kern.maxfiles >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 29 15:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Graham Todd >Release: FreeBSD 7.1-PRERELEASE-p1 i386 >Organization: >Environment: System: FreeBSD 7.1-PRERELEASE-p1 #0: Mon Nov 24 11:49:24 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: gam_server consumes a relatively high level of CPU (10%) which pushes overall load quite high for a desktop system. CPU and memory hogging should be the exclusive domain of firefox-bin ;-) ... This appeared on my systems with gamin-0.1.10 and recent gnome upgrade whcih required a higher kern.maxfiles setting. Perhaps gam_server now uses a more frequent default polling interval or the higher kern.maxfiles setting increased its workload. The FreeBSD gamin port/pkg does not include these files: /.gaminrc /usr/local/etc/gamin/gaminrc /usr/local/etc/gamin/mandatory_gaminrc These files can be used to tune polling frequency. >How-To-Repeat: Increase kern.maxfiles to a large number run gam_server and untar/compile several large source packages. The application will begin to consume a large set CPU. >Fix: The fix below seems to work and simply reduces the polling frequency from the default setting. I did this by creating the following files: ~/.gaminrc /usr/local/etc/gamin/gaminrc # # /usr/local/etc/gamin/gaminrc # # reduce polling frequency to once per 10 seconds # in order to lower CPU load fsset ufs poll 10 fsset zfs poll 10 # does this work? A default /usr/local/etc/gamin/gaminrc or /usr/local/etc/gamin/mandatory_gaminrc could be included with the port that documented some of the possible configuration settings and defaults for gam_server. >Release-Note: >Audit-Trail: >Unformatted: