From owner-freebsd-fs@FreeBSD.ORG Tue Sep 6 20:22:28 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 185A3106566C for ; Tue, 6 Sep 2011 20:22:28 +0000 (UTC) (envelope-from brodbd@uw.edu) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id A4FD58FC08 for ; Tue, 6 Sep 2011 20:22:27 +0000 (UTC) Received: by ewy1 with SMTP id 1so3560921ewy.13 for ; Tue, 06 Sep 2011 13:22:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.13.136 with SMTP id c8mr1087323eba.123.1315340546267; Tue, 06 Sep 2011 13:22:26 -0700 (PDT) Received: by 10.213.26.75 with HTTP; Tue, 6 Sep 2011 13:22:26 -0700 (PDT) Date: Tue, 6 Sep 2011 13:22:26 -0700 Message-ID: From: David Brodbeck To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Slow NFSv4 performance, was: Re: ZFSv28+NFSv4 poor file creation performance, "sync=disabled" has no effect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 20:22:28 -0000 On Mon, Sep 5, 2011 at 2:16 AM, Pawel Jakub Dawidek wrote: > It would be good if you could try your test on FreeBSD directly. This > way we could see if ZFS is to blame or NFS. > Okay, it appears it is in fact an NFSv4 problem, and I've been barking up the wrong tree. I shared out an NFSv4 mountpoint with a UFS ramdisk as the backing store, and I got the same slow results. I was fooled by the fact that the numbers were similar to what I got using OpenSolaris with the ZIL enabled. (This is what I get for making assumptions.) Interestingly enough, if I use NFSv3 instead of NFSv4, performance increases dramatically. It appears it's FreeBSD's NFSv4 server, or the way it's interacting with Linux's client, that's the culprit here. I'm not sure if there are knobs I should be tweaking to make it perform better; any suggestions on what to try next? -- David Brodbeck System Administrator, Linguistics University of Washington