网卡丢包解决方案

1. 现象如下 01:20:01 PM IFACE rxerr/s txerr/s coll/s rxdrop/s txdrop/s txcarr/s rxfram/s rxfifo/s txfifo/s 01:50:01 PM eth0 6.68 0.00 0.00 5.62 0.00 0.00 6.68 0.00 0.00 01:50:01 PM eth1 0.00 0.00 0.00 1.21 0.00 0.00 0.00 0.00 0.00 02:00:01 PM eth0 6.86 0.00 0.00 5.96 0.00 0.00 6.86 0.00 0.00 02:00:01 PM eth1 0.00 0.00 0.00 1.21 0.00 0.00 0.00 0.00 0.00 02:10:01 PM eth0 6.50 0.00 0.00 5.94 0.00 0.00 6.50 0.00 0.00 02:10:01 PM eth1 0.00 0.00 0.00 1.20 0.00 0.00 0.00 0.00 0.00 02:50:01 PM eth0 0.00 0.00 0.00 27.07 0.00 0.00 0.00 0.00 0.00 02:50:01 PM eth1 0.00 0.00 0.00 1.18 0.00 0.00 0.00 0.00 0.00 # ifconfig eth0 RX packets:7601 errors:2 dropped:12313123 overruns:0 frame:2 eth1 RX packets:989 errors:0 dropped:23434445 overruns:0 frame:0 2. 解决方案 1). 增加网卡缓存 # ethtool -g eth1 Ring parameters for eth1: Pre-set maximums: RX: 4096 RX Mini: 0 RX Jumbo: 0 TX: 4096 Current hardware settings: RX: 256 RX Mini: 0 RX Jumbo: 0 # ethtool -G eth1 rx 1000 # ethtool -g eth0 Ring parameters for eth0: Pre-set maximums: RX: 1020 RX Mini: 0 RX Jumbo: 4080 TX: 255 Current hardware settings: RX: 1000 RX Mini: 0 RX Jumbo: 0 TX: 255 如若问题依旧, 更新网卡驱动 参考地址:  http://www.ttlsa.com/html/1600.html # lsmod |grep bnx2 bnx2i 74209 0 cnic 58073 1 bnx2i libiscsi2 77125 5 ib_iser,iscsi_tcp,bnx2i,cxgb3i,libiscsi_tcp scsi_transport_iscsi2 74073 7 ib_iser,iscsi_tcp,bnx2i,cxgb3i,libiscsi2 bnx2 209997 0 scsi_mod 196697 14 mpt2sas,scsi_transport_sas,mptctl,ib_iser,iscsi_tcp,bnx2i,cxgb3i,libiscsi2,scsi_transport_iscsi2,scsi_dh,sg,libata,megaraid_sas,sd_mod # ethtool -i eth0 driver: bnx2 version: 1.9.3 firmware-version: 3.5.12 ipms 1.6.0 bus-info: 0000:03:00.0 # modinfo bnx2 filename: /lib/modules/2.6.18-164.el5/kernel/drivers/net/bnx2.ko version: 1.9.3 license: GPL description: Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver author: Michael Chan <[email protected]> srcversion: D151EAED8C1037CA480DE9A alias: pci:v000014E4d0000163Csv*sd*bc*sc*i* alias: pci:v000014E4d0000163Bsv*sd*bc*sc*i* alias: pci:v000014E4d0000163Asv*sd*bc*sc*i* alias: pci:v000014E4d00001639sv*sd*bc*sc*i* alias: pci:v000014E4d000016ACsv*sd*bc*sc*i* alias: pci:v000014E4d000016AAsv*sd*bc*sc*i* alias: pci:v000014E4d000016AAsv0000103Csd00003102bc*sc*i* alias: pci:v000014E4d0000164Csv*sd*bc*sc*i* alias: pci:v000014E4d0000164Asv*sd*bc*sc*i* alias: pci:v000014E4d0000164Asv0000103Csd00003106bc*sc*i* alias: pci:v000014E4d0000164Asv0000103Csd00003101bc*sc*i* depends: vermagic: 2.6.18-164.el5 SMP mod_unload gcc-4.1 parm: disable_msi:Disable Message Signaled Interrupt (MSI) (int) parm: enable_entropy:Allow bnx2 to populate the /dev/random entropy pool (int) module_sig: 883f3504a9f766557f09578a977b7e112ebf209f6aab61295466fb787675fec1378b254df8d186609f705f1f37e06d7e2958667d258f6afe6ac1621228 驱动下载地址: http://zh-cn.broadcom.com/support/ethernet_nic/netxtremeii.php

转载于:https://my.oschina.net/766/blog/210954

猜你喜欢

转载自blog.csdn.net/weixin_33847182/article/details/91547346
今日推荐