* Why is NFS write so slow?
@ 2005-03-21 8:29 Xin Zhao
2005-03-21 10:15 ` Matthias Andree
2005-03-21 10:46 ` Raphael Jacquot
0 siblings, 2 replies; 3+ messages in thread
From: Xin Zhao @ 2005-03-21 8:29 UTC (permalink / raw)
To: linux-kernel
Sorry for the dumb question.
I am trying to develop a new filesystem based on NFS, which runs in a
very fast network environment. I used the source code of NFS2, but
noticed that NFS write is very slow. Even if I changed wsize to 8192,
it still can only reach 1MB/s. I don't know why. Because the network
is extremely fast (over 100MB/s), I don't think network is the only
reason. Any other reason?
Is the NFS write synchronous? Does that means the NFS server will not
return before the data is flushed to disk? Because nfsd_write will
close the file every time, I will assume that the data will be flushed
to disk before return. However, even if I change nfsd_write to stop
closing file, the write speed is still very slow. Can someone give me
some advice about this?
Thanks in advance!
-x
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why is NFS write so slow?
2005-03-21 8:29 Why is NFS write so slow? Xin Zhao
@ 2005-03-21 10:15 ` Matthias Andree
2005-03-21 10:46 ` Raphael Jacquot
1 sibling, 0 replies; 3+ messages in thread
From: Matthias Andree @ 2005-03-21 10:15 UTC (permalink / raw)
To: linux-kernel
On Mon, 21 Mar 2005, Xin Zhao wrote:
> I am trying to develop a new filesystem based on NFS, which runs in a
> very fast network environment. I used the source code of NFS2, but
> noticed that NFS write is very slow. Even if I changed wsize to 8192,
> it still can only reach 1MB/s. I don't know why. Because the network
> is extremely fast (over 100MB/s), I don't think network is the only
> reason. Any other reason?
>
> Is the NFS write synchronous? Does that means the NFS server will not
> return before the data is flushed to disk?
Yes, that is the case here. You can use export or mount options to make
NFS asynchronous.
Plus, NFS3 has write clustering which may be worth a try depending on
your workload.
--
Matthias Andree
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why is NFS write so slow?
2005-03-21 8:29 Why is NFS write so slow? Xin Zhao
2005-03-21 10:15 ` Matthias Andree
@ 2005-03-21 10:46 ` Raphael Jacquot
1 sibling, 0 replies; 3+ messages in thread
From: Raphael Jacquot @ 2005-03-21 10:46 UTC (permalink / raw)
To: Xin Zhao; +Cc: linux-kernel
Xin Zhao wrote:
> Sorry for the dumb question.
>
> I am trying to develop a new filesystem based on NFS, which runs in a
> very fast network environment. I used the source code of NFS2, but
> noticed that NFS write is very slow. Even if I changed wsize to 8192,
> it still can only reach 1MB/s. I don't know why. Because the network
> is extremely fast (over 100MB/s), I don't think network is the only
> reason. Any other reason?
>
> Is the NFS write synchronous? Does that means the NFS server will not
> return before the data is flushed to disk? Because nfsd_write will
> close the file every time, I will assume that the data will be flushed
> to disk before return. However, even if I change nfsd_write to stop
> closing file, the write speed is still very slow. Can someone give me
> some advice about this?
>
> Thanks in advance!
because NFS is now at version 4, so you're 2 versions late ?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-21 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-21 8:29 Why is NFS write so slow? Xin Zhao
2005-03-21 10:15 ` Matthias Andree
2005-03-21 10:46 ` Raphael Jacquot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox