From: Venkat Venkatsubra <venkat.x.venkatsubra-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: Michael Nowak <michael.nowak-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Subject: rdma_connect() timeout question
Date: Thu, 16 Aug 2012 14:01:56 -0500 [thread overview]
Message-ID: <502D43A4.1090708@oracle.com> (raw)
Hello,
Is there a way to tune rdma_connect() timeout to a lower value ?
With CMA_CM_RESPONSE_TIMEOUT as 20 and CMA_MAX_CM_RETRIES 15,
it takes about a minute to timeout. We would like to tune it in our case
to a much lower value.
The scenario is RDS trying to reconnect when a bonding interface
notifies us of a link fail over.
In our setup the gratuitous arp doesn't arrive sometimes to update the
arp entry with the new GID.
The address resolution returns the old GID. Route resolution also
happens to return the old path in this failure case.
(Other times when route solution fails it is not a problem. The
reconnect attempts eventually go through in those cases.)
And the rdma_connect() gets stuck. A timeout in 1 minute and a
subsequent retry of address/route-resolution/rdma_connect then succeeds.
Because by that time the arp entry is updated.
Can cma_response_timeout and CMA_MAX_CM_RETRIES be made tunables ?
Even better would have been if the caller (RDS in this case) could have
passed them as connection setup parameters. ;-)
That way we don't have to disturb the setting for non-RDS traffic.
Venkat
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2012-08-16 19:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 19:01 Venkat Venkatsubra [this message]
[not found] ` <502D43A4.1090708-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2012-08-16 19:40 ` rdma_connect() timeout question Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237346A899E6-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-08-16 19:57 ` Steve Wise
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=502D43A4.1090708@oracle.com \
--to=venkat.x.venkatsubra-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=michael.nowak-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).