From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 29 14:50:01 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 C56F21065761 for ; Thu, 29 Jan 2009 14:50:01 +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 9F4A68FC29 for ; Thu, 29 Jan 2009 14:50:01 +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 n0TEo1qU063746 for ; Thu, 29 Jan 2009 14:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0TEo1JX063745; Thu, 29 Jan 2009 14:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 29 Jan 2009 14:50:01 GMT Resent-Message-Id: <200901291450.n0TEo1JX063745@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 4BB9510656FA for ; Thu, 29 Jan 2009 14:45:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3931F8FC23 for ; Thu, 29 Jan 2009 14:45:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0TEjTxC073710 for ; Thu, 29 Jan 2009 14:45:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n0TEjTUa073709; Thu, 29 Jan 2009 14:45:29 GMT (envelope-from nobody) Message-Id: <200901291445.n0TEjTUa073709@www.freebsd.org> Date: Thu, 29 Jan 2009 14:45:29 GMT From: Graham Todd To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/131121: devel/gamin - default polling frequency increases CPU 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 14:50:02 -0000 >Number: 131121 >Category: ports >Synopsis: devel/gamin - default polling frequency increases CPU 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 14:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Graham Todd >Release: FreeBSD 7.1-PRERELEASE-p1 i386 >Organization: >Environment: 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 high level of CPU (10%) which pushes overall load quite high for a desktop system. Even with a busy files system and many open files CPU and memory hogging should be the exclusive domain of firefox-bin ;-) ... This appeared on systems with gamin-0.1.10 and recent gnome upgrade. On a multi-user desktop with number testing jails a higher kern.maxfiles setting is needed. 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 (~24k here) run gam_server and then start several jails; run desktop sessions; untar and compile several large source packages - anything to make your file system busy. The application will begin to consume a large portion of CPU. >Fix: Reducing gam_server's polling frequency from the default setting seems to work. 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 # all ufs mounts fsset zfs poll 10 # does this work? Perhaps 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: