From owner-freebsd-questions@FreeBSD.ORG Mon Aug 23 06:21:43 2010 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 CDB61106566B for ; Mon, 23 Aug 2010 06:21:43 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 8513C8FC24 for ; Mon, 23 Aug 2010 06:21:43 +0000 (UTC) Received: by qyk8 with SMTP id 8so2611937qyk.13 for ; Sun, 22 Aug 2010 23:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=CQNme4HScnFk3nf5+iJR0MyK467X3lgBcAFaHC/HqHw=; b=cknRT7rNgbBCWoK73lgEgThqIgqn00We5qh6G0eUTDH49r0tlnTD4Aq+o1vi1M1yk/ jI8IOvZXmYb20imb2miccRq9e0sWz5GuSzYWi1DuPifiSNPwfYskB5wdrJp+jgY3uW3d 4GsRLSQ6iBXwgYZ5XnPBH3J4WFdg0rrtyWF2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VdVTTAXOwDMRL+iECMxTpEHmQ5q8PvF5J7DO++uvVb5C4dWfPO5sBWCyMSCiSv9P3S 0HKrUZltyr+UMs1nIiDlKrOHIKAoT/T3LcX3bICqJ9UuF0z8G1gCuOV9/PUcXtMKTT0a qDlEMdmHc/yWO1N5YkYegCV1LTIDVoonehhq0= MIME-Version: 1.0 Received: by 10.229.191.147 with SMTP id dm19mr3259399qcb.33.1282544502781; Sun, 22 Aug 2010 23:21:42 -0700 (PDT) Received: by 10.229.75.76 with HTTP; Sun, 22 Aug 2010 23:21:42 -0700 (PDT) In-Reply-To: References: Date: Mon, 23 Aug 2010 01:21:42 -0500 Message-ID: From: Adam Vande More To: Nikolai Schupbach Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List Subject: Re: NFSv3 and v4 slow with newnfs code 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, 23 Aug 2010 06:21:43 -0000 On Mon, Aug 23, 2010 at 12:53 AM, Nikolai Schupbach wrote: > We are doing some performance testing on a new system. We have a > OpenSolaris NFS server sharing a folder on a ZFS filesystem and a FreeBSD > 8.1 NFS client. The machines are directly connected using 10GbE (no switch > in-between). > > Below are the performance figures we attained when doing simple 10GB dd > write (dd if=/dev/zero of=/mnt/file.tmp bs=1M count=10240) and read (dd > of=/dev/null if=/mnt/file.tmp) tests over NFS from the FreeBSD client using > various mount options. > > We performed these tests numerous times and all results are roughly the > same for each test. We have tuned kern.ipc.maxsockbuf, > net.inet.tcp.recvspace and net.inet.tcp.sendspace. This didn't result in any > significant differences in the test results. Both NFS client and server NICs > have MTU set to 9000; this improves performance noticeable. > > Currently it appears sticking with the stable NFSv3 code yields the best > results. Both NFSv3 and NFSv4 with the newnfs code has disappointing > performance. We installed Linux on the client machine as a test and > unfortunately Linux has the best performance by far. > > Are there any other options we can use to improve the performance of NFSv4 > for large sequential writes and reads? > You can use a UDP mount, should help a little. Have you measured your NIC's performance to see if that is the bottleneck. Perhaps the driver is subpar. -- Adam Vande More