How do I set txqueuelen (the length of the transmit queue) length of the network card device under Linux? How do I set it for a high latency and/or a high speed network for bulk transfer from disturbing interactive traffic like ssh too much?
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
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 10/22/09




{ 1 comment… read it below or add one }
You can use also this command:
ip link set eth1 txqueuelen 10000