Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba Lan + Wireless Bridge = slow?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Shiryou
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 131
Location: United Kingdom

PostPosted: Tue Mar 15, 2005 1:16 pm    Post subject: Samba Lan + Wireless Bridge = slow? Reply with quote

Hi. It seems that Samba is just a slow thing at the best of times, but I get the feeling something odd is going on when it comes to my network setup. Im getting a slow speed over the 100 mbit connection, but that aside, heavy copying on the lan shouldn't affect the wireless. Heres out router, server setup:

---------
Server:

eth0 -> Internet cable (3Com Onboard)
eth1 -> bridged Lan cable (NForce forcedeth)
eth2 -> bridged wlan cable (Some PCI Realtek card)
br100 -> Bridges eth1 and eth2
---------

Our server is setup exactly like the home router guide on the gentoo page with the exception of the bridge. We use wondershaper as well. Now a heavy copy on eth1 will slow down eth2 quite a bit. This sounds like a side effect of the bridge but then, samba is always a bit odd. Any ideas? I may not have posted enough stuff i must admit. Heres the ifconfig output:

Code:
br100     Link encap:Ethernet  HWaddr ??:A9 
          inet addr:10.10.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8899142 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6413571 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3424573377 (3265.9 Mb)  TX bytes:1474635347 (1406.3 Mb)

eth0      Link encap:Ethernet  HWaddr ??:CF 
          inet addr:10.0.0.10  Bcast:10.0.0.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1821807 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1967358 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1246610719 (1188.8 Mb)  TX bytes:1137350702 (1084.6 Mb)
          Interrupt:5 Base address:0xb000

eth1      Link encap:Ethernet  HWaddr 00:0C:6E:7D:84:9E 
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8677264 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6000436 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3504602246 (3342.2 Mb)  TX bytes:983839411 (938.2 Mb)
          Interrupt:11 Base address:0xa000

eth2      Link encap:Ethernet  HWaddr ??:A9 
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:221938 errors:237 dropped:0 overruns:0 frame:0
          TX packets:415556 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:45536424 (43.4 Mb)  TX bytes:491110476 (468.3 Mb)
          Interrupt:5 Base address:0x2000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:28502 (27.8 Kb)  TX bytes:28502 (27.8 Kb)
Back to top
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Thu Mar 17, 2005 4:27 am    Post subject: Reply with quote

Because of bridging setup (I have the exact same setup as you), every packet that you got between a LAN-based PC and your SAMBA server is threaded twice between user-kernel land.

I'm betting you got a 1.2 GHz machine or less, because then that setup will really choke at 100Mbps link.

Wondershaper... may not play nice with all the wonderful QoS things that have been introduced to Linux 2.6.

I recommend you investigate Class-based queuing instead in the iptables.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum