2011-10-07 02:55:17

by Matt W. Benjamin

[permalink] [raw]
Subject: Re: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION

Hi Trond,

I appreciate your point of view. I appreciate Rick's comments. I hope some other comments will trickle in. Do I think you and Rick are saying the same thing? Not really. Do I think you're making sense when you imply I want to change the standard? No, I don't follow that. BIND_CONN_TO_SESSION is in the published standard. Can I show a dedicated back channel improves performance? Not at present. That's a sensible question. I think if the protocol in general is doing what it is intended to do, it should be possible for some workloads, at some point. (If callbacks are, somehow generally detrimental to performance, as you state, I think maybe we have some more work to do.) (I note only one more thing--I did raise this topic on list 12 months ago. Only Bruce commented, at the time.)

Thanks again,

Matt

--

Matt Benjamin

The Linux Box
206 South Fifth Ave. Suite 150
Ann Arbor, MI 48104

http://linuxbox.com

tel. 734-761-4689
fax. 734-769-8938
cel. 734-216-5309


2011-10-18 21:28:52

by david.noveck

[permalink] [raw]
Subject: RE: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION

> I have _always_ argued that callbacks should be the exception and not the rule,

Sounds right.

> due to the fact that in pretty much all cases the server will have to send
> out a NFS4ERR_DELAY result to whatever RPC call it is that triggered a callback.

I may disagree depending on what you mean by "petty much" always.

V4.1 does have callbacks that are specified so as to useful asynchronously, and
if people take advantage of them, they won't have this NFS4ERR_DELAY problem.

Examples are CB_NOTIFY, CB_RECALL_ANY, CB_PUSH_DELEG. Over time, future versions may
expand this list and make callbacks less exceptional, although not the rule.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Myklebust, Trond
Sent: Thursday, October 06, 2011 11:39 PM
To: Matt W. Benjamin
Cc: linux-nfs; nfs-ganesha-devel; nfsv4
Subject: Re: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION

> -----Original Message-----
> From: Matt W. Benjamin [mailto:[email protected]]
> Sent: Thursday, October 06, 2011 10:55 PM
> To: Myklebust, Trond
> Cc: linux-nfs; nfs-ganesha-devel; nfsv4
> Subject: Re: [nfsv4] back channel flags, CREATE_SESSION,
> BIND_CONN_TO_SESSION
>
> Hi Trond,
>
> I appreciate your point of view. I appreciate Rick's comments. I hope some
> other comments will trickle in. Do I think you and Rick are saying the same
> thing? Not really. Do I think you're making sense when you imply I want to
> change the standard? No, I don't follow that. BIND_CONN_TO_SESSION is in
> the published standard. Can I show a dedicated back channel improves

I never accused you of trying to change the standard. What I said was that you need to convince me that there is a good reason to accept two implementations of the same feature in the client.

> performance? Not at present. That's a sensible question. I think if the
> protocol in general is doing what it is intended to do, it should be possible for
> some workloads, at some point. (If callbacks are, somehow generally
> detrimental to performance, as you state, I think maybe we have some more
> work to do.) (I note only one more thing--I did raise this topic on list 12
> months ago. Only Bruce commented, at the time.)

Fair enough, but 12 months ago, rfc5661 was in last call status, and we were all trying to move on to final implementations.

I have _always_ argued that callbacks should be the exception and not the rule, due to the fact that in pretty much all cases the server will have to send out a NFS4ERR_DELAY result to whatever RPC call it is that triggered a callback. Nothing new there in NFSv4.1. I'll add that nor has anybody successfully argued that there is any change in NFSv4.1 compared to our existing NFSv4 implementations. NFSv4 delegation callbacks are (measurably) extremely slow, and so I'd expect the exact same behavior for NFSv4.1 layout recalls etc. Nothing has changed in NFSv4 callback technology to warrant an expectation of performance improvements.

IOW: Nobody (including you) has ever convinced me that we need to consider callbacks as a scalability issue. I'd require some pretty firm evidence before I could accept that as a fact. So far, all I have seen is more or less eloquent prose. No hard numbers.

Trond
_______________________________________________
nfsv4 mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/nfsv4


2011-10-18 22:59:46

by david.noveck

[permalink] [raw]
Subject: RE: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION

I meant CB_RECALL_ANY. The server can use this to make sure that it is
Likely to have an extra recallable object available in hand. If he indicates
the desire early, than the interaction is asynchronous, and so the first
request requesting the layout/delegation get that one and you start another
asynchronous operation to have another given back.

In some cases, not having space does not man DELAY but rather not getting the
delegation you want, with that being provided to the client by CB_RECALL_OBJ_AVAIL.

This sort of interaction suggests to me that requests and callbacks may wind up
being more connected than we have thought before and that we might address this in
some v4.x for x >= 3.


-----Original Message-----
From: Trond Myklebust [mailto:[email protected]]
Sent: Tuesday, October 18, 2011 6:39 PM
To: Noveck, David
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION

On Tue, 2011-10-18 at 17:28 -0400, [email protected] wrote:
> > I have _always_ argued that callbacks should be the exception and not the rule,
>
> Sounds right.
>
> > due to the fact that in pretty much all cases the server will have to send
> > out a NFS4ERR_DELAY result to whatever RPC call it is that triggered a callback.
>
> I may disagree depending on what you mean by "petty much" always.
>
> V4.1 does have callbacks that are specified so as to useful asynchronously, and
> if people take advantage of them, they won't have this NFS4ERR_DELAY problem.
>
> Examples are CB_NOTIFY, CB_RECALL_ANY, CB_PUSH_DELEG. Over time, future versions may
> expand this list and make callbacks less exceptional, although not the rule.

I'm not sure why you included CB_RECALL_ANY in the above list. Did you
mean CB_RECALLABLE_OBJ_AVAIL?

The main consumer of callbacks in NFSv4.1 is expected by some to be
layouts, which do not really have an asynchronous mode to notify you
when a particular layout has been made available.
Ditto for the NFSv4.0 number 1 consumer: delegations. The new
CB_PUSH_DELEG operation notifies you that you may now request a
delegation, but it doesn't help when you are just trying to OPEN a file,
and the server has to recall a delegation from someone else.

So I still think that NFS4ERR_DELAY will still be needed in order to
slow things down, unless we're careful about getting into these
situations where recalls are needed.

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Myklebust, Trond
> Sent: Thursday, October 06, 2011 11:39 PM
> To: Matt W. Benjamin
> Cc: linux-nfs; nfs-ganesha-devel; nfsv4
> Subject: Re: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION
>
> > -----Original Message-----
> > From: Matt W. Benjamin [mailto:[email protected]]
> > Sent: Thursday, October 06, 2011 10:55 PM
> > To: Myklebust, Trond
> > Cc: linux-nfs; nfs-ganesha-devel; nfsv4
> > Subject: Re: [nfsv4] back channel flags, CREATE_SESSION,
> > BIND_CONN_TO_SESSION
> >
> > Hi Trond,
> >
> > I appreciate your point of view. I appreciate Rick's comments. I hope some
> > other comments will trickle in. Do I think you and Rick are saying the same
> > thing? Not really. Do I think you're making sense when you imply I want to
> > change the standard? No, I don't follow that. BIND_CONN_TO_SESSION is in
> > the published standard. Can I show a dedicated back channel improves
>
> I never accused you of trying to change the standard. What I said was that you need to convince me that there is a good reason to accept two implementations of the same feature in the client.
>
> > performance? Not at present. That's a sensible question. I think if the
> > protocol in general is doing what it is intended to do, it should be possible for
> > some workloads, at some point. (If callbacks are, somehow generally
> > detrimental to performance, as you state, I think maybe we have some more
> > work to do.) (I note only one more thing--I did raise this topic on list 12
> > months ago. Only Bruce commented, at the time.)
>
> Fair enough, but 12 months ago, rfc5661 was in last call status, and we were all trying to move on to final implementations.
>
> I have _always_ argued that callbacks should be the exception and not the rule, due to the fact that in pretty much all cases the server will have to send out a NFS4ERR_DELAY result to whatever RPC call it is that triggered a callback. Nothing new there in NFSv4.1. I'll add that nor has anybody successfully argued that there is any change in NFSv4.1 compared to our existing NFSv4 implementations. NFSv4 delegation callbacks are (measurably) extremely slow, and so I'd expect the exact same behavior for NFSv4.1 layout recalls etc. Nothing has changed in NFSv4 callback technology to warrant an expectation of performance improvements.
>
> IOW: Nobody (including you) has ever convinced me that we need to consider callbacks as a scalability issue. I'd require some pretty firm evidence before I could accept that as a fact. So far, all I have seen is more or less eloquent prose. No hard numbers.
>
> Trond
> _______________________________________________
> nfsv4 mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/nfsv4
>
> _______________________________________________
> nfsv4 mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/nfsv4

--
Trond Myklebust
Linux NFS client maintainer

NetApp
[email protected]
http://www.netapp.com



2011-10-07 03:39:27

