From owner-freebsd-fs@FreeBSD.ORG Mon Sep 13 15:03:44 2010 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 B2D26106564A; Mon, 13 Sep 2010 15:03:44 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2C1A08FC14; Mon, 13 Sep 2010 15:03:43 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o8DF3RhL039704; Mon, 13 Sep 2010 17:03:42 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o8DF3Qau039703; Mon, 13 Sep 2010 17:03:26 +0200 (CEST) (envelope-from olli) Date: Mon, 13 Sep 2010 17:03:26 +0200 (CEST) Message-Id: <201009131503.o8DF3Qau039703@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG, rmacklem@uoguelph.ca In-Reply-To: <404412916.782668.1284306279949.JavaMail.root@erie.cs.uoguelph.ca> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Mon, 13 Sep 2010 17:03:43 +0200 (CEST) Cc: Subject: Re: Why is NFSv4 so slow? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG, rmacklem@uoguelph.ca List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2010 15:03:44 -0000 Rick Macklem wrote: > Btw, if anyone who didn't see the posting on freebsd-fs and would > like to run a quick test, it would be appreciated. > Bascially do both kinds of mount using a FreeBSD8.1 or later client > and then read a greater than 100Mbyte file with dd. > > # mount -t nfs -o nfsv3 :/path / > - cd anywhere in mount that has > 100Mbyte file > # dd if= of=/dev/null bs=1m > # umount / > > Then repeat with > # mount -t newnfs -o nfsv3 :/path / > > and post the results along with the client machine's info > (machine arch/# of cores/memory/net interface used for NFS traffic). > > Thanks in advance to anyone who runs the test, rick Ok ... NFS server: - FreeBSD 8.1-PRERELEASE-20100620 i386 - intel Atom 330 (1.6 GHz dual-core with HT --> 4-way SMP) - 4 GB RAM - re0: NFS client: - FreeBSD 8.1-STABLE-20100908 i386 - AMD Phenom II X6 1055T (2.8 GHz + "Turbo Core", six-core) - 4 GB RAM - re0: The machines are connected through a Netgear GS108T gigabit ethernet switch. I umounted and re-mounted the NFS path after every single dd(1) command, so the data actually comes from the server instead of from the local cache. I also made sure that the file was in the cache on the server, so the server's disk speed is irrelevant. Testing with "mount -t nfs": 183649990 bytes transferred in 2.596677 secs (70725002 bytes/sec) 183649990 bytes transferred in 2.578746 secs (71216779 bytes/sec) 183649990 bytes transferred in 2.561857 secs (71686277 bytes/sec) 183649990 bytes transferred in 2.629028 secs (69854708 bytes/sec) 183649990 bytes transferred in 2.535422 secs (72433702 bytes/sec) Testing with "mount -t newnfs": 183649990 bytes transferred in 5.361544 secs (34253192 bytes/sec) 183649990 bytes transferred in 5.401471 secs (33999996 bytes/sec) 183649990 bytes transferred in 5.052138 secs (36350946 bytes/sec) 183649990 bytes transferred in 5.311821 secs (34573829 bytes/sec) 183649990 bytes transferred in 5.537337 secs (33165760 bytes/sec) So, nfs is roughly twice as fast as newnfs, indeed. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "A language that doesn't have everything is actually easier to program in than some that do." -- Dennis M. Ritchie