From owner-freebsd-questions Sun Feb 9 11:29:11 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 077E037B401 for ; Sun, 9 Feb 2003 11:29:08 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28BBC43F75 for ; Sun, 9 Feb 2003 11:29:07 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h19JUerX000955; Sun, 9 Feb 2003 14:30:41 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E46AB6F.1040708@potentialtech.com> Date: Sun, 09 Feb 2003 14:26:39 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Antoine Jacoutot Cc: freebsd-questions@FreeBSD.ORG Subject: Re: speeding up NFS References: <200302091717.42138.ajacoutot@lphp.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Antoine Jacoutot wrote: > Hi ! > > I wanted to know if someone could help me speed up NFS transfers with > FreeBSD-4.7-STABLE. > With Linux clients+server, the transfers are exactly twice faster than with > freeBSD, so I am sure I must have screwed the configuration somewhere. > Here are the options used for mounting: > rw,intr,hard,-r=8192,-w=8192,-U > > And here is the server's rc.conf: > nfs_reserved_port_only="YES" > nfs_server_enable="YES" > nfs_server_flags="-h 192.168.0.1 -u -t -n 4" > rpc_lockd_enable="YES" > rpc_statd_enable="YES" Search the archives ... I seem to remember this being discussed in great depth a few years ago. You may be able to increase the -r and -w sizes to improve things. My understanding is: you should use UDP mounts if the servers are close together (i.e., one hub/switch between them, low latency) but use TCP mounts if they are far apart (i.e. many hops, high latency, lots of dropped packets). I don't know if specifying both -u and -t hurts anything. But definately search the archives, there was a LOT more useful information in the previous discussion. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message