From owner-freebsd-hackers Wed Jul 10 23:30:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D86437B401; Wed, 10 Jul 2002 23:30:33 -0700 (PDT) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1C4643E3B; Wed, 10 Jul 2002 23:30:32 -0700 (PDT) (envelope-from dmp@pantherdragon.org) Received: from spark.techno.pagans (spark.techno.pagans [4.61.202.145]) by spork.pantherdragon.org (Postfix) with ESMTP id E77D1471DD; Wed, 10 Jul 2002 23:30:32 -0700 (PDT) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by spark.techno.pagans (Postfix) with ESMTP id 2292BFFDE; Wed, 10 Jul 2002 23:30:31 -0700 (PDT) Message-ID: <3D2D2607.A5AA1FA6@pantherdragon.org> Date: Wed, 10 Jul 2002 23:30:31 -0700 From: Darren Pilgrim X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Chad David Cc: hackers@freebsd.org, alfred@freebsd.org Subject: Re: tuning for samba References: <20020710180711.A43342@colnta.acns.ab.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chad David wrote: > > A local company has been having issues with samba for some time (it kills > an e250, and has seriously stressed an e5000) and I've been telling the > admin (half seriously) that he should just toss it on a PC with FreeBSD. > Well they finally got tired of hearing FreeBSD this and FreeBSD that and > asked me to bring a box in if I was so confident... tomorrow morning at > 9am. So, I'm building a new box tonight and was wondering if anybody > has any tried and true tuning parameters for samba on -stable. They > currently have ~700 users attached. The load per user is pretty low > but just rebooting and handling the reconnects has killed small boxes. > > As a side note, the data being served will be attached to the samba server > via NFS. The one thing I've seen kill a box besides the reboot-reconnect blast is content searches by the Windows Find dialog. All it takes is one user on a fast machine and network link doing the Windows equivalent of "find / -name * -exec grep "foo" \{\} \;" to run you out of file descriptors in a matter of seconds. Samba uses a seperate process for each connection, and Windows opens one connection per share. Most Windows users only work on one share at a time, so with two open shares on ~700 machines that means ~1400 connections with roughly half of them idle. That's a lot of freeable RAM should you suddenly need it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message