Rate This Document
Findability
Accuracy
Completeness
Readability

Adjusting the Size of Ring Buffer

Purpose

The Hi1822 NIC has a default Ring Buffer size of 1024, which can be increased up to 4096. In scenarios with sufficient memory that are sensitive to burst traffic, you can adjust both RX and TX ring sizes to 4096 to minimize packet loss.

Procedure

  1. Check the current Ring Buffer size and the upper limit of the hardware settings. Assume that the current NIC name is enp131s0.
    1
    ethtool -g enp131s0
    

  2. Change the RX and TX values to 4096.
    1
    ethtool -G enp131s0 rx 4096 tx 4096
    
  3. Check whether the RX and TX values are updated.
    1
    ethtool -g enp131s0