User Manual

Rev 4.70
Mellanox Technologies
115
Examples
1. Read local port's performance counters.
> perfquery
--loop_ports, -l Loop ports
--reset_after_read, -r Reset the counters after reading them
--Ca, -C <ca_name> Use the specified channel adapter or router
--Port, -P <ca_port> Use the specified port
--Reset_only, -R Reset the counters
--timeout, -t <timeout_ms> Override the default timeout for the solicited MADs [msec]
--version, -V Show version info
<lid | guid>
[[port][reset_mask]]
LID or GUID
--extended, -x show extended port counters
--extended_speeds, -T show port extended speeds counters
--oprcvcounters show Rcv Counters per Op code
--flowctlcounters show flow control counters
--vloppackets show packets received per Op code per VL
--vlopdata show data received per Op code per VL
--vlxmitflowctlerrors show flow control update errors per VL
--vlxmitcounters show ticks waiting to transmit counters per VL
--swportvlcong show sw port VL congestion
--rcvcc show Rcv congestion control counters
--slrcvfecn show SL Rcv FECN counters
--slrcvbecn show SL Rcv BECN counters
--xmitcc show Xmit congestion control counters
--vlxmittimecc show VL Xmit Time congestion control counters
perfquery -r 32 1 # read performance counters and reset
perfquery -e -r 32 1# read extended performance counters and reset
perfquery -R 0x20 1 # reset performance counters of port 1 only
perfquery -e -R 0x20 1# reset extended performance counters of port 1 only
perfquery -R -a 32 # reset performance counters of all ports
perfquery -R 32 2 0x0fff# reset only error counters of port 2
perfquery -R 32 2 0xf000# reset only non-error counters of port 2
Table 20 - perfquery Flags and Options
Flag Description