{"id":3595,"date":"2022-12-20T17:09:06","date_gmt":"2022-12-20T20:09:06","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/rdmastatistic-man8\/"},"modified":"2022-12-20T17:09:06","modified_gmt":"2022-12-20T20:09:06","slug":"rdmastatistic-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/rdmastatistic-man8\/","title":{"rendered":"RDMA&minus;STATISTIC (man8)"},"content":{"rendered":"<h1 align=\"center\">RDMA\u2212STATISTIC<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma-statistic \u2212 RDMA statistic counter configuration<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>rdma<\/b> [ <i>OPTIONS<\/i> ] <b>statistic<\/b> { <i>COMMAND<\/i> | <b>help<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>rdma statistic<\/b> { <i>OBJECT<\/i> } <b>show<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>rdma statistic<\/b> [ <i>OBJECT<\/i> ] <b>show link<\/b> [ <i>DEV\/PORT_INDX<\/i> ] [ <i>FILTER_NAME FILTER_VALUE<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>rdma statistic<\/b> <i>OBJECT<\/i> <b>mode<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>rdma statistic<\/b> <i>OBJECT<\/i> <b>set<\/b> <i>COUNTER_SCOPE<\/i> [ <i>DEV\/PORT_INDEX<\/i> ] <b>auto<\/b> { <i>CRITERIA<\/i> | <b>off<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>rdma statistic<\/b> <i>OBJECT<\/i> <b>bind<\/b> <i>COUNTER_SCOPE<\/i> [ <i>DEV\/PORT_INDEX<\/i> ] [ <i>OBJECT-ID<\/i> ] [ <i>COUNTER-ID<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>rdma statistic<\/b> <i>OBJECT<\/i> <b>unbind<\/b> <i>COUNTER_SCOPE<\/i> [ <i>DEV\/PORT_INDEX<\/i> ] [ <i>COUNTER-ID<\/i> ] [ <i>OBJECT-ID<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>COUNTER_SCOPE<\/i> := { <b>link<\/b> | <b>dev<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>OBJECT<\/i> := { <b>qp<\/b> | <b>mr<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>CRITERIA<\/i> := { <b>type<\/b> | <b>pid<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>FILTER_NAME<\/i> := { <b>cntn<\/b> | <b>lqpn<\/b> | <b>pid<\/b> | <b>qp-type<\/b> }<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rdma statistic [object] show &#8211; Queries the specified RDMA device for RDMA and driver-specific statistics. Show the default hw counters if object is not specified<\/b> <i><br \/> DEV<\/i> &#8211; specifies counters on this RDMA device to show.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>PORT_INDEX<\/i> &#8211; specifies counters on this RDMA port to show.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>FILTER_NAME<\/i> &#8211; specifies a filter to show only the results matching it.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rdma statistic <object> set &#8211; configure counter statistic auto-mode for a specific device\/port<\/b> <br \/> In auto mode all objects belong to one category are bind automatically to a single counter set. The &#8220;off&#8221; is global for all auto modes together. Not applicable for MR\u2019s.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rdma statistic <object> bind &#8211; manually bind an object (e.g., a qp) with a counter<\/b> <br \/> When bound the statistics of this object are available in this counter. Not applicable for MR\u2019s.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rdma statistic <object> unbind &#8211; manually unbind an object (e.g., a qp) from the counter previously bound<\/b> <br \/> 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\u2019s.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>COUNTER-ID<\/i> &#8211; specifies the id of the counter to be bound. If this argument is omitted then a new counter will be allocated.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic show<\/p>\n<p style=\"margin-left:17%;\">Shows the state of the default counter of all RDMA devices on the system.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic show link mlx5_2\/1<\/p>\n<p style=\"margin-left:17%;\">Shows the state of the default counter of specified RDMA port<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp show<\/p>\n<p style=\"margin-left:17%;\">Shows the state of all qp counters of all RDMA devices on the system.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp show link mlx5_2\/1<\/p>\n<p style=\"margin-left:17%;\">Shows the state of all qp counters of specified RDMA port.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp show link mlx5_2 pid 30489<\/p>\n<p style=\"margin-left:17%;\">Shows the state of all qp counters of specified RDMA port and belonging to pid 30489<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp show link mlx5_2 qp-type UD<\/p>\n<p style=\"margin-left:17%;\">Shows the state of all qp counters of specified RDMA port and with QP type UD<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp mode<\/p>\n<p style=\"margin-left:17%;\">List current counter mode on all devices<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp mode link mlx5_2\/1<\/p>\n<p style=\"margin-left:17%;\">List current counter mode of device mlx5_2 port 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp set link mlx5_2\/1 auto type on<\/p>\n<p style=\"margin-left:17%;\">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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp set link mlx5_2\/1 auto pid on<\/p>\n<p style=\"margin-left:17%;\">On device mlx5_2 port 1, for each new user QP bind it with a counter automatically. Per counter for QPs with same pid.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp set link mlx5_2\/1 auto pid,type on<\/p>\n<p style=\"margin-left:17%;\">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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp set link mlx5_2\/1 auto off<\/p>\n<p style=\"margin-left:17%;\">Turn-off auto mode on device mlx5_2 port 1. The allocated counters can be manually accessed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp bind link mlx5_2\/1 lqpn 178<\/p>\n<p style=\"margin-left:17%;\">On device mlx5_2 port 1, allocate a counter and bind the specified qp on it<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp unbind link mlx5_2\/1 cntn 4 lqpn 178<\/p>\n<p style=\"margin-left:17%;\">On device mlx5_2 port 1, bind the specified qp on the specified counter<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic qp unbind link mlx5_2\/1 cntn 4<\/p>\n<p style=\"margin-left:17%;\">On device mlx5_2 port 1, unbind all QPs on the specified counter. After that this counter will be released automatically by the kernel.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic show mr<\/p>\n<p style=\"margin-left:17%;\">List all currently allocated MR\u2019s and their counters.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">rdma statistic show mr mrn 6<\/p>\n<p style=\"margin-left:17%;\">Dump a specific MR statistics with mrn 6. Dumps nothing if does not exists.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rdma<\/b>(8), <b>rdma-dev<\/b>(8), <b>rdma-link<\/b>(8), <b>rdma-resource<\/b>(8),<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Mark Zhang <markz@mellanox.com> <br \/> Erez Alfasi <ereza@mellanox.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  rdma-statistic \u2212 RDMA statistic counter configuration <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,711],"class_list":["post-3595","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-rdma-statistic"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3595"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3595\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}