Closed
【UMS】some connections failed during multiple connections #16
TendoleLuAdd on  Feb 26Closed at  Mar 2
TendoleLuCollaborators
Feb 26 Create

【缺陷描述】:请补充详细的缺陷问题现象描述

ums多流建链时建链队列尾端请求超时,导致建链失败

一、缺陷信息

在server端执行for i in $(seq 8580 8589); do nohup ums_run qperf -lp ${i} & done
在client端执行for i in $(seq 8580 8589); do nohup ums_run qperf {ip} -lp ${i} -t 30 -m 8192 tcp_lat & done
执行后前6-7条流建链成功,后3-4条流建链失败

【缺陷所属的os版本】

NA

【内核版本】

6.6.0-132.0.0.206.oe2403sp3.aarch64

【缺陷所属软件及版本号】

umdk-ums

【环境信息】

NA

【问题复现步骤】

进行5路以上的多流建链

【实际结果】

5路之后的建链超时报错导致建链失败

【期望结果】

多流建链无问题,资源充足情况下支撑大规格并发建链

【其他相关附件信息】

【缺陷详情及分析指导参考链接】

二、缺陷分析结构反馈
影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Feb 26 Added label: sig/sig-UnifiedBus
openeuler-ci-botopeneuler-ci-botCollaborators
Feb 26 Modify description of issue
openeuler-ci-bot
openeuler-ci-botCollaborators
Feb 26 Comments:

Welcome To openEuler Community

Hey @TendoleLu , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-UnifiedBus ,
and any of the maintainers: @hanjunguo, @jerry_lilijun, @liliang_euler, @linyunsheng, @will_niutao ,
and any of the committers: @hfghw, @hu-chunzhi, @huangbin35, @hying0128, @jillwu, @jinxin712, @lairuilang, @mingo007, @nemeiju, @qianguoxin, @zihao42 .

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Feb 26 Comments:

@caixu-blue , @cclaibryan , @cywang718 , @fangfeng123 , @hanyuankun , @HaoyuWang2001 , @hfghw , @hongwu-wang , @huangbin35 , @hu-chunzhi , @hying0128 , @JerryLX , @jillwu , @jinxin712 , @junlong-zheng , @lairuilang , @leeCii1 , @lostway1 , @meng_zhaohui , @mingo007 , @nemeiju , @qianguoxin , @ray-yang0218 , @rock_hw , @suiyi_z , @Tankll2021 , @will_niutao , @woquzhao12138 , @zhao-lichang , @zhaoweibo3 , @zihao42
以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:

指令 指令说明 使用权限
/check-issue 触发defect-manager校验 不限
/reason xxx /reason +挂起或取消条件 不限

影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

abi变化(是/否):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

缺陷issue处理具体操作请参考:
https://gitcode.com/Coopermassaki/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.gitcode.com/docs/help/home/org_project/pullrequests/pr-related-issue

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Feb 26 Added label: DEFECT/UNFIXED
huyinghuyingCollaborators
Feb 26 Associated pull request
TTendoleLuCollaborators
Feb 26 changed custom state from 待办的 to 已验收
TTendoleLuCollaborators
Feb 26 Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
Feb 26 Removed label: DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-botCollaborators
Feb 26 Comments:

@ 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Feb 26 Comments:

@ 未对受影响版本排查/abi变化进行分析

likedislike
TTendoleLuCollaborators
Feb 26 changed custom state from 已验收 to 待办的
7 event messages are collapsed here。 See more
openeuler-ci-botopeneuler-ci-botCollaborators
Mar 2 Removed label: DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-botCollaborators
Mar 2 Comments:

@ 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Mar 2 Comments:

@ 未对受影响版本排查/abi变化进行分析

likedislike
huying
huyingCollaborators
Mar 2 Comments:

问题根因定位结论:

ubcore_dev没有关联的netdev时,netdev为空,导致ums_lgr_match时,ums_udev_can_access_from_ns校验net失败,返回false,则新建ums socket连接时无法复用已有ums link。
当前测试环境上URMA建链性能劣化,为每个ums socket都新建ums link,耗时太久,导致排队等待的qperf进程建链超时报错。

当前UMS查找设备和复用lgr时,netns匹配逻辑不合理,需整改。

修改UMS net匹配逻辑如下:

1、查找UB设备和EID(包括bonding eid)时,需确保EID的net和socket的net一致(通过ums->clcsock->sk获取dst,dev_net(dst->dev),和上层应用所在net一致,不能使用最底层ndev的net);
2、lgr->net初始化为建链使用的本地EID的net;
3、匹配lgr确认是否可以复用时,需满足以下条件:ums sk的net与lgr->net一致。

likedislike