NFS2 question, help, pls!
I have very very fast network and is testing NFS2 over this kind of network. I noticed that for standard work like read/write a large file, compile kernels, the performance of NFS2 is good. But if I try to decompress kernel tar file. The standard ext2 takes 28s while NFS2 takes 81s. Also, if I remove the kernel source code tree, ext2 takes 19s but NFS2 takes 44s.
Why? (You can assume that network is very fast. ) Is there any improvements in NFS3/4 on this issue? If so, how?
Many thanks in advance for your kind help!
xin
ty den 12.04.2005 Klokka 15:22 (-0400) skreiv Xin Zhao:
Quoted 9 lines
I have very very fast network and is testing NFS2 over this kind of network. I noticed that for standard work like read/write a large file, compile kernels, the performance of NFS2 is good. But if I try to decompress kernel tar file. The standard ext2 takes 28s while NFS2 takes 81s. Also, if I remove the kernel source code tree, ext2 takes 19s but NFS2 takes 44s.
Why? (You can assume that network is very fast. ) Is there any improvements in NFS3/4 on this issue? If so, how?
NFSv2 requires the server to immediately write all data to disk before it can reply to the RPC write request (synchronous writes).
NFSv3 and v4 both have the ability to cache writes safely. The following paper http://www.netapp.com/ftp/NFSv3_Rev_3.pdf has full details on how and why.
Cheers,
Trond
Signature · 1 line
Trond Myklebust <[email protected]>
Quoted 8 lines · Trond Myklebust
ty den 12.04.2005 Klokka 15:22 (-0400) skreiv Xin Zhao:
Quoted 7 lines
I have very very fast network and is testing NFS2 over this kind of network. I noticed that for standard work like read/write a large file, compile kernels, the performance of NFS2 is good. But if I try to decompress kernel tar file. The standard ext2 takes 28s while NFS2 takes 81s. Also, if I remove the kernel source code tree, ext2 takes 19s but NFS2 takes 44s.
Quoted 5 lines
Quoted 2 lines
Why? (You can assume that network is very fast. ) Is there any improvements in NFS3/4 on this issue? If so, how?
NFSv2 requires the server to immediately write all data to disk before it can reply to the RPC write request (synchronous writes).
This behavior can be disabled with the "async" export option for NFSv2.
Lee