by Myklebust, Trond

[permalink] [raw]
Subject: RE: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION

PiAtL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XVlbnQg
cHJvc2UuIE5vIGhhcmQgbnVtYmVycy4NCg0KVHJvbmQNCg==

2011-10-18 22:38:40

by Myklebust, Trond

[permalink] [raw]
Subject: Re: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION

On Tue, 2011-10-18 at 17:28 -0400, [email protected] wrote:
> > I have _always_ argued that callbacks should be the exception and not the rule,
>
> Sounds right.
>
> > due to the fact that in pretty much all cases the server will have to send
> > out a NFS4ERR_DELAY result to whatever RPC call it is that triggered a callback.
>
> I may disagree depending on what you mean by "petty much" always.
>
> V4.1 does have callbacks that are specified so as to useful asynchronously, and
> if people take advantage of them, they won't have this NFS4ERR_DELAY problem.
>
> Examples are CB_NOTIFY, CB_RECALL_ANY, CB_PUSH_DELEG. Over time, future versions may
> expand this list and make callbacks less exceptional, although not the rule.

I'm not sure why you included CB_RECALL_ANY in the above list. Did you
mean CB_RECALLABLE_OBJ_AVAIL?

The main consumer of callbacks in NFSv4.1 is expected by some to be
layouts, which do not really have an asynchronous mode to notify you
when a particular layout has been made available.
Ditto for the NFSv4.0 number 1 consumer: delegations. The new
CB_PUSH_DELEG operation notifies you that you may now request a
delegation, but it doesn't help when you are just trying to OPEN a file,
and the server has to recall a delegation from someone else.

So I still think that NFS4ERR_DELAY will still be needed in order to
slow things down, unless we're careful about getting into these
situations where recalls are needed.

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Myklebust, Trond
> Sent: Thursday, October 06, 2011 11:39 PM
> To: Matt W. Benjamin
> Cc: linux-nfs; nfs-ganesha-devel; nfsv4
> Subject: Re: [nfsv4] back channel flags, CREATE_SESSION, BIND_CONN_TO_SESSION
>
> > -----Original Message-----
> > From: Matt W. Benjamin [mailto:[email protected]]
> > Sent: Thursday, October 06, 2011 10:55 PM
> > To: Myklebust, Trond
> > Cc: linux-nfs; nfs-ganesha-devel; nfsv4
> > Subject: Re: [nfsv4] back channel flags, CREATE_SESSION,
> > BIND_CONN_TO_SESSION
> >
> > Hi Trond,
> >
> > I appreciate your point of view. I appreciate Rick's comments. I hope some
> > other comments will trickle in. Do I think you and Rick are saying the same
> > thing? Not really. Do I think you're making sense when you imply I want to
> > change the standard? No, I don't follow that. BIND_CONN_TO_SESSION is in
> > the published standard. Can I show a dedicated back channel improves
>
> I never accused you of trying to change the standard. What I said was that you need to convince me that there is a good reason to accept two implementations of the same feature in the client.
>
> > performance? Not at present. That's a sensible question. I think if the
> > protocol in general is doing what it is intended to do, it should be possible for
> > some workloads, at some point. (If callbacks are, somehow generally
> > detrimental to performance, as you state, I think maybe we have some more
> > work to do.) (I note only one more thing--I did raise this topic on list 12
> > months ago. Only Bruce commented, at the time.)
>
> Fair enough, but 12 months ago, rfc5661 was in last call status, and we were all trying to move on to final implementations.
>
> I have _always_ argued that callbacks should be the exception and not the rule, due to the fact that in pretty much all cases the server will have to send out a NFS4ERR_DELAY result to whatever RPC call it is that triggered a callback. Nothing new there in NFSv4.1. I'll add that nor has anybody successfully argued that there is any change in NFSv4.1 compared to our existing NFSv4 implementations. NFSv4 delegation callbacks are (measurably) extremely slow, and so I'd expect the exact same behavior for NFSv4.1 layout recalls etc. Nothing has changed in NFSv4 callback technology to warrant an expectation of performance improvements.
>
> IOW: Nobody (including you) has ever convinced me that we need to consider callbacks as a scalability issue. I'd require some pretty firm evidence before I could accept that as a fact. So far, all I have seen is more or less eloquent prose. No hard numbers.
>
> Trond
> _______________________________________________
> nfsv4 mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/nfsv4
>
> _______________________________________________
> nfsv4 mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/nfsv4

--
Trond Myklebust
Linux NFS client maintainer

NetApp
[email protected]
http://www.netapp.com