From: Yann Droneaud <ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>
To: "Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org
Subject: Re: rdma_connect() "timeout"
Date: Wed, 18 Jul 2012 19:16:06 +0200 [thread overview]
Message-ID: <1342631766.19395.48.camel@test.quest-ce.net> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A8237346A6A5AA-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
Hi,
Le mercredi 18 juillet 2012 à 15:49 +0000, Hefty, Sean a écrit :
> > Is there a way to setup the timeout in rdma_connect() ?
>
> For IB, the timeout is based on the packet lifetime in the path record returned by the SA.
> The rdma_cm will retry a CM REQ the maximum number of times (15).
>
According to the OpenSM default configuration (/usr/sbin/opensm
--create-config <config>) :
# The subnet_timeout code that will be set for all the ports
# The actual timeout is 4.096usec * 2^<subnet_timeout>
subnet_timeout 18
# The code of maximal time a packet can live in a switch
# The actual time is 4.096usec * 2^<packet_life_time>
# The value 0x14 disables this mechanism
packet_life_time 0x12
Despite the notation, they are the same values.
It gives me:
4.096 * 10^-6 * 2^18 = 1.074 s
15 * subnet timeout / packet life time = 16.106 s ...
This is a lot less than 98 s.
Where does come the difference ?
> > Is there a way to change the CM parameters ? e.g. "Service Timeout" to
> > wait for moving from "REP wait" state to "Timeout" state, and the number
> > of send "REQ" retries (From 12.9.5 "Communication Establishement and
> > Release - Active") ?
>
> There is no direct way to change the timeout parameter. You would need to adjust the subnet timeout values at the SA.
Is it subnet_timeout or packet_life_time ?
Thanks for your answers.
Regards.
--
Yann Droneaud
OPTEYA
--
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 prev parent reply other threads:[~2012-07-18 17:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 15:12 rdma_connect() "timeout" Yann Droneaud
[not found] ` <1342624372.19395.35.camel-sQn2kEGNn0pFevvuwOF9vF6hYfS7NtTn@public.gmane.org>
2012-07-18 15:49 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237346A6A5AA-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-07-18 17:16 ` Yann Droneaud [this message]
[not found] ` <1342631766.19395.48.camel-sQn2kEGNn0pFevvuwOF9vF6hYfS7NtTn@public.gmane.org>
2012-07-18 17:30 ` Hefty, Sean
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=1342631766.19395.48.camel@test.quest-ce.net \
--to=ydroneaud-rly5vtjfyj3qt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@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