beautypg.com

9 ethernet performance counters – Dell Mellanox Family of Adapters User Manual

Page 50

background image

Driver Installation and Configuration

Rev 1.1

Mellanox Technologies

50

4.2.9

Ethernet Performance Counters

Counters are used to provide information about how well an operating system, an application, a
service, or a driver is performing. The counter data helps determine system bottlenecks and fine-
tune the system and application performance. The operating system, network, and devices pro-
vide counter data that an application can consume to provide users with a graphical view of how
well the system is performing.

The counter index is a QP attribute given in the QP context. Multiple QPs may be associated with
the same counter set, If multiple QPs share the same counter its value represents the cumulative
total.

ConnectX®-3 support 127 different counters which allocated:

4 counters reserved for PF - 2 counters for each port

2 counters reserved for VF - 1 counter for each port

All other counters if exist are allocated by demand

RoCE counters are available only through sysfs located under:

# /sys/class/infiniband/mlx4_*/ports/*/counters/

# /sys/class/infiniband/mlx4_*/ports/*/counters_ext/

ethtool -C eth [rx-usecs N] [rx-
frames N]

Sets the interrupt coalescing settings when the adaptive
moderation is disabled.

Note: usec settings correspond to the time to wait after the
*last* packet is sent/received before triggering an inter-
rupt.

ethtool -a eth

Queries the pause frame settings.

ethtool -A eth [rx on|off] [tx
on|off]

Sets the pause frame settings.

ethtool -g eth

Queries the ring size values.

ethtool -G eth [rx ] [tx
]

Modifies the rings size.

ethtool -S eth

Obtains additional device statistics.

ethtool -t eth

Performs a self diagnostics test.

ethtool -s eth msglvl [N]

Changes the current driver message level.

ethtool -T eth

Shows time stamping capabilities

ethtool -l eth

Shows the number of channels

ethtool -L eth [rx ] [tx
]

Sets the number of channels

Table 7 - ethtool Supported Options

Options

Description