Debian Codegraph @

upstream/opensuse-leap-16-1/man8/rdma-statistic.8

raw
1 .TH RDMA\-STATISTIC 8 "27 June 2019" "iproute2" "Linux"
2 .SH NAME
3 rdma-statistic \- RDMA statistic counter configuration
4 .SH SYNOPSIS
5 .sp
6 .ad l
7 .in +8
8 .ti -8
9 .B rdma
10 .RI "[ " OPTIONS " ]"
11 .B statistic
12 .RI "{ " COMMAND " | "
13 .BR help " }"
14 .sp
15
16 .ti -8
17 .B rdma statistic
18 .RI "{ " OBJECT " }"
19 .B show
20
21 .ti -8
22 .B rdma statistic
23 .RI "[ " OBJECT " ]"
24 .B show link
25 .RI "[ " DEV/PORT_INDX " ]"
26 .RI "[ " FILTER_NAME " " FILTER_VALUE " ]"
27
28 .ti -8
29 .B rdma statistic
30 .IR OBJECT
31 .B mode
32
33 .ti -8
34 .B rdma statistic
35 .IR OBJECT
36 .B set
37 .IR COUNTER_SCOPE
38 .RI "[ " DEV/PORT_INDEX " ]"
39 .B auto
40 .RI "{ " CRITERIA " | "
41 .BR off " }"
42
43 .ti -8
44 .B rdma statistic
45 .IR OBJECT
46 .B bind
47 .IR COUNTER_SCOPE
48 .RI "[ " DEV/PORT_INDEX " ]"
49 .RI "[ " OBJECT-ID " ]"
50 .RI "[ " COUNTER-ID " ]"
51
52 .ti -8
53 .B rdma statistic
54 .IR OBJECT
55 .B unbind
56 .IR COUNTER_SCOPE
57 .RI "[ " DEV/PORT_INDEX " ]"
58 .RI "[ " COUNTER-ID " ]"
59 .RI "[ " OBJECT-ID " ]"
60
61 .ti -8
62 .B rdma statistic
63 .B mode
64 .B "[" supported "]"
65 .B link
66 .RI "[ " DEV/PORT_INDEX " ]"
67
68 .ti -8
69 .B rdma statistic
70 .B set
71 .B link
72 .RI "[ " DEV/PORT_INDEX " ]"
73 .B optional-counters
74 .RI "[ " OPTIONAL-COUNTERS " ]"
75
76 .ti -8
77 .B rdma statistic
78 .B unset
79 .B link
80 .RI "[ " DEV/PORT_INDEX " ]"
81 .B optional-counters
82
83 .ti -8
84 .IR COUNTER_SCOPE " := "
85 .RB "{ " link " | " dev " }"
86
87 .ti -8
88 .IR OBJECT " := "
89 .RB "{ " qp " | " mr " }"
90
91 .ti -8
92 .IR CRITERIA " := "
93 .RB "{ " type " | " pid " }"
94
95 .ti -8
96 .IR FILTER_NAME " := "
97 .RB "{ " cntn " | " lqpn " | " pid " | " qp-type " }"
98
99 .SH "DESCRIPTION"
100 .SS rdma statistic [object] show - Queries the specified RDMA device for RDMA and driver-specific statistics. Show the default hw counters if object is not specified
101
102 .PP
103 .I "DEV"
104 - specifies counters on this RDMA device to show.
105
106 .I "PORT_INDEX"
107 - specifies counters on this RDMA port to show.
108
109 .I "FILTER_NAME
110 - specifies a filter to show only the results matching it.
111
112 .SS rdma statistic <object> set - configure counter statistic auto-mode for a specific device/port
113 In auto mode all objects belong to one category are bind automatically to a single counter set. The "off" is global for all auto modes together. Not applicable for MR's.
114
115 .SS rdma statistic <object> bind - manually bind an object (e.g., a qp) with a counter
116 When bound the statistics of this object are available in this counter. Not applicable for MR's.
117
118 .SS rdma statistic <object> unbind - manually unbind an object (e.g., a qp) from the counter previously bound
119 When unbound the statistics of this object are no longer available in this counter; And if object id is not specified then all objects on this counter will be unbound. Not applicable for MR's.
120
121 .I "COUNTER-ID"
122 - specifies the id of the counter to be bound.
123 If this argument is omitted then a new counter will be allocated.
124
125 .SS rdma statistic mode - Display the enabled optional counters for each link.
126
127 .SS rdma statistic mode supported - Display the supported optional counters for each link.
128
129 .SS rdma statistic set - Enable a set of optional counters for a specific device/port.
130
131 .I "OPTIONAL-COUNTERS"
132 - specifies the name of the optional counters to enable. Optional counters that are not specified will be disabled. Note that optional counters are driver-specific.
133
134 .SS rdma statistic unset - Disable all optional counters for a specific device/port.
135
136 .SH "EXAMPLES"
137 .PP
138 rdma statistic show
139 .RS 4
140 Shows the state of the default counter of all RDMA devices on the system.
141 .RE
142 .PP
143 rdma statistic show link mlx5_2/1
144 .RS 4
145 Shows the state of the default counter of specified RDMA port
146 .RE
147 .PP
148 rdma statistic qp show
149 .RS 4
150 Shows the state of all qp counters of all RDMA devices on the system.
151 .RE
152 .PP
153 rdma statistic qp show link mlx5_2/1
154 .RS 4
155 Shows the state of all qp counters of specified RDMA port.
156 .RE
157 .PP
158 rdma statistic qp show link mlx5_2 pid 30489
159 .RS 4
160 Shows the state of all qp counters of specified RDMA port and belonging to pid 30489
161 .RE
162 .PP
163 rdma statistic qp show link mlx5_2 qp-type UD
164 .RS 4
165 Shows the state of all qp counters of specified RDMA port and with QP type UD
166 .RE
167 .PP
168 rdma statistic qp mode
169 .RS 4
170 List current counter mode on all devices
171 .RE
172 .PP
173 rdma statistic qp mode link mlx5_2/1
174 .RS 4
175 List current counter mode of device mlx5_2 port 1
176 .RE
177 .PP
178 rdma statistic qp set link mlx5_2/1 auto type on
179 .RS 4
180 On device mlx5_2 port 1, for each new user QP bind it with a counter automatically. Per counter for QPs with same qp type.
181 .RE
182 .PP
183 rdma statistic qp set link mlx5_2/1 auto pid on
184 .RS 4
185 On device mlx5_2 port 1, for each new user QP bind it with a counter automatically. Per counter for QPs with same pid.
186 .RE
187 .PP
188 rdma statistic qp set link mlx5_2/1 auto pid,type on
189 .RS 4
190 On device mlx5_2 port 1, for each new user QP bind it with a counter automatically. Per counter for QPs with same pid and same type.
191 .RE
192 .PP
193 rdma statistic qp set link mlx5_2/1 auto off
194 .RS 4
195 Turn-off auto mode on device mlx5_2 port 1. The allocated counters can be manually accessed.
196 .RE
197 .PP
198 rdma statistic qp bind link mlx5_2/1 lqpn 178
199 .RS 4
200 On device mlx5_2 port 1, allocate a counter and bind the specified qp on it
201 .RE
202 .PP
203 rdma statistic qp unbind link mlx5_2/1 cntn 4 lqpn 178
204 .RS 4
205 On device mlx5_2 port 1, bind the specified qp on the specified counter
206 .RE
207 .PP
208 rdma statistic qp unbind link mlx5_2/1 cntn 4
209 .RS 4
210 On device mlx5_2 port 1, unbind all QPs on the specified counter. After that this counter will be released automatically by the kernel.
211 .RE
212 .PP
213 rdma statistic show mr
214 .RS 4
215 List all currently allocated MR's and their counters.
216 .RE
217 .PP
218 rdma statistic show mr mrn 6
219 .RS 4
220 Dump a specific MR statistics with mrn 6. Dumps nothing if does not exists.
221 .RE
222 .PP
223 rdma statistic mode link mlx5_2/1
224 .RS 4
225 Display the optional counters that was enabled on mlx5_2/1.
226 .RE
227 .PP
228 rdma statistic mode supported link mlx5_2/1
229 .RS 4
230 Display the optional counters that mlx5_2/1 supports.
231 .RE
232 .PP
233 rdma statistic set link mlx5_2/1 optional-counters cc_rx_ce_pkts,cc_rx_cnp_pkts
234 .RS 4
235 Enable the cc_rx_ce_pkts,cc_rx_cnp_pkts counters on device mlx5_2 port 1.
236 .RE
237 .PP
238 rdma statistic unset link mlx5_2/1 optional-counters
239 .RS 4
240 Disable all the optional counters on device mlx5_2 port 1.
241 .RE
242
243 .SH SEE ALSO
244 .BR rdma (8),
245 .BR rdma-dev (8),
246 .BR rdma-link (8),
247 .BR rdma-resource (8),
248 .br
249
250 .SH AUTHORS
251 Mark Zhang <[email protected]>
252 .br
253 Erez Alfasi <[email protected]>
254 .br
255 Neta Ostrovsky <[email protected]>