From owner-freebsd-questions@FreeBSD.ORG Wed Dec 12 07:50:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 955DD16A418 for ; Wed, 12 Dec 2007 07:50:31 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from mail-in07.adhost.com (mail-in07.adhost.com [216.211.128.140]) by mx1.freebsd.org (Postfix) with ESMTP id 71DAD13C45D for ; Wed, 12 Dec 2007 07:50:31 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from ad-exh01.adhost.lan (unknown [216.211.143.69]) by mail-in07.adhost.com (Postfix) with ESMTP id 2A4D61B5053; Tue, 11 Dec 2007 23:50:30 -0800 (PST) (envelope-from mksmith@adhost.com) Received: from [192.168.0.101] ([10.142.3.42]) by ad-exh01.adhost.lan with Microsoft SMTPSVC(6.0.3790.3959); Tue, 11 Dec 2007 23:50:29 -0800 Message-Id: <6A07327E-83AE-4CCA-B85A-C2F7C3AD5E3F@adhost.com> From: Michael Smith To: Mike Tancsa In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Tue, 11 Dec 2007 23:50:29 -0800 References: <20071211120127.F1536@wojtek.tensor.gdynia.pl> X-Mailer: Apple Mail (2.915) X-OriginalArrivalTime: 12 Dec 2007 07:50:29.0940 (UTC) FILETIME=[AA8EBF40:01C83C93] X-TM-AS-Product-Ver: SMEX-7.5.0.1243-5.0.1023-15598.002 X-TM-AS-Result: No--7.708400-5.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Cc: Wojciech Puchar , freebsd-questions@freebsd.org Subject: Re: why nfs is so slow? 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: Wed, 12 Dec 2007 07:50:31 -0000 On Dec 11, 2007, at 6:45 PM, Mike Tancsa wrote: > On Tue, 11 Dec 2007 12:02:07 +0100 (CET), in > sentex.lists.freebsd.questions you wrote: > >> i'm getting about 6MB/s with NFS (100Mbit cross-connect ethernet), >> while >> over 9.5 by FTP. >> >> nfs is set to work over TCP. > > What mount options are you using ? > > I use something like the following > > 172.18.23.34:/backup/backup2 /offsite-backup nfs > rw,-r=32768,-w=32768,tcp,noauto > > in fstab > > ---Mike > We've had good luck with the following options: rw,tcp,intr,noatime,nfsv3,-w=65536,-r=65536 along with the following in /etc/sysctl.conf net.inet.ip.fastforwarding=1 net.inet.ip.intr_queue_maxlen=5000 kern.ipc.maxsockbuf=8388608 net.inet.tcp.sendspace=3217968 net.inet.tcp.recvspace=3217968 And, finally, turning on polling on the interface on our disk array. We are getting a solid 300 Mb/sec on a GigE link. Regards, Mike