This site is now 100% read-only, and retired.

XML logo

How to set txqueuelen?
Posted by ajt on Tue 30 Nov 2010 at 18:35
Tags: none.

Today I spotted a comment that suggested if you have Gig networking - which I do at home - you should increase the transmission queue length to get better performance from your network card. The suggested incantations being:

$ sudo ifconfig ethX txqueuelen 10000

or

$ sudo ip link set ethX txqueuelen 10000

Where X is the NIC you want to increase the setting for.

While I can set something in the /etc/rc.local is there are better place to make this permanent I wonder?

 

Comments on this Entry

Re: How to set txqueuelen?
Posted by daemon (146.231.xx.xx) on Tue 30 Nov 2010 at 21:06
[ View Weblogs ]

How about as an "up" command for the NIC in /etc/network/interfaces, or as a snippet in /etc/network/if-up.d/?

Cheers
:wq

[ Parent ]

Re: How to set txqueuelen?
Posted by ajt (195.145.xx.xx) on Wed 1 Dec 2010 at 09:41
[ View Weblogs ]

I've gone for a script in /etc/network/if-up.d/ based on one of the other scripts in that directory already. Thanks for the suggestion.

--
"It's Not Magic, It's Work"
Adam

[ Parent ]