From owner-freebsd-net@FreeBSD.ORG Fri Dec 5 08:58:10 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51D0A1065677; Fri, 5 Dec 2008 08:58:10 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id ED6E38FC14; Fri, 5 Dec 2008 08:58:09 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 1986D28448; Fri, 5 Dec 2008 16:58:09 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 0FA16EBA5CE; Fri, 5 Dec 2008 16:58:08 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id Kokd2sZTK6Zh; Fri, 5 Dec 2008 16:58:01 +0800 (CST) Received: from charlie.delphij.net (c-67-188-86-197.hsd1.ca.comcast.net [67.188.86.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 8A672EB6808; Fri, 5 Dec 2008 16:58:00 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=uTFvmm97XYxeeliLWRlr8iH2r0dFDsgRTHHolxQMNJs61quIxEeSgYeOU5EXjKKqq pPN9lQTc4/Lv3gLcSJOHg== Message-ID: <4938ED14.8090101@delphij.net> Date: Fri, 05 Dec 2008 00:57:56 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Lev Serebryakov References: <1682252731.20081205112939@serebryakov.spb.ru> In-Reply-To: <1682252731.20081205112939@serebryakov.spb.ru> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: NFS performance tuning? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2008 08:58:10 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lev Serebryakov wrote: > Hello, Freebsd-net. > > I have two systems (7-Stable), connected with gigabit link. iperf > shows 667 Mbits/sec on TCP and 600Mbit/s on UDP without any tuning. > > But NFS gives me only 17Mb/s (~136 Mbit/s) on sequential read of > very big files, and about 8-10Mb/s on "real" workloads. > > Are here any guides how to tune NFS for performance? rsize/wsize? I think the current default (8192) is too smal, perhaps 262144 would be a better choice. What I usually use is: mount_nfs -3Tr 262144 -w 262144 - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkk47RQACgkQi+vbBBjt66BYkwCgh+Eu+C+OJW9WdU7s1qww9GEb c5gAoKotFAXFTNTKD1ac+mNRAufck15t =pdBF -----END PGP SIGNATURE-----