From owner-freebsd-current@FreeBSD.ORG Thu Aug 30 11:58:48 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 808D116A419 for ; Thu, 30 Aug 2007 11:58:48 +0000 (UTC) (envelope-from M.S.Powell@salford.ac.uk) Received: from akis.salford.ac.uk (akis.salford.ac.uk [146.87.0.14]) by mx1.freebsd.org (Postfix) with SMTP id F3D7313C469 for ; Thu, 30 Aug 2007 11:58:47 +0000 (UTC) (envelope-from M.S.Powell@salford.ac.uk) Received: (qmail 35921 invoked by uid 98); 30 Aug 2007 12:58:07 +0100 Received: from 146.87.255.121 by akis.salford.ac.uk (envelope-from , uid 401) with qmail-scanner-2.01 (clamdscan: 0.90/3843. spamassassin: 3.1.8. Clear:RC:1(146.87.255.121):. Processed in 0.042306 secs); 30 Aug 2007 11:58:07 -0000 Received: from rust.salford.ac.uk (HELO rust.salford.ac.uk) (146.87.255.121) by akis.salford.ac.uk (qpsmtpd/0.3x.614) with SMTP; Thu, 30 Aug 2007 12:58:07 +0100 Received: (qmail 58630 invoked by uid 1002); 30 Aug 2007 11:58:05 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 30 Aug 2007 11:58:05 -0000 Date: Thu, 30 Aug 2007 12:58:05 +0100 (BST) From: "Mark Powell" To: Brooks Talley In-Reply-To: <16447218.32631188324732895.JavaMail.root@zmail.illuminati.org> Message-ID: <20070830124435.W58590@rust.salford.ac.uk> References: <16447218.32631188324732895.JavaMail.root@zmail.illuminati.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current Subject: Re: Tidbit for improving Samba performance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2007 11:58:48 -0000 On Tue, 28 Aug 2007, Brooks Talley wrote: > Right now, with net.inet.tcp.recvspace and net.inet.tcp.sendspace both > at 65536 and SO_RCVBUF and SO_SNDBUF also at 65536, I'm seeing about > 60MB/s. Still not great, but a significant improvement. FWIW, going > higher than 65536 causes the Vista workstation to lose its mapped drive > all the time. And changing the MTU on both FreeBSD and Vista (to either > 4088 or 9014) had no discernable benefit. I've been doing the same. I must have tried so many combinations though. It really is a black art :( I agree that 65536 for all 4 options is probably about the best combination. Thanks. I'm seeing 54MB/s peak write from XP box to FBSD though and 40MB/s peak read. > This is on a 7.0-CURRENT compiled without all of the debugging stuff, > and it's at 0.7 load and 73% idle when transferring 60MB/s, so I think > there's still some headroom there for improvement. This is onto a ZFS RAIDZ1 onto 3x500GB drives which can achieve 120MB/s write and 160MB/s read under FBSD. This is between 2xPCI-X Intel PRO1000 server adapters 82545 in 32bit/33MHz PCI slots. They are the only active devices on the PCI bus, so I would expect more. Simple tests with dd when FBSD is on both boxes, can easily achieve 87-90MB/s. > Anyways, thought I'd share with the group, since I haven't seen this > mentioned in copious amounts of Googling. I too found a derth of information on this matter for FBSD. I'm current using the following in smb.conf: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65536 SO_RCVBUF=65536 strict locking = no use sendfile = yes What do you have in there? Cheers. -- Mark Powell - UNIX System Administrator - The University of Salford Information Services Division, Clifford Whitworth Building, Salford University, Manchester, M5 4WT, UK. Tel: +44 161 295 4837 Fax: +44 161 295 5888 www.pgp.com for PGP key