Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Lousy NFS performance
@ 1994-06-08 17:22 John Hascall
  1994-06-08 23:25 ` Daniel S. Riley
  1994-06-10 18:55 ` Eric Werme
  0 siblings, 2 replies; 5+ messages in thread
From: John Hascall @ 1994-06-08 17:22 UTC (permalink / raw)



2 DEC AXP3000/600s, 256MB, 3xRZ26, DEC OSF/1 V1.3 (Rev. 111)
connected by an otherwise idle GIGAswitch.
Testing with the Bonnie I/O benchmark.

Comparing local disk performance, vs. using one as an NFS server for the other.

              -------Sequential Output-------- ---Sequential Input-- --Random--
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
local     256  2113 45.6  2359  9.1  1179  4.6  2474 59.7  3010  6.7 108.5  3.0
nfs       256   523 11.5   538  2.7   897  6.5  3747 88.2  3004  8.2  98.0  3.7

Why is the nfs write performance so abysmal?  My first suspicion was they
were doing "synchronous" NFS writes, but from my perusal of the OSF/1
nfs_server.c source this appears not to be the case. (correct?)

John
-- 
John Hascall                   ``An ill-chosen word is the fool's messenger.''
Systems Software Engineer
Project Vincent
Iowa State University Computation Center  +  Ames, IA  50011  +  515/294-9551


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lousy NFS performance
  1994-06-08 17:22 Lousy NFS performance John Hascall
@ 1994-06-08 23:25 ` Daniel S. Riley
  1994-06-10 19:26   ` Eric Werme
  1994-06-10 18:55 ` Eric Werme
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel S. Riley @ 1994-06-08 23:25 UTC (permalink / raw)



In article <2t4up1$8e2@news.iastate.edu>,
john@iastate.edu (John Hascall) writes:
John> Why is the nfs write performance so abysmal?  My first suspicion
John> was they were doing "synchronous" NFS writes, but from my
John> perusal of the OSF/1 nfs_server.c source this appears not to be
John> the case. (correct?)

I don't have source to peruse, but the 'mount(1)' man page would seem
to imply that it does do synchronous writes unless you mount with the
'nosync' option (I certainly hope it works that way, as the default
ought to conform to the NFS spec).

Anyway, I'd recommend trying it with 'mount -o nosync' and seeing what
happens.

-- 
-Dan Riley                          Internet: dsr@lns598.tn.cornell.edu
-Wilson Lab, Cornell University     HEPNET/SPAN: lns598::dsr (44630::dsr)
	      "Distance means nothing/To me." -Kate Bush


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lousy NFS performance
  1994-06-08 17:22 Lousy NFS performance John Hascall
  1994-06-08 23:25 ` Daniel S. Riley
@ 1994-06-10 18:55 ` Eric Werme
  1994-06-12 15:22   ` John Hascall
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Werme @ 1994-06-10 18:55 UTC (permalink / raw)


john@iastate.edu (John Hascall) writes:

>2 DEC AXP3000/600s, 256MB, 3xRZ26, DEC OSF/1 V1.3 (Rev. 111)
>connected by an otherwise idle GIGAswitch.
>Testing with the Bonnie I/O benchmark.

>Comparing local disk performance, vs. using one as an NFS server for the other.

>              -------Sequential Output-------- ---Sequential Input-- --Random--
>              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
>Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
>local     256  2113 45.6  2359  9.1  1179  4.6  2474 59.7  3010  6.7 108.5  3.0
>nfs       256   523 11.5   538  2.7   897  6.5  3747 88.2  3004  8.2  98.0  3.7

>Why is the nfs write performance so abysmal?  My first suspicion was they
>were doing "synchronous" NFS writes, but from my perusal of the OSF/1
>nfs_server.c source this appears not to be the case. (correct?)

We do synchronous writes, in accordance with the NFS spec.  We also do
UDP checksums, but they don't slow down an Alpha much.  A straightforward
implmentation of NFS leaves you doing three seeks for each write, and that's
what kills performance.  We use a technique called Write Gathering that
defers responding to a write if more are arriving.  Later the data and metadata
are written to the disk, and several replies are released at once.

Important variables:

- Number of nfsiods
  Try running seven nfsiods on the client.  I think the 1.3 default is four.

- Number of nfsds
  and eight nfsds on the server.

- Disk type
  Sriping several together helps a lot.

In a 1994 Summer Usenix paper, we have preliminary figures for OSF/1 V3.0
for NFS over FDDI, talking to RZ28s in a four way stripe.  15 nfsiods, 16 nfsds.

