From owner-freebsd-performance@FreeBSD.ORG Fri Sep 29 16:27:37 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 C1C4716A407 for ; Fri, 29 Sep 2006 16:27:37 +0000 (UTC) (envelope-from fbsd-performance@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 4E1AF43D5A for ; Fri, 29 Sep 2006 16:27:27 +0000 (GMT) (envelope-from fbsd-performance@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 k8TGRPGr000805 for ; Fri, 29 Sep 2006 18:27:26 +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 k8TGRPC7012829 for ; Fri, 29 Sep 2006 18:27:25 +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 1GTLCv-0001As-6Z for freebsd-performance@freebsd.org; Fri, 29 Sep 2006 18:27:25 +0200 In-Reply-To: <3131aa530609290721o267d55bakff4e801ef4000675@mail.gmail.com> References: <3131aa530609290721o267d55bakff4e801ef4000675@mail.gmail.com> To: Performance/tuning Message-ID: From: "Jan Zacharias" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Fri, 29 Sep 2006 18:27:23 +0200 User-Agent: Opera M2/8.51 (Linux, build 1462) X-SA-Exim-Connect-IP: 134.96.249.208 X-SA-Exim-Mail-From: fbsd-performance@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=-2.8 required=5.0 tests=ALL_TRUSTED 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) 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 16:27:37 -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