All of lore.kernel.org
 help / color / mirror / Atom feed
* Tunable timeout in cifs module.
@ 2015-10-20  8:20 Sachin Prabhu
       [not found] ` <1445329210.10711.13.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Sachin Prabhu @ 2015-10-20  8:20 UTC (permalink / raw)
  To: French, Steve; +Cc: linux-cifs

Hello Steve/linux-cifs,

We have received a request to make the timeout in the cifs module
tunable.

I have gone through the code to understand timeouts in the cifs client.
http://sprabhu.blogspot.in/2015/08/investigation-into-effects-of-server
.html

The way to allow user settable timeout values is to make the value of
 SMB_ECHO_INTERVAL tunable. Do you think this is a good idea?

Sachin Prabhu

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

* Re: Tunable timeout in cifs module.
       [not found] ` <1445329210.10711.13.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-10-20 17:21   ` Steve French
       [not found]     ` <CAH2r5muCJ18-94iTR7kDhoxn9C3q62qR+Vk_JyumQHugRmJ3KA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Steve French @ 2015-10-20 17:21 UTC (permalink / raw)
  To: Sachin Prabhu; +Cc: linux-cifs

On Tue, Oct 20, 2015 at 3:20 AM, Sachin Prabhu <sprabhu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> Hello Steve/linux-cifs,
>
> We have received a request to make the timeout in the cifs module
> tunable.
>
> I have gone through the code to understand timeouts in the cifs client.
> http://sprabhu.blogspot.in/2015/08/investigation-into-effects-of-server
> .html
>
> The way to allow user settable timeout values is to make the value of
>  SMB_ECHO_INTERVAL tunable. Do you think this is a good idea?

Seems like a reasonable idea - although we might want to treat this
differently for the case (longer timeouts? or different retry
behavior?) for the case of CA shares (or mounts with persistent handle
or resilient handle mount parms - the patches that I sent out a few
weeks ago). We also need to clean up reconnect behavior (byte range
lock recovery) and make sure for the persistent handle case (and
presumably resilient handles too) that we reopen all files on the
mount on reconnect.



-- 
Thanks,

Steve

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

* Re: Tunable timeout in cifs module.
       [not found]     ` <CAH2r5muCJ18-94iTR7kDhoxn9C3q62qR+Vk_JyumQHugRmJ3KA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-10-20 17:48       ` Steve French
  0 siblings, 0 replies; 3+ messages in thread
From: Steve French @ 2015-10-20 17:48 UTC (permalink / raw)
  To: Sachin Prabhu, samba-technical, Guenther Deschner; +Cc: linux-cifs

This reconnect discussion should probably be broadened to see how it
would change (the retry/timeout/reconnect) when we are tied into the
(samba, user space) Witness protocol client that Guenther and others
have been experimenting with.  Perhaps ioctls down to cifs.ko from the
witness protocol client can help us in failover more rapidly.
Similarly if we can try different reconnect strategies (if this share
is a dfs referral then we may already have replicas we can quickly
connect to).

See http://www.sambaxp.org/archive_data/SambaXP2015-SLIDES/wed/track1/sambaxp2015-wed-track1-Guenther_Deschner-ImplementingTheWitnessProtocolInSamba.pdf
for some early description of Guenther's work.

On Tue, Oct 20, 2015 at 12:21 PM, Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Tue, Oct 20, 2015 at 3:20 AM, Sachin Prabhu <sprabhu-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Hello Steve/linux-cifs,
>>
>> We have received a request to make the timeout in the cifs module
>> tunable.
>>
>> I have gone through the code to understand timeouts in the cifs client.
>> http://sprabhu.blogspot.in/2015/08/investigation-into-effects-of-server
>> .html
>>
>> The way to allow user settable timeout values is to make the value of
>>  SMB_ECHO_INTERVAL tunable. Do you think this is a good idea?
>
> Seems like a reasonable idea - although we might want to treat this
> differently for the case (longer timeouts? or different retry
> behavior?) for the case of CA shares (or mounts with persistent handle
> or resilient handle mount parms - the patches that I sent out a few
> weeks ago). We also need to clean up reconnect behavior (byte range
> lock recovery) and make sure for the persistent handle case (and
> presumably resilient handles too) that we reopen all files on the
> mount on reconnect.
>
>
>
> --
> Thanks,
>
> Steve



-- 
Thanks,

Steve

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

end of thread, other threads:[~2015-10-20 17:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20  8:20 Tunable timeout in cifs module Sachin Prabhu
     [not found] ` <1445329210.10711.13.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-20 17:21   ` Steve French
     [not found]     ` <CAH2r5muCJ18-94iTR7kDhoxn9C3q62qR+Vk_JyumQHugRmJ3KA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-20 17:48       ` Steve French

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.