When writing a 40MB file 404 KB/sec when write gathering is disabled,
2263 KB/sec with it enabled and  5022 KB/sec with presto. (I don't think
you will see that with V1.3, as we've done some tuning since then.)

NFS V3, which has safe async writes, gave us 6105 without presto and 6425
with presto.  Write gathering isn't used with async writes as it buys
nothing but complexity and increased response time.  The write rate to
a single RZ28 is about 2.2 MB/sec, similar to the RZ26.

You also didn't say if you bought the machine for high NFS performance.
If you consider it important, buy presto for your V2 clients and upgrade
to V3.0 when it gets released.  It's in field test now.

FYI, the following is from the V3.0 man page for nfsiod.  This text is
not in the V1.3 man page:

  The optimum number of nfsiod daemons to run depends on many variables, such
  as how quickly the client will be writing, how many files will be accessed
  simultaneously, and the behaviour of the NFS server. For use with a DEC
  OSF/1 server, 7 is a good number of nfsiod daemons for most systems.

  When reading, if the client believes the process is reading a file sequen-
  tially, it requests an nfsiod daemon to read a block ahead of what the pro-
  cess is currently requesting.  If the readahead completes before the pro-
  cess asks for that block, then the subsequent read system call for that
  data completes immediately and does not have to wait for the NFS request to
  complete.  Read ahead will be triggered again so the read may find that
  next block available as well.

  When writing a file, the client takes the process's data, passes the
  request to an nfsiod daemon and immediately returns to the process.  If the
  process is writing data faster than the network or server can process, then
  eventually all the nfsiod daemons become busy and the process has to handle
  a NFS write itself.  This means the process has to wait until the server
  finishes the write.  For DEC OSF/1 servers, the NFS block size is 8Kb and
  UFS tries to cluster I/O 64Kbs at a time.  If the client is running with 7
  nfsiod daemons then 8 write requests can be in progress at once.  This
  allows the client and server to write data 64Kbs at a time and is the rea-
  son for recommending 7 nfsiod daemons.

BTW, 538 KB/sec is not "abysmal" NFS performance.
-- 
Eric (Ric) Werme		| werme@zk3.dec.com
Digital Equipment Corp.		| This space intentionally left blank.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lousy NFS performance
  1994-06-08 23:25 ` Daniel S. Riley
@ 1994-06-10 19:26   ` Eric Werme
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Werme @ 1994-06-10 19:26 UTC (permalink / raw)


dsr@lns598.tn.cornell.edu (Daniel S. Riley) writes:

>I don't have source to peruse, but the 'mount(1)' man page would seem
>to imply that it does do synchronous writes unless you mount with the
>'nosync' option (I certainly hope it works that way, as the default
>ought to conform to the NFS spec).

This is something else and doesn't affect NFS.  For UFS, synchronous writes
means that write() waits for I/O to complete.  The default is asynchronous
writes, but I believe we do a sync on close.  Also, any write that touches
the last byte of a 8K block will write that block.
-- 
Eric (Ric) Werme		| werme@zk3.dec.com
Digital Equipment Corp.		| This space intentionally left blank.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Lousy NFS performance
  1994-06-10 18:55 ` Eric Werme
@ 1994-06-12 15:22   ` John Hascall
  0 siblings, 0 replies; 5+ messages in thread
From: John Hascall @ 1994-06-12 15:22 UTC (permalink / raw)


john@iastate.edu (John Hascall) writes:
    2 DEC AXP3000/600s, 256MB, 3xRZ26, DEC OSF/1 V1.3 (Rev. 111)
    connected by an otherwise idle GIGAswitch.
    Testing with the Bonnie I/O benchmark.

              -------Sequential Output-------- ---Sequential Input-- --Random--
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
local     256  2113 45.6  2359  9.1  1179  4.6  2474 59.7  3010  6.7 108.5  3.0
nfs       256   523 11.5   538  2.7   897  6.5  3747 88.2  3004  8.2  98.0  3.7

    Why is the nfs write performance so abysmal?  My first suspicion was they
    were doing "synchronous" NFS writes, but from my perusal of the OSF/1
    nfs_server.c source this appears not to be the case. (correct?)

Eric Werme <werme@zk3.dec.com> wrote:
    We do synchronous writes, in accordance with the NFS spec.
    [...checksums done, write gathering...]

    Important variables:
    Number of nfsiods  --  Try running seven nfsiods on the client.
    Number of nfsds    --  and eight nfsds on the server.

    NFS V3, which has safe async writes ...
    to V3.0 when it gets released.  It's in field test now.

    BTW, 538 KB/sec is not "abysmal" NFS performance.


Thanks for the advice, we'll be looking forward to V3.0.
BTW, 538 KB/s is abysmal to us -- it is less than we are getting
with DECstation 5000/240 NFS servers with old RZ57/58s...
(with the dread "async write" nfs mod).

Also bumping up to 12 nfsiods (which appears to be the max nfssetup
will allow) and 24 nfsds got:

              -------Sequential Output-------- ---Sequential Input-- --Random--
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
          256   936 20.0   863  3.5  1139  6.8  3556 86.3  3025  8.3 104.9  4.0

(I still think I'll try to make the evil async mod while we wait for V3.0)

John
-- 
John Hascall                   ``An ill-chosen word is the fool's messenger.''
Systems Software Engineer
Project Vincent
Iowa State University Computation Center  +  Ames, IA  50011  +  515/294-9551


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1994-06-12 15:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-08 17:22 Lousy NFS performance John Hascall
1994-06-08 23:25 ` Daniel S. Riley
1994-06-10 19:26   ` Eric Werme
1994-06-10 18:55 ` Eric Werme
1994-06-12 15:22   ` John Hascall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox