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

Page 50

Advertising
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<x> [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<x>

Queries the pause frame settings.

ethtool -A eth<x> [rx on|off] [tx
on|off]

Sets the pause frame settings.

ethtool -g eth<x>

Queries the ring size values.

ethtool -G eth<x> [rx <N>] [tx
<N>]

Modifies the rings size.

ethtool -S eth<x>

Obtains additional device statistics.

ethtool -t eth<x>

Performs a self diagnostics test.

ethtool -s eth<x> msglvl [N]

Changes the current driver message level.

ethtool -T eth<x>

Shows time stamping capabilities

ethtool -l eth<x>

Shows the number of channels

ethtool -L eth<x> [rx <N>] [tx
<N>]

Sets the number of channels

Table 7 - ethtool Supported Options

Options

Description

Advertising