Modify the buffersize of the NIC in linux

Source: Internet
Author: User
Find some articles online, because the Nic buffersize is too small (Thisisacountofpacketsthathavebeendroppedbythekernel, eitherduetoafirewallconfigurationorduetoalackofnetw...
Find some articles online, because the Nic buffer size is too small (This is a count of packets that have been dropped by the kernel, either due to a firewallconfiguration or due to a lack of network buffers .), then we only need to adjust the network card buffersize and find some foreign articles. we can use ethtool to modify the buffer size of the network card. First, we need to support the network card because it is a NAT device, all my network cards are INTEL's M
Let's take a look at the ethtool description-g-show-ring www.2cto.com Queries the specified ethernet device for rx/tx ring parameter information. -G-set-ringChanges the rx/tx ring parameters of the specified ethernet device.
View the buffer size of the Current NIC. ethtool-g eth0Ring parameters for eth0: Pre-set maximums: RX: 4096RX Mini: 0RX Jumbo: 0TX: 4096 Current hardware settings: RX: 256RX Mini: 0RX Jumbo: 0TX: 256
Because my rx package has droped, we use www.2cto.com ethtool-G eth0 rx 2048. also for eth1, ethtool-G eth1 rx 2048. let's look at the modified ethtool-g eth0Ring parameters. for eth0: pre-set maximums: RX: 4096RX Mini: 0RX Jumbo: 0TX: 4096 Current hardware settings: RX: 2048RX Mini: 0RX Jumbo: 0TX: 2048 hours later, there is no increase in packet loss.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.