Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Any way to turn off NFS V2 unbuffered writes ?
@ 1996-05-08  4:00 Thomas Leitner
  1996-05-08  4:00 ` Thomas Leitner
  1996-05-10  4:00 ` Eric Werme
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Leitner @ 1996-05-08  4:00 UTC (permalink / raw)



Hi,

My DEC 3000/600 here is used as both, a workstation and a server for
a Sparc 20, a DecStation 5000/33 and a Linux box. All four machines
are compiling the same piece of software every now and then and mount
it via NFS from the Alpha. The Sparc 20 runs Solaris 2.5 and mounts it
via NFS V3 and the others use NFS V2.
 
Well: I would think that the local machine (the Alpha) completes the
compilation first but I'm wrong. The Sparc 20 is the winner, then
comes the Alpha, then the Linux box and the DecStation 5000/33 
comes last.

During the whole process, the server disk is very very busy.

I think, the reason for that is, that NFS V3 caches so much on the
client side and additionally doesn't do unbuffered writes. So
the Sparc 20 comes first. The OSF/1 box as a server is almost
blocked (actually its disk accesses) because the other two
machines (the Linux and Decstation) cause every single write
access to be written to disk unbuffered. This slows it down
considerably.

So my question: is there any way to make NFS V2 writes buffered
on the server side as well? I understand that this is non-standard
but data integrity is not so important here because the written files
are not shared with any other machines on the net.

Thanks -- Tom

-- 
Tom Leitner, tom@finwds01.tu-graz.ac.at              |\      _,,,---,,_
Dept. of Communications                         zzz. /,`.-'`'    -.  ;-;;,_.
Graz University of Technology                       |,4-  ) )-,_. ,\ (  `'-'
Inffeldgasse 12                                    '---''(_/--'  `-'\_)
A-8010 Graz / Austria / Europe, Phone: +43-316-873-7455, Fax: +43-316-463-697
WWW home page: http://wiis.tu-graz.ac.at/people/tom.html



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

* Re: Any way to turn off NFS V2 unbuffered writes ?
  1996-05-08  4:00 Any way to turn off NFS V2 unbuffered writes ? Thomas Leitner
@ 1996-05-08  4:00 ` Thomas Leitner
  1996-05-10  4:00 ` Eric Werme
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Leitner @ 1996-05-08  4:00 UTC (permalink / raw)



I forgot to mention that the file system on the Alpha is AdvFS and
the DU version is 3.2C.

Tom

-- 
Tom Leitner, tom@finwds01.tu-graz.ac.at              |\      _,,,---,,_
Dept. of Communications                         zzz. /,`.-'`'    -.  ;-;;,_.
Graz University of Technology                       |,4-  ) )-,_. ,\ (  `'-'
Inffeldgasse 12                                    '---''(_/--'  `-'\_)
A-8010 Graz / Austria / Europe, Phone: +43-316-873-7455, Fax: +43-316-463-697
WWW home page: http://wiis.tu-graz.ac.at/people/tom.html



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

* Re: Any way to turn off NFS V2 unbuffered writes ?
  1996-05-08  4:00 Any way to turn off NFS V2 unbuffered writes ? Thomas Leitner
  1996-05-08  4:00 ` Thomas Leitner
@ 1996-05-10  4:00 ` Eric Werme
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Werme @ 1996-05-10  4:00 UTC (permalink / raw)



tom@finwds01.tu-graz.ac.at (Thomas Leitner) writes:

>My DEC 3000/600 here is used as both, a workstation and a server for
>a Sparc 20, a DecStation 5000/33 and a Linux box. All four machines
>are compiling the same piece of software every now and then and mount
>it via NFS from the Alpha. The Sparc 20 runs Solaris 2.5 and mounts it
>via NFS V3 and the others use NFS V2.
> 
>Well: I would think that the local machine (the Alpha) completes the
>compilation first but I'm wrong. The Sparc 20 is the winner, then
>comes the Alpha, then the Linux box and the DecStation 5000/33 
>comes last.

Comparing compiler timings is extremely problematic.  The tend to be
vastly different pieces of code, doing vastly different amount of
optimization.  I doubt the timing differences are due to NFS.

>I think, the reason for that is, that NFS V3 caches so much on the
>client side and additionally doesn't do unbuffered writes.

Well, hang on.  While V3 supports "safe asynchronous writes", the term the
NFS community uses, most competent V2 implementations do buffered writes.
the biod(8) (nfsiod(8) on the Alpha) program spawns processes to accept
and shepard writes and read ahead.  This allows the client process initiating
the file system writes to continue without blocking waiting for the
write reply from the server.  This also speeds up NFS V3.

>...  The OSF/1 box as a server is almost
>blocked (actually its disk accesses) because the other two
>machines (the Linux and Decstation) cause every single write
>access to be written to disk unbuffered. This slows it down
>considerably.

Have you compared the compile time on the Alpha with and without the
remote compiles going on?  The OS is initiating disk writes every time
write data reaches the end of a 8 KB page boundary.  It does that for
NFS V2, V3, ufs, and I believe Advfs.  NFS V2 differs in that a write
reply is not returned until all the meta data is synced to the disk, and
this means additional writes (with syncs).  To reduce that I/O, we use
a technique we call "write gathering" where we defer writing the metadata
if it appears more writes for the same file have arrived.  We even sleep
a bit to give the net a better chance at getting them in.  Once we're
convinced that no more are arriving soon, then we sync the metadata once
and send replies to each of the gathered writes.

>So my question: is there any way to make NFS V2 writes buffered
>on the server side as well?

With write gathering, we already do limited buffering.  It does
require biods or similar technology on the client end.

> I understand that this is non-standard
>but data integrity is not so important here because the written files
>are not shared with any other machines on the net.

There is no way to disable the synchronous write behaviour seen by the
client.  One of the key reasons for synchronous writes is for single
client environments!  Writes to swap areas, write errors, and
sometimes disk full errors generally want to be reported, even for
data not being shared.
-- 
Eric (Ric) Werme         |  werme@zk3.dec.com
Digital Equipment Corp.  |  This space intentionally left blank.



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

end of thread, other threads:[~1996-05-10  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-08  4:00 Any way to turn off NFS V2 unbuffered writes ? Thomas Leitner
1996-05-08  4:00 ` Thomas Leitner
1996-05-10  4:00 ` Eric Werme

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