public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* out of order packets when querying all ports in a switch through OpenSM
@ 2015-05-27 12:56 Jesus Camacho Villanueva
       [not found] ` <CAGNdY=4ox_P_XB+gaFoQvec=j9qp4RKOxrM9vsL_FAXAE3oYow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Jesus Camacho Villanueva @ 2015-05-27 12:56 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hello,

I am trying to send a port info request to all the ports in a switch,
one after the other.

I am sending all requests to the same switch in sequence through the
same directed routing path:

Request port number 1
Request port number 2
Request port number 3
Request port number 4

But sometimes I get responses out of order:

Response port number 2
Response port number 1
Response port number 3
Response port number 4

Is it possible that the switch is processing port requests out of
order (or maybe I am doing something wrong)?

Best regards,
Jesus
--
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

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

* Re: out of order packets when querying all ports in a switch through OpenSM
       [not found] ` <CAGNdY=4ox_P_XB+gaFoQvec=j9qp4RKOxrM9vsL_FAXAE3oYow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-05-27 13:55   ` Hal Rosenstock
       [not found]     ` <5565CCB8.8060600-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Hal Rosenstock @ 2015-05-27 13:55 UTC (permalink / raw)
  To: Jesus Camacho Villanueva; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hi Jesus,

On 5/27/2015 8:56 AM, Jesus Camacho Villanueva wrote:
> Hello,
> 
> I am trying to send a port info request to all the ports in a switch,
> one after the other.
> 
> I am sending all requests to the same switch in sequence through the
> same directed routing path:
> 
> Request port number 1
> Request port number 2
> Request port number 3
> Request port number 4
> 
> But sometimes I get responses out of order:
> 
> Response port number 2
> Response port number 1
> Response port number 3
> Response port number 4
> 
> Is it possible that the switch is processing port requests out of
> order (or maybe I am doing something wrong)?

One way this could occur is that request to switch for port number 1
either does not make it to switch or response does not make it back and
it times out and is retransmitted by kernel. This depends on how umad is
setup in terms of retries and timeout.

Is it always the same switch or switch type ? What switch is it ?

-- Hal

> Best regards,
> Jesus
> --
> 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
> 

--
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

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

* Re: out of order packets when querying all ports in a switch through OpenSM
       [not found]     ` <5565CCB8.8060600-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2015-05-27 14:16       ` Jesus Camacho Villanueva
       [not found]         ` <CAGNdY=6RQS9F4Or+fEudpVj0iRKJ_95LiG0O2+n=GG3WqzKP6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Jesus Camacho Villanueva @ 2015-05-27 14:16 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hi Hal,

Thanks for your quick response :)

What you say here makes sense. I have seen this behaviour in one of
the switches, but I don't discard that this problem can arise in other
switches.

The switch is: Infiniscale-IV Mellanox Technologies 4xQDR

Jesus

On Wed, May 27, 2015 at 3:55 PM, Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
> Hi Jesus,
>
> On 5/27/2015 8:56 AM, Jesus Camacho Villanueva wrote:
>> Hello,
>>
>> I am trying to send a port info request to all the ports in a switch,
>> one after the other.
>>
>> I am sending all requests to the same switch in sequence through the
>> same directed routing path:
>>
>> Request port number 1
>> Request port number 2
>> Request port number 3
>> Request port number 4
>>
>> But sometimes I get responses out of order:
>>
>> Response port number 2
>> Response port number 1
>> Response port number 3
>> Response port number 4
>>
>> Is it possible that the switch is processing port requests out of
>> order (or maybe I am doing something wrong)?
>
> One way this could occur is that request to switch for port number 1
> either does not make it to switch or response does not make it back and
> it times out and is retransmitted by kernel. This depends on how umad is
> setup in terms of retries and timeout.
>
> Is it always the same switch or switch type ? What switch is it ?
>
> -- Hal
>
>> Best regards,
>> Jesus
>> --
>> 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
>>
>
--
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

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

* Re: out of order packets when querying all ports in a switch through OpenSM
       [not found]         ` <CAGNdY=6RQS9F4Or+fEudpVj0iRKJ_95LiG0O2+n=GG3WqzKP6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-05-27 14:30           ` Hal Rosenstock
       [not found]             ` <5565D518.30602-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Hal Rosenstock @ 2015-05-27 14:30 UTC (permalink / raw)
  To: Jesus Camacho Villanueva; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 5/27/2015 10:16 AM, Jesus Camacho Villanueva wrote:
> Hi Hal,
> 
> Thanks for your quick response :)
> 
> What you say here makes sense. I have seen this behaviour in one of
> the switches, but I don't discard that this problem can arise in other
> switches.

Note that for MADs, transaction ID is "looser" than traditional
transaction ID semantics in that "the combination of TID, SGID, and
MgmtClass is different from that of any currently executing operation"
and does not imply ordering. If there is ordering required, it is the
responsibility of the manager to enforce that.

> The switch is: Infiniscale-IV Mellanox Technologies 4xQDR

Is it a managed or unmanaged switch ?

-- Hal

> 
> Jesus
> 
> On Wed, May 27, 2015 at 3:55 PM, Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
>> Hi Jesus,
>>
>> On 5/27/2015 8:56 AM, Jesus Camacho Villanueva wrote:
>>> Hello,
>>>
>>> I am trying to send a port info request to all the ports in a switch,
>>> one after the other.
>>>
>>> I am sending all requests to the same switch in sequence through the
>>> same directed routing path:
>>>
>>> Request port number 1
>>> Request port number 2
>>> Request port number 3
>>> Request port number 4
>>>
>>> But sometimes I get responses out of order:
>>>
>>> Response port number 2
>>> Response port number 1
>>> Response port number 3
>>> Response port number 4
>>>
>>> Is it possible that the switch is processing port requests out of
>>> order (or maybe I am doing something wrong)?
>>
>> One way this could occur is that request to switch for port number 1
>> either does not make it to switch or response does not make it back and
>> it times out and is retransmitted by kernel. This depends on how umad is
>> setup in terms of retries and timeout.
>>
>> Is it always the same switch or switch type ? What switch is it ?
>>
>> -- Hal
>>
>>> Best regards,
>>> Jesus
>>> --
>>> 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
>>>
>>
> 

--
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

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

* Re: out of order packets when querying all ports in a switch through OpenSM
       [not found]             ` <5565D518.30602-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2015-05-27 15:31               ` Jesus Camacho Villanueva
       [not found]                 ` <CAGNdY=4iODDSiYdQ7UQdYBQUi7hs8x8-1BqTQk8ZLmpfeovPeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Jesus Camacho Villanueva @ 2015-05-27 15:31 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

The switches are unmanaged.
Is it possible to ensure in-order packets with managed switches?

Jesus

On Wed, May 27, 2015 at 4:30 PM, Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
> On 5/27/2015 10:16 AM, Jesus Camacho Villanueva wrote:
>> Hi Hal,
>>
>> Thanks for your quick response :)
>>
>> What you say here makes sense. I have seen this behaviour in one of
>> the switches, but I don't discard that this problem can arise in other
>> switches.
>
> Note that for MADs, transaction ID is "looser" than traditional
> transaction ID semantics in that "the combination of TID, SGID, and
> MgmtClass is different from that of any currently executing operation"
> and does not imply ordering. If there is ordering required, it is the
> responsibility of the manager to enforce that.
>
>> The switch is: Infiniscale-IV Mellanox Technologies 4xQDR
>
> Is it a managed or unmanaged switch ?
>
> -- Hal
--
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

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

* Re: out of order packets when querying all ports in a switch through OpenSM
       [not found]                 ` <CAGNdY=4iODDSiYdQ7UQdYBQUi7hs8x8-1BqTQk8ZLmpfeovPeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-05-27 15:44                   ` Hal Rosenstock
  0 siblings, 0 replies; 6+ messages in thread
From: Hal Rosenstock @ 2015-05-27 15:44 UTC (permalink / raw)
  To: Jesus Camacho Villanueva; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 5/27/2015 11:31 AM, Jesus Camacho Villanueva wrote:
> The switches are unmanaged.
> Is it possible to ensure in-order packets with managed switches?

No; same issue as I previously mentioned exists with both.

Unmanaged switches just use firmware whereas managed switches have CPU
and kernel in addition to firmware so the system is more complex.

-- Hal

> Jesus
> 
> On Wed, May 27, 2015 at 4:30 PM, Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
>> On 5/27/2015 10:16 AM, Jesus Camacho Villanueva wrote:
>>> Hi Hal,
>>>
>>> Thanks for your quick response :)
>>>
>>> What you say here makes sense. I have seen this behaviour in one of
>>> the switches, but I don't discard that this problem can arise in other
>>> switches.
>>
>> Note that for MADs, transaction ID is "looser" than traditional
>> transaction ID semantics in that "the combination of TID, SGID, and
>> MgmtClass is different from that of any currently executing operation"
>> and does not imply ordering. If there is ordering required, it is the
>> responsibility of the manager to enforce that.
>>
>>> The switch is: Infiniscale-IV Mellanox Technologies 4xQDR
>>
>> Is it a managed or unmanaged switch ?
>>
>> -- Hal
> 

--
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

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

end of thread, other threads:[~2015-05-27 15:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27 12:56 out of order packets when querying all ports in a switch through OpenSM Jesus Camacho Villanueva
     [not found] ` <CAGNdY=4ox_P_XB+gaFoQvec=j9qp4RKOxrM9vsL_FAXAE3oYow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-27 13:55   ` Hal Rosenstock
     [not found]     ` <5565CCB8.8060600-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-05-27 14:16       ` Jesus Camacho Villanueva
     [not found]         ` <CAGNdY=6RQS9F4Or+fEudpVj0iRKJ_95LiG0O2+n=GG3WqzKP6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-27 14:30           ` Hal Rosenstock
     [not found]             ` <5565D518.30602-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-05-27 15:31               ` Jesus Camacho Villanueva
     [not found]                 ` <CAGNdY=4iODDSiYdQ7UQdYBQUi7hs8x8-1BqTQk8ZLmpfeovPeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-27 15:44                   ` Hal Rosenstock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox