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
- Check the value of rx_buff. The default value is 2.
1cat /sys/bus/pci/drivers/hinic/module/parameters/rx_buff - Add the hinic.conf file to the /etc/modprobe.d/ directory and change the value of rx_buff to 8.
1options hinic rx_buff=8
- Mount the hinic driver again for the new parameters to take effect.
1 2
rmmod hinic modprobe hinic
- Check whether the rx_buff parameter is updated successfully.
1cat /sys/bus/pci/drivers/hinic/module/parameters/rx_buff
Parent topic: Hardware Tuning