View previous topic :: View next topic |
Author |
Message |
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Thu Aug 30, 2007 5:11 pm Post subject: XP -> SMB-share=fast, SMB-share -> XP=slow |
|
|
Hi all!
I'm having some throughput problems with a new Samba install on a amd64 system. Traffic going from XP clients to the SMB-shares goes at full speed, whereas traffic from the SMB-shares to the XP clients averages at about 5% capacity.
Where should I start looking/debugging...? _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
sschlueter Guru
Joined: 26 Jul 2002 Posts: 578 Location: Dortmund, Germany
|
Posted: Thu Aug 30, 2007 8:31 pm Post subject: |
|
|
Some basic stuff to get you started...
* Disable XP firewall and any other software firewall that may be running. Test speed again.
* Make sure that the ethernet link is full-duplex at both ends. Check for transmit/receive errors and collisions.
* Test upload/download speed with vsftpd server and FileZilla client. |
|
Back to top |
|
|
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Fri Aug 31, 2007 4:27 am Post subject: |
|
|
sschlueter wrote: | Some basic stuff to get you started...
* Disable XP firewall and any other software firewall that may be running. Test speed again.
* Make sure that the ethernet link is full-duplex at both ends. Check for transmit/receive errors and collisions.
* Test upload/download speed with vsftpd server and FileZilla client. |
#1 Since this SMB-server is replacing an old one, I'll rule out #1. It worked fine with the older, slower server.
#2 & #3: Files copied with scp to/from this server do go at 100% speed. This would rule out hardware network problems, right?
The only thing I can think of is settings in Samba. However, since I am using stock config files, I would seriously doubt this... _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Fri Aug 31, 2007 7:55 pm Post subject: |
|
|
sschlueter wrote: | Some basic stuff to get you started...
* Test upload/download speed with vsftpd server and FileZilla client. |
I have tried this as well now. Both directions I get close to 100% efficiency. _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Mon Sep 03, 2007 3:49 pm Post subject: |
|
|
To make it even weirder: The SMB -> XP transfer DOES speed up as soon as I (at the same time) transfer a file in the XP -> SMB direction! Then both transfers go at speeds close to 100 Mbps... _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
agenthex n00b
Joined: 19 Sep 2007 Posts: 1 Location: Portland, OR
|
Posted: Wed Sep 19, 2007 5:01 am Post subject: |
|
|
I'm having similar problems but in opposite direction. My transfer from XP -> SMB is 200KB/s and 340Mbps when from SMB -> XP. The same thing happens to rsync. FTP is fast both ways and WinSCP isn't super fast, but it beats SMB on the upload. |
|
Back to top |
|
|
hornett Tux's lil' helper
Joined: 12 Aug 2004 Posts: 84
|
Posted: Wed Sep 19, 2007 6:44 am Post subject: |
|
|
Try boshing "socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192" into your global section in smb.conf if you don't have it already. |
|
Back to top |
|
|
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Thu Sep 20, 2007 12:41 pm Post subject: |
|
|
hornett wrote: | Try boshing "socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192" into your global section in smb.conf if you don't have it already. |
agenthex or me? Or both of us? _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
hornett Tux's lil' helper
Joined: 12 Aug 2004 Posts: 84
|
Posted: Thu Sep 20, 2007 3:21 pm Post subject: |
|
|
I meant you, meulie But there shouldn't be any harm in it for anybody to try |
|
Back to top |
|
|
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Thu Sep 20, 2007 6:49 pm Post subject: |
|
|
I haven't had a chance yet to test if myself, but I heard from one of the users that it has made an impressive improvement!
I will check this weekend and confirm/deny, but so far: thanks! _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
gaga Apprentice
Joined: 27 Apr 2005 Posts: 288
|
Posted: Sat Sep 29, 2007 9:19 am Post subject: |
|
|
I have the same pb but without any Windows system
(server Debian) => (my computer Gentoo) ~ 200 Ko/s ( pfff )
(my computer Gentoo) => (server Debian) ~ 50 Mo/s
EDIT : there is something strange : when I make two thing at the same time, the speed is normal (~ 30 Mo/s) !!
why a so slow speed in a unique download ???????
I have a gigabit connection, Samba version 3.0.24 on both machine
If someone has a idea.....
thank you !
Last edited by gaga on Sat Sep 29, 2007 6:22 pm; edited 1 time in total |
|
Back to top |
|
|
Wire64 n00b
Joined: 30 Aug 2007 Posts: 10
|
Posted: Sat Sep 29, 2007 2:15 pm Post subject: |
|
|
I have the same problem.
The funny thing is when i download/upload something on my gentoo box my transferspeed goes to +/-max
it seems that my transfers speed up when i put my network card under stress.
Is there some sort of idle setting for the network card?
I believe its driver related and not samba related though samba is the only application suffering from it.
Settings for eth0 (RTL8169s/8110s):
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes |
|
Back to top |
|
|
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Sat Sep 29, 2007 3:10 pm Post subject: |
|
|
meulie wrote: | I haven't had a chance yet to test if myself, but I heard from one of the users that it has made an impressive improvement!
I will check this weekend and confirm/deny, but so far: thanks! |
Oops, forgot to report back!
Yes, your fix did it! In combination with the r8168 driver (from the realtek site) it now gives me 90%+ efficiency on both upload and download
Thanks! _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
gaga Apprentice
Joined: 27 Apr 2005 Posts: 288
|
Posted: Sat Sep 29, 2007 6:19 pm Post subject: |
|
|
excuse me I didn't understand the problem
you think it's the driver of my network card which make this strange speed ?
I have a r8169 but why can I upload and download at 50Mo/s with scp ??
I think it's more a samba's problem....... wrong ?
do you solve the problem ?
(excuse my bad explaination and vocabulary, I'm a French.... I learn )
thks |
|
Back to top |
|
|
meulie l33t
Joined: 17 Jun 2003 Posts: 845 Location: a Dutchman living in Norway
|
Posted: Sat Sep 29, 2007 9:19 pm Post subject: |
|
|
If you have the same ethernet chip as I do, you may want to try the alternative driver. It fixed problems for me on 100Mbit level (don't have gigabit here, so I can't test that...) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
|
|