Rate This Document
Findability
Accuracy
Completeness
Readability

Adjusting rx_buff

Purpose

The default value of rx_buff of the Hi1822 NIC is 2 KB. When 64 KB packets are aggregated, multiple inconsecutive memory blocks are required, resulting in low memory usage. This parameter can be set to 2, 4, 8 or 16 KB to reduce discontinuous memory blocks and improve memory usage.

Procedure

  1. Check the value of rx_buff. The default value is 2.
    1
    cat /sys/bus/pci/drivers/hinic/module/parameters/rx_buff
    
  2. Add the hinic.conf file to the /etc/modprobe.d/ directory and change the value of rx_buff to 8.
    1
    options hinic rx_buff=8
    
  3. Mount the hinic driver again for the new parameters to take effect.
    1
    2
    rmmod hinic
    modprobe hinic
    
  4. Check whether the rx_buff parameter is updated successfully.
    1
    cat /sys/bus/pci/drivers/hinic/module/parameters/rx_buff