【微知】Mellanox网卡如何查看当前网卡总的qp数量?mr数量?pd和cq的数量?(rdma res show)

背景

查看qp、mr、pd、cq等数量

命令

rdma res show
# res是resource的缩写

实操

在这里插入图片描述

其他

  • rdma命令所在rpm包:iproute-5.15.0-4.an8.x86_64
    在这里插入图片描述

rdma的命令还有其他更多的功能
在这里插入图片描述
可以通过rdma [obj] 然后 help命令查看,兑现各有几个dev、link、resource、system、statistic、help
比如:

[root@security ~]# rdma dev help
Usage: rdma dev show [DEV]
       rdma dev set [DEV] name DEVNAME
       rdma dev set [DEV] netns NSNAME
       rdma dev set [DEV] adaptive-moderation [on|off]
[root@security ~]# rdma link help
Usage: rdma link show [DEV/PORT_INDEX]
Usage: rdma link add NAME type TYPE netdev NETDEV
Usage: rdma link delete NAME
[root@security ~]# rdma resource help
Usage: rdma resource
          resource show [DEV]
          resource show [qp|cm_id|pd|mr|cq|ctx|srq]
          resource show qp link [DEV/PORT]
          resource show qp link [DEV/PORT] [FILTER-NAME FILTER-VALUE]
          resource show cm_id link [DEV/PORT]
          resource show cm_id link [DEV/PORT] [FILTER-NAME FILTER-VALUE]
          resource show cq link [DEV/PORT]
          resource show cq link [DEV/PORT] [FILTER-NAME FILTER-VALUE]
          resource show pd dev [DEV]
          resource show pd dev [DEV] [FILTER-NAME FILTER-VALUE]
          resource show mr dev [DEV]
          resource show mr dev [DEV] [FILTER-NAME FILTER-VALUE]
          resource show ctx dev [DEV]
          resource show ctx dev [DEV] [FILTER-NAME FILTER-VALUE]
          resource show srq dev [DEV]
          resource show srq dev [DEV] [FILTER-NAME FILTER-VALUE]
[root@security ~]# rdma system help
Usage: rdma system show [ netns ]
       rdma system set netns { shared | exclusive }
[root@security ~]# rdma statistic help
Usage: rdma [ OPTIONS ] statistic { COMMAND | help }
       rdma statistic OBJECT show
       rdma statistic OBJECT show link [ DEV/PORT_INDEX ] [ FILTER-NAME FILTER-VALUE ]
       rdma statistic OBJECT mode
       rdma statistic OBJECT set COUNTER_SCOPE [DEV/PORT_INDEX] auto {CRITERIA | off}
       rdma statistic OBJECT bind COUNTER_SCOPE [DEV/PORT_INDEX] [OBJECT-ID] [COUNTER-ID]
       rdma statistic OBJECT unbind COUNTER_SCOPE [DEV/PORT_INDEX] [COUNTER-ID]
       rdma statistic show
       rdma statistic show link [ DEV/PORT_INDEX ]
where  OBJECT: = { qp }
       CRITERIA : = { type }
       COUNTER_SCOPE: = { link | dev }
       FILTER_NAME: = { cntn | lqpn | pid }
Examples:
       rdma statistic qp show
       rdma statistic qp show link mlx5_2/1
       rdma statistic qp mode
       rdma statistic qp mode link mlx5_0
       rdma statistic qp set link mlx5_2/1 auto type on
       rdma statistic qp set link mlx5_2/1 auto off
       rdma statistic qp bind link mlx5_2/1 lqpn 178
       rdma statistic qp bind link mlx5_2/1 lqpn 178 cntn 4
       rdma statistic qp unbind link mlx5_2/1 cntn 4
       rdma statistic qp unbind link mlx5_2/1 cntn 4 lqpn 178
       rdma statistic show
       rdma statistic show link mlx5_2/1
[root@security ~]# rdma help
Usage: rdma [ OPTIONS ] OBJECT { COMMAND | help }
       rdma [ -f[orce] ] -b[atch] filename
where  OBJECT := { dev | link | resource | system | statistic | help }
       OPTIONS := { -V[ersion] | -d[etails] | -j[son] | -p[retty] -r[aw]}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值