我要评分
获取效率
正确性
完整性
易理解

Querying Interface Traffic

You can check whether the switch configuration takes effect on the service side by checking whether there is traffic on interfaces.

  1. Configure queue priorities for RoCE NICs on all nodes.

    Even if you have bonded two interfaces (mode 0/2/4), you still need to configure the priority for each interface to achieve optimal network performance.

    1
    2
    mlnx_qos -i enp133s0f0 -f 1,0,0,0,0,0,0,0
    mlnx_qos -i enp133s0f1 -f 1,0,0,0,0,0,0,0
    
  2. Check whether there is traffic on the NIC.
    1
    2
    watch -n 1 "ethtool -S enp133s0f0 | grep prio"
    watch -n 1 "ethtool -S enp133s0f1 | grep prio"
    

    If the returned traffic changes, there is traffic on the NIC.

    Figure 1 Command output example for interface enp133s0f0
    Figure 2 Command output example for interface enp133s0f1