Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] Set txqueuelen via /etc/conf.d/net

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
VPN-User
n00b
n00b
Posts: 46
Joined: Thu Feb 03, 2005 12:52 am

[SOLVED] Set txqueuelen via /etc/conf.d/net

  • Quote

Post by VPN-User » Mon Aug 27, 2007 11:07 pm

Hello,

is there a way to set the txqueuelen (ifconfig ethx txqueuelen y) via /etc/conf.d/net?

Its weird, on fresh boot I have a txqueuelen of 1000 on eth0 which is on nvidia forcedeth-driver and a txqueuelen of 100 on eth1, which is on intel e1000-driver, both are gigabit interfaces.

What gives?
Last edited by VPN-User on Tue Aug 28, 2007 2:17 pm, edited 1 time in total.
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Mon Aug 27, 2007 11:31 pm

Code: Select all

modules=( "ifconfig" ) # not needed, really
config_ethX=(  "<normal config stuff> txqueuelen N" )
Basically, you can stick whatever ifconfig command you want into that variable.
Thomas S. Howard
Top
VPN-User
n00b
n00b
Posts: 46
Joined: Thu Feb 03, 2005 12:52 am

  • Quote

Post by VPN-User » Tue Aug 28, 2007 8:59 am

Have you tried this?

I get this:

Code: Select all

 * Starting eth1
 *   Bringing up eth1
 *     192.168.3.1                                                        [ ok ]
 *     txqueuelen
 *     No loaded modules provide "txqueuelen" (txqueuelen_start)
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Tue Aug 28, 2007 9:37 am

You forgot to quote (ie use ")
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
VPN-User
n00b
n00b
Posts: 46
Joined: Thu Feb 03, 2005 12:52 am

  • Quote

Post by VPN-User » Tue Aug 28, 2007 9:40 am

Thats how my /etc/conf.d/net looks like:

Code: Select all

modules=( "wpa_supplicant" "dhcpcd" )

# 54 MBit PCI WLAN (Madwifi)
wpa_supplicant_ath0="-Dmadwifi"
wpa_timeout_ath0=60
iwpriv_ath0="bgscan 0"
#config_ath0="192.168.1.1 netmask 255.255.255.0"
#routes_ath0="default via 192.168.1.254"
config_ath0="dhcp"
dhcp_ath0="release nodns"
dhcpcd_ath0="-R -N -h kik-server"
#fallback_ath0="10.0.0.1 netmask 255.255.255.0"

# 1 GBit onboard (forcedeth)
config_eth0="192.168.2.1 netmask 255.255.255.0"
#routes_eth0="default via 192.168.0.1"
#config_eth0="dhcp"
#dhcpcd_eth0="-R -N -h kik-server"
fallback_eth0="1.2.3.4 netmask 255.0.0.0"

# 1 GBit PCI (e1000)
config_eth1=("192.168.3.1 netmask 255.255.255.0" "txqueuelen 1000")
#config_eth1="dhcp"
#dhcpcd_eth1="-R -N -h kik-server"
fallback_eth1="1.2.3.5 netmask 255.0.0.0"

# OpenVPN Server
tuntap_tap0="tap"
config_tap0="192.168.4.1 netmask 255.255.255.0"
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Tue Aug 28, 2007 10:36 am

Code: Select all

config_eth1=("192.168.3.1 netmask 255.255.255.0 txqueuelen 1000")
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
VPN-User
n00b
n00b
Posts: 46
Joined: Thu Feb 03, 2005 12:52 am

  • Quote

Post by VPN-User » Tue Aug 28, 2007 10:40 am

Ahhh that did the trick! Thanks!

Out of curiousity, why isn't there a "proper" way doing this? I mean, like setting MTU for example. Or better, why do the txqueuelenghts differ at all?
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Tue Aug 28, 2007 12:16 pm

mtu_eth1="1492" works

I have no idea why txqueuelengths are different - maybe set by the driver?
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
VPN-User
n00b
n00b
Posts: 46
Joined: Thu Feb 03, 2005 12:52 am

  • Quote

Post by VPN-User » Tue Aug 28, 2007 12:22 pm

UberLord wrote:mtu_eth1="1492" works
I know. Perhaps you understand better what I mean when I ask why txqueuelen_eth1="1000" doesn' t :)
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Tue Aug 28, 2007 12:32 pm

Nobody wanted that before :)
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
VPN-User
n00b
n00b
Posts: 46
Joined: Thu Feb 03, 2005 12:52 am

  • Quote

Post by VPN-User » Tue Aug 28, 2007 2:15 pm

UberLord wrote:Nobody wanted that before :)
Oh I see. That sounds like there's a chance to have that feature in future :wink:

You' re the baselayout-dev, I assume :twisted:
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Tue Aug 28, 2007 4:03 pm

I am. If you want that feature, then file a bug at bugs.gentoo.org please :)
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
VPN-User
n00b
n00b
Posts: 46
Joined: Thu Feb 03, 2005 12:52 am

  • Quote

Post by VPN-User » Tue Aug 28, 2007 4:16 pm

Done: http://bugs.gentoo.org/show_bug.cgi?id=190538
Top
Post Reply

13 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic