From owner-freebsd-questions@FreeBSD.ORG Mon Nov 13 16:24:50 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 DB13C16A4E8 for ; Mon, 13 Nov 2006 16:24:50 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C5C543D75 for ; Mon, 13 Nov 2006 16:23:35 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Mon, 13 Nov 2006 11:23:19 -0500 id 000564D3.45589BF7.00010EEE Received: from Internal Mail-Server by mx01 (envelope-from wmoran@collaborativefusion.com) with AES256-SHA encrypted SMTP; 13 Nov 2006 11:23:18 -0500 Date: Mon, 13 Nov 2006 11:23:18 -0500 From: Bill Moran To: freebsd-questions@freebsd.org Message-Id: <20061113112318.47a1f533.wmoran@collaborativefusion.com> In-Reply-To: <448xif5p58.fsf@be-well.ilk.org> References: <4554EA97.1040908@u.washington.edu> <448xif5p58.fsf@be-well.ilk.org> Organization: Collaborative Fusion X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.10.6; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Garrett Cooper 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 16:24:51 -0000 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. -- Bill Moran Collaborative Fusion Inc. IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.