View previous topic :: View next topic |
Author |
Message |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
sschlueter Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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... ![Shocked 8O](images/smiles/icon_eek.gif) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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... ![Confused :?](images/smiles/icon_confused.gif) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
agenthex n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
hornett Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/178168918741dabe42c421b.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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? ![Cool 8)](images/smiles/icon_cool.gif) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hornett Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/178168918741dabe42c421b.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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! ![Smile :-)](images/smiles/icon_smile.gif) _________________ Greetz,
Evert Meulie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gaga Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Wire64 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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! ![Smile :-)](images/smiles/icon_smile.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
gaga Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
meulie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/18174326125cdc051bf3010.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
|