1RDMA-STATISTIC(8) Linux RDMA-STATISTIC(8)
2
3
4
6 rdma-statistic - RDMA statistic counter configuration
7
9 rdma [ OPTIONS ] statistic { COMMAND | help }
10
11
12 rdma statistic [ OBJECT ] show
13
14 rdma statistic [ OBJECT ] show link [ DEV/PORT_INDX ]
15
16 rdma statistic OBJECT mode
17
18 rdma statistic OBJECT set COUNTER_SCOPE [ DEV/PORT_INDEX] auto { CRITE‐
19 RIA | off }
20
21 rdma statistic OBJECT bind COUNTER_SCOPE [ DEV/PORT_INDEX] [ OBJECT-ID
22 ] [ COUNTER-ID ]
23
24 rdma statistic OBJECT unbind COUNTER_SCOPE [ DEV/PORT_INDEX] [ COUNTER-
25 ID ] [ OBJECT-ID ]
26
27 COUNTER_SCOPE := { link | dev }
28
29 OBJECT := { qp }
30
31 CRITERIA := { type }
32
33
35 rdma statistic [object] show - Queries the specified RDMA device for RDMA
36 and driver-specific statistics. Show the default hw counters if object
37 is not specified
38 DEV - specifies counters on this RDMA device to show.
39
40 PORT_INDEX - specifies counters on this RDMA port to show.
41
42
43 rdma statistic <object> set - configure counter statistic auto-mode for a
44 specific device/port
45 In auto mode all objects belong to one category are bind automatically
46 to a single counter set.
47
48
49 rdma statistic <object> bind - manually bind an object (e.g., a qp) with a
50 counter
51 When bound the statistics of this object are available in this counter.
52
53
54 rdma statistic <object> unbind - manually unbind an object (e.g., a qp)
55 from the counter previously bound
56 When unbound the statistics of this object are no longer available in
57 this counter; And if object id is not specified then all objects on
58 this counter will be unbound.
59
60 COUNTER-ID - specifies the id of the counter to be bound. If this
61 argument is omitted then a new counter will be allocated.
62
63
65 rdma statistic show
66 Shows the state of the default counter of all RDMA devices on the
67 system.
68
69 rdma statistic show link mlx5_2/1
70 Shows the state of the default counter of specified RDMA port
71
72 rdma statistic qp show
73 Shows the state of all qp counters of all RDMA devices on the sys‐
74 tem.
75
76 rdma statistic qp show link mlx5_2/1
77 Shows the state of all qp counters of specified RDMA port.
78
79 rdma statistic qp show link mlx5_2 pid 30489
80 Shows the state of all qp counters of specified RDMA port and
81 belonging to pid 30489
82
83 rdma statistic qp mode
84 List current counter mode on all devices
85
86 rdma statistic qp mode link mlx5_2/1
87 List current counter mode of device mlx5_2 port 1
88
89 rdma statistic qp set link mlx5_2/1 auto type on
90 On device mlx5_2 port 1, for each new QP bind it with a counter
91 automatically. Per counter for QPs with same qp type in each
92 process. Currently only "type" is supported.
93
94 rdma statistic qp set link mlx5_2/1 auto off
95 Turn-off auto mode on device mlx5_2 port 1. The allocated counters
96 can be manually accessed.
97
98 rdma statistic qp bind link mlx5_2/1 lqpn 178
99 On device mlx5_2 port 1, allocate a counter and bind the specified
100 qp on it
101
102 rdma statistic qp unbind link mlx5_2/1 cntn 4 lqpn 178
103 On device mlx5_2 port 1, bind the specified qp on the specified
104 counter
105
106 rdma statistic qp unbind link mlx5_2/1 cntn 4
107 On device mlx5_2 port 1, unbind all QPs on the specified counter.
108 After that this counter will be released automatically by the ker‐
109 nel.
110
111
113 rdma(8), rdma-dev(8), rdma-link(8), rdma-resource(8),
114
115
117 Mark Zhang <markz@mellanox.com>
118
119
120
121iproute2 17 Mar 2019 RDMA-STATISTIC(8)