查看网卡配置
ethtool -g eth1修改网卡配置
ethtool -G eth1 rx 4096
ethtool -G eth1 tx 4096
这样,对于流量非常重的网卡会稍微好点。具体效果还在观察。
[root@localhost ~]# ethtool -g eth1
Ring parameters for eth1:
Pre-set maximums:
RX: 4096
RX Mini: 0
RX Jumbo: 0
TX: 4096
Current hardware settings:
RX: 1024
RX Mini: 0
RX Jumbo: 0
TX: 512
[root@localhost ~]# ethtool -G eth1 rx 4096
[root@localhost ~]# ethtool -G eth1 tx 4096
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ethtool -g eth1
Ring parameters for eth1:
Pre-set maximums:
RX: 4096
RX Mini: 0
RX Jumbo: 0
TX: 4096
Current hardware settings:
RX: 4096
RX Mini: 0
RX Jumbo: 0
TX: 4096
本文介绍如何使用ethtool工具查看及调整网卡配置参数,通过设置接收和发送缓冲区大小来优化高负载网络环境下的网卡性能。
1031

被折叠的 条评论
为什么被折叠?



