From owner-freebsd-hackers@FreeBSD.ORG Thu May 10 12:11:16 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B1B26106564A for ; Thu, 10 May 2012 12:11:16 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 6662B8FC14 for ; Thu, 10 May 2012 12:11:16 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAAevq0+DaFvO/2dsb2JhbABEDoVorxiCFQEBAQQBAQEgKyALGw4KAgINGQIpAQkmBggHBAEcBIdtC6gfkwmBL4ljGYR4gRgEk0+CLoERjy+BeDhVgUM X-IronPort-AV: E=Sophos;i="4.75,565,1330923600"; d="scan'208";a="168680540" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 10 May 2012 08:11:13 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id BF879B3F2B; Thu, 10 May 2012 08:11:13 -0400 (EDT) Date: Thu, 10 May 2012 08:11:13 -0400 (EDT) From: Rick Macklem To: David Brodbeck Message-ID: <628700802.190986.1336651873765.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-hackers@freebsd.org, Peter Jeremy , Wojciech Puchar Subject: Re: NFS - slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2012 12:11:16 -0000 David Brodbeck wrote: > On Mon, Apr 30, 2012 at 10:00 PM, Wojciech Puchar > wrote: > > i tried nfsv4, tested under FreeBSD over localhost and it is roughly > > the > > same. am i doing something wrong? > > I found NFSv4 to be much *slower* than NFSv3 on FreeBSD, when I > benchmarked it a year or so ago. > If delegations are not enabled, there is additional overhead doing the Open operations against the server. Delegations are not enabled by default in the server, because there isn't code to handle conflicts with opens done locally on the server. (ie. Delegations work iff the volumes exported over NFSv4 are not accessed locally in the server.) I think there are also some issues w.r.t. name caching in the client that still need to be resolved. NFSv4 should provide better byte range locking, plus NFSv4 ACLs and a few other things. However, it is more complex and will not perform better than NFSv3, at least until delegations are used (or pNFS, which is a part of NFSv4.1). rick > -- > David Brodbeck > System Administrator, Linguistics > University of Washington > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org"