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
- 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.
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.
- Go to the directory.
cd /etc/modprobe.d
- Create a file.
vi hinic.conf
- Press i to enter the insert mode and add the following content to the file:
options hinic rx_buff=8
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Go to the directory.
- 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_buffIf 8 is returned, the update is successful.

Parent topic: Hardware Tuning