]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/rdma-statistic.8
rdma: Document MR statistics
[mirror_iproute2.git] / man / man8 / rdma-statistic.8
CommitLineData
5c78ffa0 1.TH RDMA\-STATISTIC 8 "27 June 2019" "iproute2" "Linux"
ca084842
MZ
2.SH NAME
3rdma-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
5c78ffa0 18.RI "{ " OBJECT " }"
ca084842
MZ
19.B show
20
21.ti -8
22.B rdma statistic
23.RI "[ " OBJECT " ]"
24.B show link
25.RI "[ " DEV/PORT_INDX " ]"
26
27.ti -8
28.B rdma statistic
29.IR OBJECT
30.B mode
31
32.ti -8
33.B rdma statistic
34.IR OBJECT
35.B set
36.IR COUNTER_SCOPE
37.RI "[ " DEV/PORT_INDEX "]"
38.B auto
39.RI "{ " CRITERIA " | "
40.BR off " }"
41
42.ti -8
43.B rdma statistic
44.IR OBJECT
45.B bind
46.IR COUNTER_SCOPE
47.RI "[ " DEV/PORT_INDEX "]"
48.RI "[ " OBJECT-ID " ]"
49.RI "[ " COUNTER-ID " ]"
50
51.ti -8
52.B rdma statistic
53.IR OBJECT
54.B unbind
55.IR COUNTER_SCOPE
56.RI "[ " DEV/PORT_INDEX "]"
57.RI "[ " COUNTER-ID " ]"
58.RI "[ " OBJECT-ID " ]"
59
60.ti -8
61.IR COUNTER_SCOPE " := "
62.RB "{ " link " | " dev " }"
63
64.ti -8
65.IR OBJECT " := "
5c78ffa0 66.RB "{ " qp " | " mr " }"
ca084842
MZ
67
68.ti -8
69.IR CRITERIA " := "
70.RB "{ " type " }"
71
72.SH "DESCRIPTION"
73.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
74
75.PP
76.I "DEV"
77- specifies counters on this RDMA device to show.
78
79.I "PORT_INDEX"
80- specifies counters on this RDMA port to show.
81
82.SS rdma statistic <object> set - configure counter statistic auto-mode for a specific device/port
5c78ffa0 83In auto mode all objects belong to one category are bind automatically to a single counter set. Not applicable for MR's.
ca084842
MZ
84
85.SS rdma statistic <object> bind - manually bind an object (e.g., a qp) with a counter
5c78ffa0 86When bound the statistics of this object are available in this counter. Not applicable for MR's.
ca084842
MZ
87
88.SS rdma statistic <object> unbind - manually unbind an object (e.g., a qp) from the counter previously bound
5c78ffa0 89When 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.
ca084842
MZ
90
91.I "COUNTER-ID"
92- specifies the id of the counter to be bound.
93If this argument is omitted then a new counter will be allocated.
94
95.SH "EXAMPLES"
96.PP
97rdma statistic show
98.RS 4
99Shows the state of the default counter of all RDMA devices on the system.
100.RE
101.PP
102rdma statistic show link mlx5_2/1
103.RS 4
104Shows the state of the default counter of specified RDMA port
105.RE
106.PP
107rdma statistic qp show
108.RS 4
109Shows the state of all qp counters of all RDMA devices on the system.
110.RE
111.PP
112rdma statistic qp show link mlx5_2/1
113.RS 4
114Shows the state of all qp counters of specified RDMA port.
115.RE
116.PP
117rdma statistic qp show link mlx5_2 pid 30489
118.RS 4
119Shows the state of all qp counters of specified RDMA port and belonging to pid 30489
120.RE
121.PP
122rdma statistic qp mode
123.RS 4
124List current counter mode on all devices
125.RE
126.PP
127rdma statistic qp mode link mlx5_2/1
128.RS 4
129List current counter mode of device mlx5_2 port 1
130.RE
131.PP
132rdma statistic qp set link mlx5_2/1 auto type on
133.RS 4
134On device mlx5_2 port 1, for each new QP bind it with a counter automatically. Per counter for QPs with same qp type in each process. Currently only "type" is supported.
135.RE
136.PP
137rdma statistic qp set link mlx5_2/1 auto off
138.RS 4
139Turn-off auto mode on device mlx5_2 port 1. The allocated counters can be manually accessed.
140.RE
141.PP
142rdma statistic qp bind link mlx5_2/1 lqpn 178
143.RS 4
144On device mlx5_2 port 1, allocate a counter and bind the specified qp on it
145.RE
146.PP
147rdma statistic qp unbind link mlx5_2/1 cntn 4 lqpn 178
148.RS 4
149On device mlx5_2 port 1, bind the specified qp on the specified counter
150.RE
151.PP
152rdma statistic qp unbind link mlx5_2/1 cntn 4
153.RS 4
154On device mlx5_2 port 1, unbind all QPs on the specified counter. After that this counter will be released automatically by the kernel.
ca084842
MZ
155.RE
156.PP
5c78ffa0
EA
157rdma statistic show mr
158.RS 4
159List all currently allocated MR's and their counters.
160.RE
161.PP
162rdma statistic show mr mrn 6
163.RS 4
164Dump a specific MR statistics with mrn 6. Dumps nothing if does not exists.
ca084842
MZ
165
166.SH SEE ALSO
167.BR rdma (8),
168.BR rdma-dev (8),
169.BR rdma-link (8),
170.BR rdma-resource (8),
171.br
172
5c78ffa0 173.SH AUTHORS
ca084842 174Mark Zhang <markz@mellanox.com>
5c78ffa0
EA
175.br
176Erez Alfasi <ereza@mellanox.com>