All of lore.kernel.org
 help / color / mirror / Atom feed
* rdma connection close/reopen every 5 mins
@ 2017-04-26 17:23 scar
  2017-04-26 20:32 ` Chuck Lever
  0 siblings, 1 reply; 6+ messages in thread
From: scar @ 2017-04-26 17:23 UTC (permalink / raw)
  To: linux-nfs

Hello, I have setup NFS/RDMA on our infiniband network.  The OS is 
CentOS 6.8 with kernel 2.6.32-696.1.1.el6.x86_64 and I am using 
rdma/nfs-rdma packages from the OS version 6.9_4.1.  The connection is 
successful:

10.10.11.249:/newwing on /newwing type nfs 
(rw,rdma,port=20049,addr=10.10.11.249)

except in /var/log/messages I am always seeing this exactly every 5 minutes:
  kernel: rpcrdma: connection to 10.10.11.249:20049 closed (-103)
  kernel: rpcrdma: connection to 10.10.11.249:20049 on mlx4_0, memreg 6 
slots 32 ird 16

I suppose it is from some service or cron job.... But I wonder how I 
could keep the connection open so this isn't happening every 5 minutes?

Thanks


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

* Re: rdma connection close/reopen every 5 mins
  2017-04-26 17:23 rdma connection close/reopen every 5 mins scar
@ 2017-04-26 20:32 ` Chuck Lever
  2017-04-26 22:47   ` scar
  0 siblings, 1 reply; 6+ messages in thread
From: Chuck Lever @ 2017-04-26 20:32 UTC (permalink / raw)
  To: scar; +Cc: Linux NFS Mailing List


> On Apr 26, 2017, at 10:23 AM, scar <scar@drigon.com> wrote:
> 
> Hello, I have setup NFS/RDMA on our infiniband network.  The OS is CentOS 6.8 with kernel 2.6.32-696.1.1.el6.x86_64 and I am using rdma/nfs-rdma packages from the OS version 6.9_4.1.  The connection is successful:
> 
> 10.10.11.249:/newwing on /newwing type nfs (rw,rdma,port=20049,addr=10.10.11.249)
> 
> except in /var/log/messages I am always seeing this exactly every 5 minutes:
> kernel: rpcrdma: connection to 10.10.11.249:20049 closed (-103)
> kernel: rpcrdma: connection to 10.10.11.249:20049 on mlx4_0, memreg 6 slots 32 ird 16

> I suppose it is from some service or cron job.... But I wonder how I could keep the connection open so this isn't happening every 5 minutes?

If it's every 5 minutes, that's probably the RPC idle timeout
that is closing the connection.

So this should be entirely harmless.


--
Chuck Lever




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

* Re: rdma connection close/reopen every 5 mins
  2017-04-26 20:32 ` Chuck Lever
@ 2017-04-26 22:47   ` scar
  2017-04-26 22:52     ` Chuck Lever
  0 siblings, 1 reply; 6+ messages in thread
From: scar @ 2017-04-26 22:47 UTC (permalink / raw)
  To: linux-nfs

Chuck Lever wrote on 04/26/2017 01:32 PM:
> If it's every 5 minutes, that's probably the RPC idle timeout
> that is closing the connection.
>
> So this should be entirely harmless.

Yes so far it seems harmless, but it is annoying and fills up the log 
with spam, plus it's not something I see when using NFS/TCP.

thanks


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

* Re: rdma connection close/reopen every 5 mins
  2017-04-26 22:47   ` scar
@ 2017-04-26 22:52     ` Chuck Lever
  2017-04-27  1:46       ` Trond Myklebust
  0 siblings, 1 reply; 6+ messages in thread
From: Chuck Lever @ 2017-04-26 22:52 UTC (permalink / raw)
  To: scar; +Cc: Linux NFS Mailing List


> On Apr 26, 2017, at 3:47 PM, scar <scar@drigon.com> wrote:
> 
> Chuck Lever wrote on 04/26/2017 01:32 PM:
>> If it's every 5 minutes, that's probably the RPC idle timeout
>> that is closing the connection.
>> 
>> So this should be entirely harmless.
> 
> Yes so far it seems harmless, but it is annoying and fills up the log with spam, plus it's not something I see when using NFS/TCP.

That's correct, NFS/TCP does not have the "connected / closed"
messages, but the idle timeout behavior is the exactly the same.

I tried to remove those messages a few years ago and was told
to go pound sand.

The best you can do is create a mechanism to access a file on
those mount points more frequently than the idle timeout. That
should prevent the connection from closing.


--
Chuck Lever




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

* Re: rdma connection close/reopen every 5 mins
  2017-04-26 22:52     ` Chuck Lever
@ 2017-04-27  1:46       ` Trond Myklebust
  2017-04-27  2:48         ` Chuck Lever
  0 siblings, 1 reply; 6+ messages in thread
From: Trond Myklebust @ 2017-04-27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G8g
dGFrZSBhIHBhdGNoIHRvIHJlbW92ZSB0aG9zZSBtZXNzYWdlcy4gSSBmaW5kIGl0DQphYnNvbHV0
ZWx5IHJpZGljdWxvdXMgdG8gYmUgbG9nZ2luZyBmdWxseSBleHBlY3RlZCBiZWhhdmlvdXIgbGlr
ZSB0aGlzLg0KSXQgc2hvdWxkIGF0IGJlc3QgYmUgYSBkcHJpbnRrKCkgYW5kIEknZCBwcmVmZXIg
dG8gcmVwbGFjZSBpdCB3aXRoDQp0cmFjZXBvaW50cyBsaWtlIHdlIGRvIGZvciB0aGUgc29ja2V0
IGNvZGUuDQoNCi0tIA0KVHJvbmQgTXlrbGVidXN0DQpMaW51eCBORlMgY2xpZW50IG1haW50YWlu
ZXIsIFByaW1hcnlEYXRhDQp0cm9uZC5teWtsZWJ1c3RAcHJpbWFyeWRhdGEuY29tDQo=


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

* Re: rdma connection close/reopen every 5 mins
  2017-04-27  1:46       ` Trond Myklebust
@ 2017-04-27  2:48         ` Chuck Lever
  0 siblings, 0 replies; 6+ messages in thread
From: Chuck Lever @ 2017-04-27  2:48 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: scar, linux-nfs


> On Apr 26, 2017, at 6:46 PM, Trond Myklebust <trondmy@primarydata.com> wrote:
> 
> On Wed, 2017-04-26 at 15:52 -0700, Chuck Lever wrote:
>>> On Apr 26, 2017, at 3:47 PM, scar <scar@drigon.com> wrote:
>>> 
>>> Chuck Lever wrote on 04/26/2017 01:32 PM:
>>>> If it's every 5 minutes, that's probably the RPC idle timeout
>>>> that is closing the connection.
>>>> 
>>>> So this should be entirely harmless.
>>> 
>>> Yes so far it seems harmless, but it is annoying and fills up the
>>> log with spam, plus it's not something I see when using NFS/TCP.
>> 
>> That's correct, NFS/TCP does not have the "connected / closed"
>> messages, but the idle timeout behavior is the exactly the same.
>> 
>> I tried to remove those messages a few years ago and was told
>> to go pound sand.
>> 
> 
> 
> By me?

No, I filed a bug on bugzilla.kernel.org and I think it was
Alan Cox (!) who told me to leave these alone.


> I’d be happy to take a patch to remove those messages. I find it
> absolutely ridiculous to be logging fully expected behaviour like this.
> It should at best be a dprintk() and I'd prefer to replace it with
> tracepoints like we do for the socket code.

I can send a patch for 4.13 that converts these to
dprintks for now. Tracepoints are definitely in plan...




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

end of thread, other threads:[~2017-04-27  2:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26 17:23 rdma connection close/reopen every 5 mins scar
2017-04-26 20:32 ` Chuck Lever
2017-04-26 22:47   ` scar
2017-04-26 22:52     ` Chuck Lever
2017-04-27  1:46       ` Trond Myklebust
2017-04-27  2:48         ` Chuck Lever

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.