You can set the length of the transmit queue of the device using /sbin/ifconfig command as follows:
- Small value for slower devices with a high latency like modem links and ISDN.
- High value is recommend for server connected over the high-speed Internet connections that perform large data transfers.
Increasing The txqueuelen
Increase the txqueuelength parameter to a value between 1000 and 20000 per interface:ifconfig ${interface} txqueuelen ${size}
ifconfig eth1 txqueuelen 10000
ifconfig eth0 txqueuelen 5000
Setting the txqueuelen permanently
Edit /etc/rc.locale, enter:vi /etc/rc.local
Append the following setting per interface:
/sbin/ifconfig eth1 txqueuelen 10000
/sbin/ifconfig eth0 txqueuelen 10000
No comments:
Post a Comment