From owner-freebsd-questions@FreeBSD.ORG Mon Nov 13 19:47:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8002016A47C for ; Mon, 13 Nov 2006 19:47:14 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1563D43DF6 for ; Mon, 13 Nov 2006 19:45:27 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kADJjQsZ009480 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 13 Nov 2006 11:45:26 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kADJjQVu009061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 13 Nov 2006 11:45:26 -0800 Message-ID: <4558CB45.8030208@u.washington.edu> Date: Mon, 13 Nov 2006 11:45:09 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.7 (X11/20060929) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4554EA97.1040908@u.washington.edu> <448xif5p58.fsf@be-well.ilk.org> <20061113112318.47a1f533.wmoran@collaborativefusion.com> In-Reply-To: <20061113112318.47a1f533.wmoran@collaborativefusion.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.11.13.112932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: (SAMBA) issue with filehandles being released under 6.1-RELEASE? 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: Mon, 13 Nov 2006 19:47:14 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bill Moran wrote: > In response to Lowell Gilbert : > >> Garrett Cooper writes: >> >>> Just wondering if anyone else was experiencing the same issues that I >>> am.. it's related to Samba-3.0.22c and sockets / filehandles. >>> >>> For some odd reason every couple days (~2 days) I have to restart the >>> smbd daemon because it eats up 6000+ filehandles, just for sockets I >>> assume (based on netstat output). At the point where it reaches 8000 >>> some filehandles open, the system refuses to fork, forcing me to login >>> as root on the console directly instead of via SSH. >>> >>> My machine is a local / preferred master (smbd fights with XP Home >>> clients because they want to be master browsers), with limited access >>> to a few XP clients (<4 clients at any given point in time), plus an >>> XBox using smbclient with XBox Media Center. > > Have you investigated the possibility that Samba legitimately needs more > filehandles than that? Even if there are only 4 clients, they may be > opening 2000 files each (The output of smbstatus right before the system > exhausted its filehandles would be interesting) If that's the case, you > can update the amount of available filehandles using sysctl or by > recompiling your kernel. > > We have some PostgreSQL servers that require the filehandle limit be raised > to 50000, for example. Will give that a thought--thanks! - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFWMtF6CkrZkzMC68RAu37AJ94ynYimAmz7u5wJTsYqJPWD4hyUgCfcHun PK7vUcytITYlRmfunW68qHU= =Pfsj -----END PGP SIGNATURE-----