From owner-freebsd-hackers Fri Aug 20 19:40:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (Postfix) with ESMTP id 1EDA4150EE for ; Fri, 20 Aug 1999 19:40:27 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id TAA69152; Fri, 20 Aug 1999 19:37:26 -0700 (PDT) (envelope-from dillon) Date: Fri, 20 Aug 1999 19:37:26 -0700 (PDT) From: Matthew Dillon Message-Id: <199908210237.TAA69152@apollo.backplane.com> To: Rob Snow Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Async NFS exports? References: <199908201813.NAA66892@ns1.cioe.com> <199908202206.PAA65547@apollo.backplane.com> <37BDE39E.21EE705C@lgc.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :Emm, I guess that answers my earlier question/mail: : :Why?---> : :/dev/vinum/stripe 17197511 86511 15735200 1% /stripe :basil# Bonnie -s 256 : -------Sequential Output-------- ---Sequential Input-- : -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- :Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU : 256 10817 97.3 15805 93.1 6338 41.4 9943 97.5 15796 51.2 : : :basil# mount_nfs -3 localhost:/stripe /mnt :basil# cd /mnt :basil# Bonnie -s 256 : : -------Sequential Output-------- ---Sequential Input-- : -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- :Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU : 256 4270 57.6 6639 30.6 1877 11.7 3804 55.3 6201 18.7 Buffer copy and protocol overhead, plus the data is being cached twice: once on the server and once on the client (which happens to be the same machine). The machine becomes cpu-bound with all the extra work. This is what I get. Ignore the read numbers (the machine has a lot of memory). This is with nfsd -n 4 and nfsiod -n 4, NFSv3 UDP mount, on a duel P-III/450 running CURRENT. /dev/da0h 2338236 1235921 915257 57% /usr/obj -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU 256 9979 51.4 9154 19.0 9814 22.5 19727 99.8 103863 100.0 2163.4 43.2 localhost:/usr/obj/ 2338236 1235921 915257 57% /mnt -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU 256 3532 30.9 4164 7.6 4364 14.9 13700 99.9 75964 99.7 2779.7 162.1 As you can see, I get very similar numbers for writing. 9 MB/sec on the local filesystem and 4.3 MB/sec via a localhost: NFS mount. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message