调整队列深度和队列数
目的
1822网卡队列深度最大支持4096,默认配置为1024,可以增大buffer大小用于提高网卡Ring大小。
方法
- 查看队列深度默认大小,假设当前网卡名为enp131s0。
1
ethtool -g enp131s0
- 修改队列深度值为4096。
1
ethtool -G enp131s0 rx 4096 tx 4096
- 查看队列深度值是否更新成功。
1
ethtool -g enp131s0
- 减少队列数。
1 2
ethtool -L enp131s0 combined 4 ethtool -l enp131s0
父主题: 硬件优化