Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2009 09:34:08 -0500
From:      "Graham Todd <gtodd@bellanet.org>" <gtodd@bellanet.org>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/131122: port devel/gamin default polling frequency increases load w/ large kern.maxfiles
Message-ID:  <1233239648.4531@wawanesa.iciti.ca>
Resent-Message-ID: <200901291510.n0TFA1wD077673@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <gtodd@bellanet.org>
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1233239648.4531>