From owner-freebsd-performance@FreeBSD.ORG Fri Sep 29 15:28:48 2006 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 539C116A412 for ; Fri, 29 Sep 2006 15:28:48 +0000 (UTC) (envelope-from jan@graphics.cs.uni-sb.de) Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C38843D53 for ; Fri, 29 Sep 2006 15:28:32 +0000 (GMT) (envelope-from jan@graphics.cs.uni-sb.de) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by uni-sb.de (8.13.8/2006081400) with ESMTP id k8TFSUog011658 for ; Fri, 29 Sep 2006 17:28:30 +0200 (CEST) Received: from scihparg.cs.uni-sb.de (scihparg.cs.uni-sb.de [134.96.249.75]) by mail.cs.uni-sb.de (8.13.8/2006081400) with ESMTP id k8TFSUEu007870 for ; Fri, 29 Sep 2006 17:28:30 +0200 (CEST) Received: from bofh.cs.uni-sb.de ([134.96.249.208]) by scihparg.cs.uni-sb.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1GTKHu-0000bd-Cn for freebsd-performance@freebsd.org; Fri, 29 Sep 2006 17:28:30 +0200 Date: Fri, 29 Sep 2006 17:28:27 +0200 To: Performance/tuning References: <3131aa530609290721o267d55bakff4e801ef4000675@mail.gmail.com> From: "Jan Zacharias" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <3131aa530609290721o267d55bakff4e801ef4000675@mail.gmail.com> User-Agent: Opera M2/8.51 (Linux, build 1462) X-SA-Exim-Connect-IP: 134.96.249.208 X-SA-Exim-Mail-From: jan@graphics.cs.uni-sb.de X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on scihparg.cs.uni-sb.de X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.0.3 X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on scihparg.cs.uni-sb.de) X-Mailman-Approved-At: Fri, 29 Sep 2006 23:18:16 +0000 Subject: Re: Samba Performance problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 15:28:48 -0000 Hi Olivier, generally the Samba performance on *BSD just sucks, I wrote to this list with the same problem some weeks ago, no one was able to tune smbd so that it would outperform as well as under linux. The only solution is to migrate your fileserver to a Linux distribution as I did. Performance on the same Hardware: now ~11MB/s using 100Mbit NIC, before ~6MB/s (FreeBSD 6.1). Greetz, Jan On Fri, 29 Sep 2006 16:21:20 +0200, Olivier Cochard-Labbe wrote: > Hi all, > > I meet a performance problem with my customized distro of FreeBSD > 6.1(FreeNAS). > Lot's of FreeNAS users compare the performance of FreeNAS with Linux, and > the Samba performance are very poor under FreeNAS (but not with NFS or > FTP). > > > I've use this value on the default samba configuration: > socket options = IPTOS_LOWDELAY TCP_NODELAY > SO_SNDBUF=16384 > SO_RCVBUF=16384 > > But there is no change. > > Then I've try to add a "tune" parameter that set this kernel variables: > net.inet.tcp.delayed_ack=0 > net.inet.tcp.sendspace=65536 > net.inet.tcp.recvspace=65536 > net.inet.udp.recvspace=65536 > net.inet.udp.maxdgram=57344 > net.local.stream.recvspace=65535 > net.local.stream.sendspace=65535 > kern.ipc.maxsockbuf=2097152 > kern.ipc.somaxconn=8192 > kern.ipc.nmbclusters=60000 > kern.maxfiles=65536 > kern.maxfilesperproc=32768 > net.inet.tcp.inflight.enable=0 > > But there is no change too... How can I improve the Samba performace ? > > Thanks, > > Olivier > -- Co.G.Wheel - Administation Group, Computer Graphics Lab of Saarland University Phone: 0681 302 3841 Telecopy: 0681 302 3843 Web: http://graphics.cs.uni-sb.de