[WBEL-users] changing txqueuelen

Vincent.Raffensberger@dtn.com Vincent.Raffensberger@dtn.com
Fri, 18 Jun 2004 10:48:57 -0500


I appreciate the help.  Using ifup-local looks like the best way to do it.
I'm surprised that there isn't a variable for the ifcfg-eth? config files 
to handle it.  There one for every other ifconfig value...  I guess 
txqueuelen isn't modified by many people...

When the default txqueuelen changed from 100 to 1000, it caused a ton of 
collisions on interfaces I have connected to a proprietary device 
(satellite data receiver).
I don't fully understand it yet, but changing this value back to 100 (or 
anything under 250) fixes the problem.

Thanks.



Kirby Bohling <kbohling@birddog.com> 
06/16/2004 01:47 PM

To
Vincent.Raffensberger@dtn.com
cc
Whitebox-users@beau.org
Subject
Re: [WBEL-users] changing txqueuelen






On Wed, Jun 16, 2004 at 11:56:02AM -0500, Vincent.Raffensberger@dtn.com 
wrote:
> Does anyone know how to change the default txqueuelen value for eth 
> devices via initscript's ifup scripts?
> I can change it with ifconfig in rc.local, but I'm looking for a cleaner 

> way to do it upon startup.

Vincent,

                 I'm not sure if you'll view it as cleaner or not, but the
startup scripts run ifup runs ifup-post which at the bottom runs 
"/sbin/ifup-local", which passes as a parameter the device which
you just ifup'ed.  You could script it there (then the setting would
be run every time, not just on boot).

                 Otherwise, you might check in:

/usr/share/initscripts-*/sysconfig.txt

The closest thing I've found that might work, is if you can set it
via ethtool, there is an option:

    ETHTOOL_OPTS=...
      Any device-specific options supported by ethtool. For example,
      if you wanted to force 100Mb full duplex:
        ETHTOOL_OPTS="speed 100 duplex full autoneg off"
      Note that changing speed or duplex settings almost always
      requires disabling autonegotiation with 'autoneg off'.

Reading the mage page, there's nothing obvious that sets the
txqueuelen, but it might be there under a different name that I
don't recognize.

                                 Kirby


> 
> thanks.