调整网卡配置选项,充分发挥网卡性能。
1 2 | ethtool -G enp125s0f0 tx 8192 ethtool -G enp125s0f0 rx 8192 |
建议先执行ethtool -l enp125s0f0命令查询网卡支持设置的最大值。
1 | ethtool -L enp125s0f0 Combined 32 |
1 2 3 4 | ethtool -C enp125s0f0 adaptive-rx off ethtool -C enp125s0f0 adaptive-tx off ethtool -C enp125s0f0 rx-usecs 0 ethtool -C enp125s0f0 tx-usecs 0 |
1 | ethtool -K enp125s0f0 rx-gro-hw off |