* Is NFS v4 stable and recommend to use now?
@ 2008-10-02 16:49 Roy M.
[not found] ` <beaf78240810020949j703d95cvab1c44f33bff7019-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Roy M. @ 2008-10-02 16:49 UTC (permalink / raw)
To: linux-nfs
Hello,
We are just using v3 for quite a long time, very stable, performance
are not bad but like many others, want to explore if possible to have
a better throughput.
Seems that are not many benchmark in the web about v4 vs v3 for
performance, etc. Anyone mind sharing some experience? What are the
real advantages in using v4?
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread[parent not found: <beaf78240810020949j703d95cvab1c44f33bff7019-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Is NFS v4 stable and recommend to use now? [not found] ` <beaf78240810020949j703d95cvab1c44f33bff7019-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2008-10-02 17:17 ` J. Bruce Fields 2008-10-02 17:34 ` Roy M. 2008-10-02 17:41 ` Jim Rees 0 siblings, 2 replies; 9+ messages in thread From: J. Bruce Fields @ 2008-10-02 17:17 UTC (permalink / raw) To: Roy M.; +Cc: linux-nfs On Fri, Oct 03, 2008 at 12:49:50AM +0800, Roy M. wrote: > Hello, > > We are just using v3 for quite a long time, very stable, performance > are not bad but like many others, want to explore if possible to have > a better throughput. Raw throughput should be the same. And I think the little benchmarking I've seen has found that to be true. If you're just doing big I/O to a few files, that may be all you care about. If you're doing something more complicated then the situation isn't well understood yet. > Seems that are not many benchmark in the web about v4 vs v3 for > performance, etc. Anyone mind sharing some experience? What are the > real advantages in using v4? In theory: if you're doing file locking or reopening files a lot, then you may see a benefit from v4 delegations (which permit the client in some situations to do those operations without telling the server), and I do recall seeing some improvements e.g. with kernel compiles (which tend to reopen a small set of files frequently). --b. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is NFS v4 stable and recommend to use now? 2008-10-02 17:17 ` J. Bruce Fields @ 2008-10-02 17:34 ` Roy M. [not found] ` <beaf78240810021034k3cb7db69p7ac458b8a3cfbb28-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2008-10-02 17:41 ` Jim Rees 1 sibling, 1 reply; 9+ messages in thread From: Roy M. @ 2008-10-02 17:34 UTC (permalink / raw) To: J. Bruce Fields; +Cc: linux-nfs Hello, On Fri, Oct 3, 2008 at 1:17 AM, J. Bruce Fields <bfields@fieldses.org> wrote: > On Fri, Oct 03, 2008 at 12:49:50AM +0800, Roy M. wrote: > > If you're just doing big I/O to a few files, that may be all you care > about. If you're doing something more complicated then the situation > isn't well understood yet. > Do you mean for few files with large size stored in NFS, then maybe not benefit too much from NFS4, while if I have many files, need to fetch to client in parallel and in high concurrency, then it might be a good choice? (in fact, I also heard client side caching in v4 is better) Besides, can I say v4 is the recommended to be used in production right now? Thanks. ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <beaf78240810021034k3cb7db69p7ac458b8a3cfbb28-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Is NFS v4 stable and recommend to use now? [not found] ` <beaf78240810021034k3cb7db69p7ac458b8a3cfbb28-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2008-10-03 21:52 ` J. Bruce Fields 2008-10-04 13:34 ` Roy M. 0 siblings, 1 reply; 9+ messages in thread From: J. Bruce Fields @ 2008-10-03 21:52 UTC (permalink / raw) To: Roy M.; +Cc: linux-nfs On Fri, Oct 03, 2008 at 01:34:51AM +0800, Roy M. wrote: > Hello, > > On Fri, Oct 3, 2008 at 1:17 AM, J. Bruce Fields <bfields@fieldses.org> wrote: > > On Fri, Oct 03, 2008 at 12:49:50AM +0800, Roy M. wrote: > > > > If you're just doing big I/O to a few files, that may be all you care > > about. If you're doing something more complicated then the situation > > isn't well understood yet. > > > > Do you mean for few files with large size stored in NFS, then maybe > not benefit too much from NFS4, while if I have many files, need to > fetch to client in parallel and in high concurrency, then it might be > a good choice? (in fact, I also heard client side caching in v4 is > better) I doubt the pattern of I/O really matters much--it's the opens and closes themselves that matter. (In v3, close-to-open cache consistency requires that the client always fetch file attributes from the server on an open. That means open() is always going to take at least the ping time to the server. In v4 in some situations the client can do the open with no call to the server at all--by comparison such an open is almost instantaneous. If you're doing a ton of opens all in a row, that may make a difference.) --b. > > > Besides, can I say v4 is the recommended to be used in production right now? > > Thanks. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is NFS v4 stable and recommend to use now? 2008-10-03 21:52 ` J. Bruce Fields @ 2008-10-04 13:34 ` Roy M. [not found] ` <beaf78240810040634i672904c7g51e02855227a9d7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: Roy M. @ 2008-10-04 13:34 UTC (permalink / raw) To: J. Bruce Fields; +Cc: linux-nfs Hello, On Sat, Oct 4, 2008 at 5:52 AM, J. Bruce Fields <bfields@fieldses.org> wrote: > I doubt the pattern of I/O really matters much--it's the opens and > closes themselves that matter. > > (In v3, close-to-open cache consistency requires that the client always > fetch file attributes from the server on an open. That means open() is > always going to take at least the ping time to the server. In v4 in > some situations the client can do the open with no call to the server at > all--by comparison such an open is almost instantaneous. If you're > doing a ton of opens all in a row, that may make a difference.) > In existing v3, you mean even if a file is cached locally by client, in each open, the file attributes need to be read from NFS server everytime? But I just wonder without reading the NFS server, how the consistency was maintained... Thanks. ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <beaf78240810040634i672904c7g51e02855227a9d7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Is NFS v4 stable and recommend to use now? [not found] ` <beaf78240810040634i672904c7g51e02855227a9d7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2008-10-04 20:48 ` J. Bruce Fields 2008-10-05 0:20 ` Marcelo Leal 0 siblings, 1 reply; 9+ messages in thread From: J. Bruce Fields @ 2008-10-04 20:48 UTC (permalink / raw) To: Roy M.; +Cc: linux-nfs On Sat, Oct 04, 2008 at 09:34:49PM +0800, Roy M. wrote: > Hello, > > On Sat, Oct 4, 2008 at 5:52 AM, J. Bruce Fields <bfields@fieldses.org> wrote: > > I doubt the pattern of I/O really matters much--it's the opens and > > closes themselves that matter. > > > > (In v3, close-to-open cache consistency requires that the client always > > fetch file attributes from the server on an open. That means open() is > > always going to take at least the ping time to the server. In v4 in > > some situations the client can do the open with no call to the server at > > all--by comparison such an open is almost instantaneous. If you're > > doing a ton of opens all in a row, that may make a difference.) > > > > In existing v3, you mean even if a file is cached locally by client, > in each open, the file attributes need to be read from NFS server > everytime? Right. The client has to do that to check whether someone else has changed the file. See http://nfs.sourceforge.net/#faq_a8 for an explanation of close-to-open cache consistency, which is what requires this. > But I just wonder without reading the NFS server, how the consistency > was maintained... I'm afraid I don't understand the question. --b. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is NFS v4 stable and recommend to use now? 2008-10-04 20:48 ` J. Bruce Fields @ 2008-10-05 0:20 ` Marcelo Leal 0 siblings, 0 replies; 9+ messages in thread From: Marcelo Leal @ 2008-10-05 0:20 UTC (permalink / raw) To: J. Bruce Fields; +Cc: Roy M., linux-nfs Actually, that is the reason why nfsv3 preformance does not scales increasing the client's memory. I did a lot of tests about that ( http://www.posix.brte.com.br/blog/?p=89 ), and the overhead of the protocol (to check the server informations about the file for consistency), was the nfsv3 stopper. But NFS is a protocol for sharing resources, and that is how it is supposed to work, no problem with that. I think NFSv4 is handling that problem with some kind of "delegation", where the client has "authority" on the filesystem or file.. so, working more or less like iscsi in this regard. Leal. 2008/10/4 J. Bruce Fields <bfields@fieldses.org>: > On Sat, Oct 04, 2008 at 09:34:49PM +0800, Roy M. wrote: >> Hello, >> >> On Sat, Oct 4, 2008 at 5:52 AM, J. Bruce Fields <bfields@fieldses.org> wrote: >> > I doubt the pattern of I/O really matters much--it's the opens and >> > closes themselves that matter. >> > >> > (In v3, close-to-open cache consistency requires that the client always >> > fetch file attributes from the server on an open. That means open() is >> > always going to take at least the ping time to the server. In v4 in >> > some situations the client can do the open with no call to the server at >> > all--by comparison such an open is almost instantaneous. If you're >> > doing a ton of opens all in a row, that may make a difference.) >> > >> >> In existing v3, you mean even if a file is cached locally by client, >> in each open, the file attributes need to be read from NFS server >> everytime? > > Right. The client has to do that to check whether someone else has > changed the file. See http://nfs.sourceforge.net/#faq_a8 for an > explanation of close-to-open cache consistency, which is what requires > this. > >> But I just wonder without reading the NFS server, how the consistency >> was maintained... > > I'm afraid I don't understand the question. > > --b. > -- > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- [http://www.posix.brte.com.br/blog] --------==== pOSix rules ====------- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is NFS v4 stable and recommend to use now? 2008-10-02 17:17 ` J. Bruce Fields 2008-10-02 17:34 ` Roy M. @ 2008-10-02 17:41 ` Jim Rees 2008-10-02 19:15 ` Peter Staubach 1 sibling, 1 reply; 9+ messages in thread From: Jim Rees @ 2008-10-02 17:41 UTC (permalink / raw) To: J. Bruce Fields; +Cc: Roy M., linux-nfs J. Bruce Fields wrote: Raw throughput should be the same. And I think the little benchmarking I've seen has found that to be true. Actually v4 is better on fast nets because you can make the iosize bigger. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is NFS v4 stable and recommend to use now? 2008-10-02 17:41 ` Jim Rees @ 2008-10-02 19:15 ` Peter Staubach 0 siblings, 0 replies; 9+ messages in thread From: Peter Staubach @ 2008-10-02 19:15 UTC (permalink / raw) To: Jim Rees; +Cc: J. Bruce Fields, Roy M., linux-nfs Jim Rees wrote: > J. Bruce Fields wrote: > > Raw throughput should be the same. And I think the little benchmarking > I've seen has found that to be true. > > Actually v4 is better on fast nets because you can make the iosize bigger. > How is that? NFSv3 supports a 32 bit transfer size and runs over TCP, just the same as NFSv4. The benefits should come via the use of delegations to decrease some latencies. ps ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-10-05 0:20 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 16:49 Is NFS v4 stable and recommend to use now? Roy M.
[not found] ` <beaf78240810020949j703d95cvab1c44f33bff7019-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-02 17:17 ` J. Bruce Fields
2008-10-02 17:34 ` Roy M.
[not found] ` <beaf78240810021034k3cb7db69p7ac458b8a3cfbb28-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-03 21:52 ` J. Bruce Fields
2008-10-04 13:34 ` Roy M.
[not found] ` <beaf78240810040634i672904c7g51e02855227a9d7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-04 20:48 ` J. Bruce Fields
2008-10-05 0:20 ` Marcelo Leal
2008-10-02 17:41 ` Jim Rees
2008-10-02 19:15 ` Peter Staubach
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.