public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NFS2 question, help, pls!
@ 2005-04-12 19:22 Xin Zhao
  2005-04-12 22:26 ` Trond Myklebust
  0 siblings, 1 reply; 3+ messages in thread
From: Xin Zhao @ 2005-04-12 19:22 UTC (permalink / raw)
  To: linux-kernel

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

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

* Re: NFS2 question, help, pls!
  2005-04-12 19:22 NFS2 question, help, pls! Xin Zhao
@ 2005-04-12 22:26 ` Trond Myklebust
  2005-04-12 23:10   ` Lee Revell
  0 siblings, 1 reply; 3+ messages in thread
From: Trond Myklebust @ 2005-04-12 22:26 UTC (permalink / raw)
  To: Xin Zhao; +Cc: linux-kernel

ty den 12.04.2005 Klokka 15:22 (-0400) skreiv Xin Zhao:
> 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

-- 
Trond Myklebust <trond.myklebust@fys.uio.no>


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

* Re: NFS2 question, help, pls!
  2005-04-12 22:26 ` Trond Myklebust
@ 2005-04-12 23:10   ` Lee Revell
  0 siblings, 0 replies; 3+ messages in thread
From: Lee Revell @ 2005-04-12 23:10 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: Xin Zhao, linux-kernel

On Tue, 2005-04-12 at 15:26 -0700, Trond Myklebust wrote:
> ty den 12.04.2005 Klokka 15:22 (-0400) skreiv Xin Zhao:
> > 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).

This behavior can be disabled with the "async" export option for NFSv2.

Lee


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

end of thread, other threads:[~2005-04-12 23:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-12 19:22 NFS2 question, help, pls! Xin Zhao
2005-04-12 22:26 ` Trond Myklebust
2005-04-12 23:10   ` Lee Revell

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