From owner-freebsd-stable@FreeBSD.ORG Wed Nov 26 18:46:00 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC9931065674 for ; Wed, 26 Nov 2008 18:46:00 +0000 (UTC) (envelope-from kometen@gmail.com) Received: from mail-gx0-f12.google.com (mail-gx0-f12.google.com [209.85.217.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8063E8FC16 for ; Wed, 26 Nov 2008 18:46:00 +0000 (UTC) (envelope-from kometen@gmail.com) Received: by gxk5 with SMTP id 5so637058gxk.19 for ; Wed, 26 Nov 2008 10:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jnm/mBcyrIIKmW/hT6u12bvKWzealq0akdFm9mnoadE=; b=Xx98tW7u9vZRn5zddO4iYcuniyYhfRDRUFCE+Cc3moUJOBg7BfiDguF7rfr5cnApv4 7JBUNpoSjmzJJp/KmDmYY0KjMUMna5qel3+pWPOuXc3/5+92Nzv1UWDHMvE0x8rpuBbi IAQhZkl7NaxWPLe42xJ1rDsqMOMpxJ1nuD8tE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TWKeZeikuGLk1+NFLj1hNqHnsiZbJsjeAhwvJ6PmUqg7i4YJX+MTPtbZCicS4OQofv efIxhfqt3EJA5EGmjyC9JgV+Zfoo7cIqtejVZsxAqfu497RpAwulwee1XzP693EstQk6 TUo1ZAkLGF2LC/v2XBdvgsFShLl+sgKaOL5tw= Received: by 10.103.227.13 with SMTP id e13mr2253378mur.20.1227724161268; Wed, 26 Nov 2008 10:29:21 -0800 (PST) Received: by 10.103.249.11 with HTTP; Wed, 26 Nov 2008 10:29:21 -0800 (PST) Message-ID: Date: Wed, 26 Nov 2008 19:29:21 +0100 From: "Claus Guttesen" To: "Lin Jui-Nan Eric" In-Reply-To: <47713ee10811260821taf548aapceb210a3bc7314ea@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47713ee10811260821taf548aapceb210a3bc7314ea@mail.gmail.com> Cc: stable@freebsd.org Subject: Re: NFS Performance Issue X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 18:46:01 -0000 > We recently found that the Performance of the NFS Client in FreeBSD is > worse than that in Linux. What OS is your nfs-server running? > It's about 1/3 of NFS client in Linux. We have tuned TCP recv/send > buffer, and got no gain. The mount parameters are: (We use amd) > rw,nfsv3,lockd,grpid,intr,soft,cache,nodev,resvport,timeo=10,retrans=3,async,rsize=1024,wsize=1024,noatime > > Does anyone has any suggestion to get the performance better? Thank you all! You can ommit read- and write-size using tcp-mounts. From 'man mount_nfs': -w Set the write data size to the specified value. Ditto the com- ments w.r.t. the -r option, but using the ``fragments dropped due to timeout'' value on the server instead of the client. Note that both the -r and -w options should only be used as a last ditch effort at improving performance when mounting servers that do not support TCP mounts. I have a solaris 9 nfs-server with vxfs and I used to mount using udp but then I ran into 'server not responding' and changed to tcp-nfs-mount instead. I just copied a 200 MB file to the nfs-server in 7.5 sec. which is 26.6 MB/s. -- regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is the soonest winner. Shakespeare