【特性描述】
增加rdma tool在dfx时可以dump 出来的hns roce的信息,增加的内容包括qp、cq、mr
【特性竞争力】
增加hns roce 的dfx能力
【硬件架构】
鲲鹏服务器板载网卡roce
【特性约束】
NA
【涉及仓库】
driver/infiniband/hw/hns
【交付个人/团队】
鲲鹏服务器板载网卡roce团队
Hi hellotcc, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @YangYingliang , @成坚 (CHENG Jian) , @jiaoff , @zhengzengkai , @刘勇强 , @wangxiongfeng , @朱科潜 , @WangShaoBo , @lujialin , @wuxu_buque , @Xu Kuohai , @冷嘲啊 , @Lingmingqiang , @yuzenghui , @juntian , @OSSIM , @陈结松 , @whoisxxx , @koulihong , @刘恺 , @hanjun-guo , @woqidaideshi , @Chiqijun , @Kefeng , @ThunderTown , @AlexGuo , @kylin-mayukun , @Zheng Zucheng , @柳歆 , @Jackie Liu , @zhujianwei001 , @郑振鹏 , @SuperSix173 , @colyli , @Zhang Yi , @htforge , @Qiuuuuu , @Yuehaibing , @xiehaocheng , @guzitao , @CTC-Xibo.Wang , @zhanghongchen , @chen wei , @Jason Zeng , @Xie XiuQi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
通过通过perftest构造业务场景,通过rdma tool进行内容的dump
验证结果:
root@localhost ~]# ib_send_bw -d hns_0 --run_infinite &
[2] 309155
[root@localhost ~]#
************************************
* Waiting for client to connect... *
************************************
[root@localhost ~]# ib_send_bw -d hns_0 --run_infinite 127.0.0.1 &
[3] 309157
[root@localhost ~]# ---------------------------------------------------------------------------------------
Send BW Test
Dual-port : OFF Device : hns_0
Number of qps : 1 Transport type : IB
Connection type : RC Using SRQ : OFF
TX depth : 128
CQ Moderation : 100
Mtu : 1024[B]
Link type : Ethernet
GID index : 2
Max inline data : 0[B]
rdma_cm QPs : OFF
Data ex. method : Ethernet
---------------------------------------------------------------------------------------
local address: LID 0000 QPN 0x0010 PSN 0x40d5c7
GID: 00:00:00:00:00:00:00:00:00:00:255:255:192:168:20:120
---------------------------------------------------------------------------------------
Send BW Test
Dual-port : OFF Device : hns_0
Number of qps : 1 Transport type : IB
Connection type : RC Using SRQ : OFF
RX depth : 512
CQ Moderation : 100
Mtu : 1024[B]
Link type : Ethernet
GID index : 2
Max inline data : 0[B]
rdma_cm QPs : OFF
Data ex. method : Ethernet
---------------------------------------------------------------------------------------
local address: LID 0000 QPN 0x0011 PSN 0x3ade7d
GID: 00:00:00:00:00:00:00:00:00:00:255:255:192:168:20:120
remote address: LID 0000 QPN 0x0010 PSN 0x40d5c7
remote address: LID 0000 QPN 0x0011 PSN 0x3ade7d
GID: 00:00:00:00:00:00:00:00:00:00:255:255:192:168:20:120
GID: 00:00:00:00:00:00:00:00:00:00:255:255:192:168:20:120
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
#bytes #iterations BW peak[MB/sec] BW average[MB/sec] MsgRate[Mpps]
#bytes #iterations BW peak[MB/sec] BW average[MB/sec] MsgRate[Mpps]
[root@localhost ~]# 65536 217200 0.00 2715.00 0.043440
65536 217200 0.00 2715.01 0.043440
65536 217100 0.00 2713.77 0.043420
65536 217200 0.00 2715.02 0.043440
[root@localhost ~]# rdma res show mr -ddd -j -p -r
[ {
"ifindex": 58,
"ifname": "hns_0",
"data": [ 101,3,0,0,132,0,0,0,128,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,137,15,171,170,0,0,2,0,0,0,0,192,160,27,0,0,0,0,0,232,115,3,0,0,0,0,0,236,115,3,0,0,0,64 ]
},{
"ifindex": 58,
"ifname": "hns_0",
"data": [ 101,2,0,0,132,0,0,0,128,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,3,0,0,0,0,95,244,170,170,0,0,2,0,0,0,0,160,159,27,0,0,0,0,0,224,115,3,0,0,0,0,0,228,115,3,0,0,0,64 ]
} ]
[root@localhost ~]#
[root@localhost ~]# 65536 217200 0.00 2715.02 0.043440
65536 217200 0.00 2715.00 0.043440
65536 217200 0.00 2715.01 0.043440
[root@localhost ~]#
[root@localhost ~]# 65536 217200 0.00 2714.97 0.043439
[root@localhost ~]# rdma res show qp -ddd -j -p -r link hns_0/1
[ {
"ifindex": 58,
"ifname": "hns_0",
"data": [ 0,0,0,0,0,160,182,30,0,0,0,64,4,3,0,0,18,151,2,0,64,0,255,63,0,0,0,192,0,0,0,0,0,0,0,0,0,0,255,255,192,168,20,120,0,24,45,0,0,148,0,0,17,0,0,64,0,64,227,111,0,0,0,0,5,0,184,245,0,0,0,0,0,0,0,4,3,0,0,8,0,0,0,0,18,209,13,0,0,0,0,0,0,0,0,0,19,209,13,0,0,0,0,0,0,125,222,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,217,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,222,58,0,0,0,0,0,124,4,81,4,17,209,13,0,0,0,192,12,132,7,234,193,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,234,193,81,4,0,0,0,136,118,3,0,0,0,16,255,5,0,255,12,255,185,180,80,4,247,233,193,199,233,193,17,209,13,0,0,0,0,0,0,0,0,0,0,0,80,4,247,233,193,63,0,0,0,0,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,64,34,92,63,125,82,255,255,64,34,239,89,172,172,255,255,112,248,116,153,0,128,255,255,0,0,0,0,0,0,0,0,64,220,255,63,125,82,255,255,1,8,0,0,0,0,0,0,208,246,116,153,0,128,255,255,236,243,57,88,172,172,255,255,0,145,6,82,117,82,255,255,0,145,6,82,117,82,255,255,40,141,91,89,172,172,255,255,136,163,247,158,125,82,255,255,136,163,247,158,125,82,255,255,216,251,116,153,0,128,255,255,80,246,116,153,0,128,255,255,212,137,60,88,172,172,255,255,96,246,116,153,0,128,255,255,20,140,60,88,172,172,255,255,224,246,116,153,0,128,255,255,68,151,232,88,172,172,255,255,0,145,6,82,117,82,255,255,245,255,255,255,0,0,0,0,1,0,0,0,0,0,0,0,0,96,124,186,117,82,255,255,160,246,116,153,0,128,255,255,96,229,57,88,172,172,255,255,224,246,116,153,0,128,255,255,140,151,232,88,172,172,255,255,0,145,6,82,117,82,255,255,0,128,255,150,117,82,255,255,1,0,0,0,0,0,0,0 ]
},{
"ifindex": 58,
"ifname": "hns_0",
"data": [ 0,0,0,0,0,0,125,28,0,0,0,64,4,2,0,0,18,151,2,0,64,0,255,63,0,0,0,2,0,0,0,0,0,0,0,0,0,0,255,255,192,168,20,120,0,24,45,0,0,148,0,0,16,0,0,64,0,0,0,64,0,0,0,0,5,0,111,245,0,0,0,0,0,0,0,4,5,0,0,8,255,5,82,4,146,224,14,0,0,0,0,0,82,4,30,0,147,224,14,0,0,0,0,0,32,119,234,193,0,0,0,0,0,192,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,32,245,217,13,0,0,0,0,0,0,0,72,170,34,82,4,30,17,102,234,193,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,0,132,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,136,118,3,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,1,82,4,0,0,0,0,0,0,0,0,0,0,64,34,92,63,125,82,255,255,64,34,239,89,172,172,255,255,112,248,116,153,0,128,255,255,0,0,0,0,0,0,0,0,64,220,255,63,125,82,255,255,1,8,0,0,0,0,0,0,208,246,116,153,0,128,255,255,236,243,57,88,172,172,255,255,0,145,6,82,117,82,255,255,0,145,6,82,117,82,255,255,40,141,91,89,172,172,255,255,136,163,247,158,125,82,255,255,136,163,247,158,125,82,255,255,216,251,116,153,0,128,255,255,80,246,116,153,0,128,255,255,212,137,60,88,172,172,255,255,96,246,116,153,0,128,255,255,20,140,60,88,172,172,255,255,224,246,116,153,0,128,255,255,68,151,232,88,172,172,255,255,0,145,6,82,117,82,255,255,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,96,124,186,117,82,255,255,160,246,116,153,0,128,255,255,96,229,57,88,172,172,255,255,224,246,116,153,0,128,255,255,140,151,232,88,172,172,255,255,0,145,6,82,117,82,255,255,0,128,255,150,117,82,255,255,2,0,0,0,0,0,0,0 ]
} ]
[root@localhost ~]#
[root@localhost ~]# 65536 217200 0.00 2715.02 0.043440
65536 217100 0.00 2713.77 0.043420
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# 65536 217200 0.00 2715.02 0.043440
65536 217200 0.00 2715.01 0.043440
[root@localhost ~]# rdma res show cq -ddd -j -p -r dev hns_0
[ {
"ifindex": 58,
"ifname": "hns_0",
"data": [ 129,42,0,0,0,0,0,0,112,103,14,0,0,0,0,64,0,0,0,0,0,0,0,68,0,0,0,0,0,0,0,0,0,0,207,28,0,0,0,0,1,0,121,230,0,0,0,0,0,0,0,0,0,0,0,0,180,119,78,27,0,0,0,0 ]
},{
"ifindex": 58,
"ifname": "hns_0",
"data": [ 1,7,0,0,2,0,0,0,112,208,13,0,0,0,0,64,0,0,0,0,0,0,0,68,19,119,0,0,0,119,0,0,0,0,161,27,0,0,0,0,1,0,188,245,0,0,0,0,19,119,0,0,0,0,0,0,19,162,87,154,0,0,0,0 ]
},{
"ifindex": 58,
"ifname": "hns_0",
"data": [ 1,9,0,0,3,0,0,0,192,208,13,0,0,0,0,64,0,0,0,0,0,0,0,68,0,0,0,0,0,0,0,0,0,224,161,27,0,0,0,0,5,0,188,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ]
},{
"ifindex": 58,
"ifname": "hns_0",
"data": [ 1,7,0,0,4,0,0,0,224,207,13,0,0,0,0,64,0,0,0,0,0,0,0,68,0,0,0,0,0,0,0,0,0,0,160,27,0,0,0,0,1,0,2,221,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ]
},{
"ifindex": 58,
"ifname": "hns_0",
"data": [ 1,9,0,0,5,0,0,0,64,208,13,0,0,0,0,64,0,0,0,0,0,0,0,68,138,131,46,0,255,129,46,0,0,64,220,29,0,0,0,0,5,0,2,221,0,0,0,0,138,131,46,0,0,0,0,0,148,31,98,154,0,0,0,0 ]
} ]
[root@localhost ~]#
登录 后才可以发表评论