From owner-freebsd-questions@FreeBSD.ORG Sat Jan 30 06:26:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36E7F1065672 for ; Sat, 30 Jan 2010 06:26:39 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id E3A668FC13 for ; Sat, 30 Jan 2010 06:26:38 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nb6mz-0001Su-6a for freebsd-questions@freebsd.org; Sat, 30 Jan 2010 07:26:37 +0100 Received: from 193.33.173.33 ([193.33.173.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Jan 2010 07:26:37 +0100 Received: from c.kworr by 193.33.173.33 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Jan 2010 07:26:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Volodymyr Kostyrko Date: Sat, 30 Jan 2010 08:26:26 +0200 Lines: 24 Message-ID: References: <201001292309.39703.erichfreebsdlist@ovitrap.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.33.173.33 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.7) Gecko/20100124 Thunderbird/3.0.1 In-Reply-To: <201001292309.39703.erichfreebsdlist@ovitrap.com> Sender: news Subject: Re: gam_server opening 4000 file descriptors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2010 06:26:39 -0000 On 29.01.2010 17:09, Erich Dollansky wrote: > I have had to set a FreeBSD up again after the hard disk died. > > It runs now on 7.2. > > I noticed today that the gam_server opens some 4000 file descriptors. > > Ok, I have read > > http://www.gnome.org/~veillard/gamin/ > > All I have found out is that I should increase the number of file descriptors. > > Isn't there any other way to tell gamin not to do this? Don't increase the number of file descriptors. Did you read pkg-message? gamin uses at most 70% of kern.maxfiles On the other hand you can switch to polling. This way gamin would not use file descriptors in expense of greater cpu usage. -- Sphinx of black quartz judge my vow.