Blame man/man8/rdma-statistic.8

Packit Service 3880ab
.TH RDMA\-STATISTIC 8 "27 June 2019" "iproute2" "Linux"
Packit Service 3880ab
.SH NAME
Packit Service 3880ab
rdma-statistic \- RDMA statistic counter configuration
Packit Service 3880ab
.SH SYNOPSIS
Packit Service 3880ab
.sp
Packit Service 3880ab
.ad l
Packit Service 3880ab
.in +8
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B rdma
Packit Service 3880ab
.RI "[ " OPTIONS " ]"
Packit Service 3880ab
.B statistic
Packit Service 3880ab
.RI  "{ " COMMAND " | "
Packit Service 3880ab
.BR help " }"
Packit Service 3880ab
.sp
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B rdma statistic
Packit Service 3880ab
.RI "{ " OBJECT " }"
Packit Service 3880ab
.B show
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B rdma statistic
Packit Service 3880ab
.RI "[ " OBJECT " ]"
Packit Service 3880ab
.B show link
Packit Service 3880ab
.RI "[ " DEV/PORT_INDX " ]"
Packit Service 3880ab
.RI "[ " FILTER_NAME " " FILTER_VALUE " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B rdma statistic
Packit Service 3880ab
.IR OBJECT
Packit Service 3880ab
.B mode
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B rdma statistic
Packit Service 3880ab
.IR OBJECT
Packit Service 3880ab
.B set
Packit Service 3880ab
.IR COUNTER_SCOPE
Packit Service 3880ab
.RI "[ " DEV/PORT_INDEX " ]"
Packit Service 3880ab
.B auto
Packit Service 3880ab
.RI "{ " CRITERIA " | "
Packit Service 3880ab
.BR off " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B rdma statistic
Packit Service 3880ab
.IR OBJECT
Packit Service 3880ab
.B bind
Packit Service 3880ab
.IR COUNTER_SCOPE
Packit Service 3880ab
.RI "[ " DEV/PORT_INDEX " ]"
Packit Service 3880ab
.RI "[ " OBJECT-ID " ]"
Packit Service 3880ab
.RI "[ " COUNTER-ID " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B rdma statistic
Packit Service 3880ab
.IR OBJECT
Packit Service 3880ab
.B unbind
Packit Service 3880ab
.IR COUNTER_SCOPE
Packit Service 3880ab
.RI "[ " DEV/PORT_INDEX " ]"
Packit Service 3880ab
.RI "[ " COUNTER-ID " ]"
Packit Service 3880ab
.RI "[ " OBJECT-ID " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR COUNTER_SCOPE " := "
Packit Service 3880ab
.RB "{ " link " | " dev " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR OBJECT " := "
Packit Service 3880ab
.RB "{ " qp " | " mr " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR CRITERIA " := "
Packit Service 3880ab
.RB "{ " type " | " pid " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR FILTER_NAME " := "
Packit Service 3880ab
.RB "{ " cntn " | " lqpn " | " pid " | " qp-type " }"
Packit Service 3880ab
Packit Service 3880ab
.SH "DESCRIPTION"
Packit Service 3880ab
.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
Packit Service 3880ab
Packit Service 3880ab
.PP
Packit Service 3880ab
.I "DEV"
Packit Service 3880ab
- specifies counters on this RDMA device to show.
Packit Service 3880ab
Packit Service 3880ab
.I "PORT_INDEX"
Packit Service 3880ab
- specifies counters on this RDMA port to show.
Packit Service 3880ab
Packit Service 3880ab
.I "FILTER_NAME
Packit Service 3880ab
- specifies a filter to show only the results matching it.
Packit Service 3880ab
Packit Service 3880ab
.SS rdma statistic <object> set - configure counter statistic auto-mode for a specific device/port
Packit Service 3880ab
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.
Packit Service 3880ab
Packit Service 3880ab
.SS rdma statistic <object> bind - manually bind an object (e.g., a qp) with a counter
Packit Service 3880ab
When bound the statistics of this object are available in this counter. Not applicable for MR's.
Packit Service 3880ab
Packit Service 3880ab
.SS rdma statistic <object> unbind - manually unbind an object (e.g., a qp) from the counter previously bound
Packit Service 3880ab
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.
Packit Service 3880ab
Packit Service 3880ab
.I "COUNTER-ID"
Packit Service 3880ab
- specifies the id of the counter to be bound.
Packit Service 3880ab
If this argument is omitted then a new counter will be allocated.
Packit Service 3880ab
Packit Service 3880ab
.SH "EXAMPLES"
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic show
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the state of the default counter of all RDMA devices on the system.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic show link mlx5_2/1
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the state of the default counter of specified RDMA port
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp show
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the state of all qp counters of all RDMA devices on the system.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp show link mlx5_2/1
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the state of all qp counters of specified RDMA port.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp show link mlx5_2 pid 30489
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the state of all qp counters of specified RDMA port and belonging to pid 30489
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp show link mlx5_2 qp-type UD
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the state of all qp counters of specified RDMA port and with QP type UD
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp mode
Packit Service 3880ab
.RS 4
Packit Service 3880ab
List current counter mode on all devices
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp mode link mlx5_2/1
Packit Service 3880ab
.RS 4
Packit Service 3880ab
List current counter mode of device mlx5_2 port 1
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp set link mlx5_2/1 auto type on
Packit Service 3880ab
.RS 4
Packit Service 3880ab
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.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp set link mlx5_2/1 auto pid on
Packit Service 3880ab
.RS 4
Packit Service 3880ab
On device mlx5_2 port 1, for each new user QP bind it with a counter automatically. Per counter for QPs with same pid.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp set link mlx5_2/1 auto pid,type on
Packit Service 3880ab
.RS 4
Packit Service 3880ab
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.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp set link mlx5_2/1 auto off
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Turn-off auto mode on device mlx5_2 port 1. The allocated counters can be manually accessed.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp bind link mlx5_2/1 lqpn 178
Packit Service 3880ab
.RS 4
Packit Service 3880ab
On device mlx5_2 port 1, allocate a counter and bind the specified qp on it
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp unbind link mlx5_2/1 cntn 4 lqpn 178
Packit Service 3880ab
.RS 4
Packit Service 3880ab
On device mlx5_2 port 1, bind the specified qp on the specified counter
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic qp unbind link mlx5_2/1 cntn 4
Packit Service 3880ab
.RS 4
Packit Service 3880ab
On device mlx5_2 port 1, unbind all QPs on the specified counter. After that this counter will be released automatically by the kernel.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic show mr
Packit Service 3880ab
.RS 4
Packit Service 3880ab
List all currently allocated MR's and their counters.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
rdma statistic show mr mrn 6
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Dump a specific MR statistics with mrn 6. Dumps nothing if does not exists.
Packit Service 3880ab
.RE
Packit Service 3880ab
Packit Service 3880ab
.SH SEE ALSO
Packit Service 3880ab
.BR rdma (8),
Packit Service 3880ab
.BR rdma-dev (8),
Packit Service 3880ab
.BR rdma-link (8),
Packit Service 3880ab
.BR rdma-resource (8),
Packit Service 3880ab
.br
Packit Service 3880ab
Packit Service 3880ab
.SH AUTHORS
Packit Service 3880ab
Mark Zhang <markz@mellanox.com>
Packit Service 3880ab
.br
Packit Service 3880ab
Erez Alfasi <ereza@mellanox.com>