From: werme@alingo.zk3.dec.com (Eric Werme)
Subject: Re: Any way to turn off NFS V2 unbuffered writes ?
Date: 1996/05/10 [thread overview]
Message-ID: <werme.831731111@alingo.zk3.dec.com> (raw)
In-Reply-To: 4mq8ui$ffi@fstgal00.tu-graz.ac.at
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.
prev parent reply other threads:[~1996-05-10 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox