Queries on "https://github.com/Azure/sonic-swss/pull/1184"

10 views
Skip to first unread message

Vishnu Shetty

unread,
Mar 8, 2020, 4:16:52 AM3/8/20
to sonic-breako...@googlegroups.com, Amin Alavi, Steven Lu, Prasanth Kunjum Veettil, Satish Kumar
Hi Zhenggen,

In which scenario did you hit this case? Only for PORT table delete/create scenario or in other use cases too?  Also seen during old port config replay after recreate?  

We expect some performance hit with this change.  We need clarification to optimise or limit the use cases.

Regards
Vishnu

Zhenggen Xu

unread,
Mar 8, 2020, 10:34:51 PM3/8/20
to Vishnu Shetty, sonic-breako...@googlegroups.com, Amin Alavi, Steven Lu, Prasanth Kunjum Veettil, Satish Kumar

Hi Vishnu,

 

The PR is applicable for any cases where you have delete/add actions coming close to each other to some objects. This will include delete/add PORT object, but applicable to any objects.  The PR is rather a bug fix to close that gap.   Not sure what you mean by “during old port config replay after recreate”, I guess if you meant that we statically do the breakout at init phase due to the configuration difference than the HW initial config, then no,  as we don’t have delete actions.

 

The performance hit would be minimal if at all,  underneath the multi-map is probably using map + link-list,  in most cases, the link-list only have one member. Which case you are concerned?  Do you have any measurement before and after the PR?  I would be surprised if you see noticeable difference.  Let me know.

 

Regards

Xu

--
You received this message because you are subscribed to the Google Groups "sonic-breakout-workgroup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonic-breakout-wor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonic-breakout-workgroup/CADiJo0Dew_PSwqg%2ByMETRFnXuXTn27Y1q%3DWaG8rh3mRDOrZhRw%40mail.gmail.com.

Vishnu Shetty

unread,
Mar 12, 2020, 1:40:27 PM3/12/20
to Zhenggen Xu, sonic-breako...@googlegroups.com, Amin Alavi, Steven Lu, Prasanth Kunjum Veettil, Satish Kumar, Laveen Thamilchelvam
Hi Zhenggen,

One of the scenario team came up with, during link flap or bgp clear, route del and add  will take performance hit. Now all route gets deleted first and then added.
The extra del loads orchagent if route scale is high.

"during old port config replay after recreate”   -referring to dynamic port break-out sequence. Config restore then replay before and after break-out.

Regards
Vishnu
 

Zhenggen Xu

unread,
Mar 12, 2020, 2:32:03 PM3/12/20
to Vishnu Shetty, sonic-breako...@googlegroups.com, Amin Alavi, Steven Lu, Prasanth Kunjum Veettil, Satish Kumar, Laveen Thamilchelvam

Hi Vishnu,

 

The issue is we can’t assume the new objects with the same key (e,g, prefixes etc) have the same attributes as the old objects. Without deleting them, you may end up with leaving old properties in them. BTW: If the DEL come after  SET, we do overwrites the SET in the multimap.

 

In case of link flap/bgp clear, if you have ECMP (which is the case for most DC scenario), the routes won’t be deleted.   In case no ECMP, right now, we don’t optimize it, you probably see traffic drop anyways.  If you think that optimization is necessary and you won’t hit any bad consequences,  you can optimize for such scenario.  Do you have any performance measurement for bgp clear case before and after the PR?

 

Sounds like you meant “config reload” for the replay case, then it is a NO again for DEL in the map as we do not have delete action from configDB, but rather that is happening inside the orchagent.

 

Regards

/Xu

Reply all
Reply to author
Forward
0 new messages