From owner-freebsd-questions@FreeBSD.ORG Mon Aug 3 19:13:14 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99D8F106566C for ; Mon, 3 Aug 2009 19:13:14 +0000 (UTC) (envelope-from sjk4015@gmail.com) Received: from mail-pz0-f174.google.com (mail-pz0-f174.google.com [209.85.222.174]) by mx1.freebsd.org (Postfix) with ESMTP id 68C4F8FC13 for ; Mon, 3 Aug 2009 19:13:14 +0000 (UTC) (envelope-from sjk4015@gmail.com) Received: by pzk4 with SMTP id 4so2674718pzk.7 for ; Mon, 03 Aug 2009 12:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=EWz22GGTRAyrcfAJSrUFd1Kkz21D23DGSUpnrXvk7T8=; b=cwts5FkeGWyzDZBAASS2OAqnEMUJuYazF7i4D0rWqXUkay4KT116xE5mrrhOOrLw+3 L02wSpyCKFLn3Z+bOvjAHDraQ0B2iylYZdhZS0rNKMziK/u7HY8HRHpjFCYEl2zWKSCw ODqrymRZEqT01yyUHpGRCtuJ4NOXu5kGWHOsw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=nw1k+TGomkJ1F0PGCPJflkhJTV076TYnemS4uL03phNUDaCf9zguFQGrV2EHQzY3QG KsBKr6kbdPB3F0asfWeJ5uep4Luc6v/QMAymf+XxxZOUVZZ/9e8mrCHDxDvwDGw5b+hI s00CiuTTxjIrrJVG+Oo2Hqjjg6JgzG3qbdH/g= Received: by 10.114.53.6 with SMTP id b6mr9814320waa.181.1249325254485; Mon, 03 Aug 2009 11:47:34 -0700 (PDT) Received: from ?10.2.200.231? ([209.249.190.8]) by mx.google.com with ESMTPS id k35sm11367132waf.64.2009.08.03.11.47.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Aug 2009 11:47:29 -0700 (PDT) Sender: Steven Kreuzer Message-Id: <2CD8BD68-D656-4215-AEE8-A46C6B4983B3@exit2shell.com> From: Steven Kreuzer To: Ewald Jenisch In-Reply-To: <20090803085516.GA1270@aurora.oekb.co.at> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Mon, 3 Aug 2009 14:47:26 -0400 References: <20090803085516.GA1270@aurora.oekb.co.at> X-Mailer: Apple Mail (2.935.3) Cc: questions@freebsd.org Subject: Re: NFS performance-tuning FreeBSD <-> NetApp 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: Mon, 03 Aug 2009 19:13:14 -0000 On Aug 3, 2009, at 4:55 AM, Ewald Jenisch wrote: > Hi, > > I've got a FreeBSD 7.2 box (HP C-class Blade - AMD dual core Opteron > (x64), 4GB RAM, Broadcom NetXtreme II BCM5706) that should be > connected to a NetApp 3170 filer via NFS. > > Out of the box, with nothing tuned (no special parameters for > mount_nfs, no kernel tuning), performance is very sluggish: I've got > ~250Mbit/sec performance with peaks around 400Mbit/sec. > > Sure enough, neither CPU (server and NetApp) nor network performance > is the problem here - it must be something NFS-related. > > Any ideas on how to increas my NFS-performance? (Special mount > parameters, kernel tuning,...) I would suggest bumping the read and write sizes to 32K and using tcp instead of udp If you have very large directories, you can also see an increase in "responsiveness" by enabling readdirplus as well, but that wont help with raw throughput. Try passing the following parameters to mount and see if performance is any better -r=32768 -w=32768 -l -T -- Steven Kreuzer http://www.exit2shell.com/~skreuzer