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

Adjusting rx_buff

Purpose

The current tuning method applies only to the Hi1822 NIC.

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. If the value is not 8, change the value by performing 2. If the value is 8, perform 3.
    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. Go to the directory.
      cd /etc/modprobe.d
    2. Create a file.
      vi hinic.conf
    3. Press i to enter the insert mode and add the following content to the file:
      options hinic rx_buff=8
    4. Press Esc, type :wq!, and press Enter to save the file and exit.
  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
    

    If 8 is returned, the update is successful.