View previous topic :: View next topic |
Author |
Message |
marquischan Tux's lil' helper


Joined: 19 Mar 2005 Posts: 108
|
Posted: Sun Jul 16, 2006 11:22 pm Post subject: |
|
|
I have this problem before
After checking, the LAN card got problems
Another time i have problem in slow connection is I have set the log level to 100.
The machine is too slow to log down EVERY traffic. |
|
Back to top |
|
 |
motiv n00b

Joined: 27 Sep 2006 Posts: 1 Location: Virginia
|
Posted: Wed Sep 27, 2006 2:43 am Post subject: |
|
|
To those who are getting reasonable speeds from gigabit (10-13MB/s), I've found that adding the directio option to the mount options for cifs added about 9-10MB/s to the transfer rate. I get peak transfers of 20-22MB/s now.
Code: | mount -t cifs -o directio,rsize=16384,wsize=16384 //Media/movies /mnt/movies |
I also have my samba server configured for read raw / write raw
Code: |
[global]
workgroup = XXX
server string = MediaXXX Server
smb passwd file = /etc/samba/private/smbpasswd
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_KEEPALIVE
read raw = yes
write raw = yes
|
I can't say I've figured it out completely. For some reason, I get better performance using Gnome to copy than using the cp command. |
|
Back to top |
|
 |
someone19 n00b

Joined: 26 Sep 2006 Posts: 51
|
Posted: Wed Sep 27, 2006 10:42 am Post subject: |
|
|
I just solved the same problem myself - I made samba my WINS server and pointed my XP boxes to it as such.
Now network browsing has gone from night to day and transfers take 75-90% of my 100mbit network (estamates using windows taskmgr network graph) |
|
Back to top |
|
 |
Ateo Advocate


Joined: 02 Jun 2003 Posts: 2021 Location: Republic of California
|
Posted: Mon Oct 02, 2006 8:25 pm Post subject: |
|
|
Digging up an old thread....
My sluggish speeds between my laptop (gentoo) and my samba server (also gentoo) were fixed by swapping from smbfs to cifs... There has never been an issue between a windows client to my samba server. |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1205 Location: Motown
|
Posted: Fri Jun 08, 2007 4:10 pm Post subject: |
|
|
Gegolath wrote: | And thats my Samba config, but i think this mysterium is not an config failure
[code]
[global]
hosts allow = 127.0.0.1 10.12.6.0/24 10.8.0.0/24
hosts deny = 0.0.0.0/0
#use sendfile = no
#security = share
workgroup = OLYMP.NET
...
|
OK, old thread but in case it helps spmeone...
That's not a valid workgroup name. NetBIOS workgroup and domain names are not hierarchical and contain no dots.
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
koskh n00b

Joined: 14 Jul 2007 Posts: 4
|
Posted: Sat Jul 14, 2007 3:57 am Post subject: |
|
|
use in [global]
large readwrite = no
It had helped for my home workstations (Linux (samba 3)+ WindowsXP). |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1205 Location: Motown
|
Posted: Sat Jul 14, 2007 4:11 am Post subject: |
|
|
darkphader wrote: | That's not a valid workgroup name. NetBIOS workgroup and domain names are not hierarchical and contain no dots. |
Correcting myself here. Although it is true that NetBIOS names are not hierarchical but apparently a dot is a valid character.
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
ervin.peters Tux's lil' helper


Joined: 20 Aug 2003 Posts: 110 Location: Apolda, Germany
|
Posted: Sat Jul 14, 2007 12:58 pm Post subject: |
|
|
Gegolath wrote: | jepp, same Problem here.
Network Cards are:
Realtek 8169 (Server)
Marvel Yukon/Syskonnect (Client)
|
I got similar problems:
https://forums.gentoo.org/viewtopic-t-570392.html
I found out that poor smb performance is related to a broken udp-perfomance of the 8169 NIC in outgoing udp.
But, only in Gb Mode of the 8169 NIC, with 100Mbps it is ok.
ervin |
|
Back to top |
|
 |
kik0r n00b

Joined: 21 Jun 2004 Posts: 16
|
Posted: Wed Jul 18, 2007 4:44 am Post subject: |
|
|
Same problem, I solved changing NIC.
My setup is a P5B with integrated gigabit (lspci said 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Unknown device 8168 (rev 01)
The performance was perfect (65Mb/s on nfs with sata2 disk to my media center, fast ssh...) except for samba (I need to share to windows computer).
I was able to tweak the settings to have good performance it was something like 500kb/s. I noticed that running a find loop or a second copy was
boosting the transfert to 4mb/s, pretty weird.
I add a spare gigabit controller, netgear basic gigabit, lspci said 07:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
It's almost the same except it works great with samba !
The strange thing is it's the same kernel module for both gigabit adapter.
Also, I think I read somewhere Realtek as a new driver version 8.x and that it has been merged in kernel 2.6.22, I haven't tried, but it can also be a solution.
Maybe it help someone on this thread  _________________ Screenshots : http://kik0r.free.fr/shots/
Nautilus multi root patch : http://kik0r.free.fr/nautilus_tree_patch/ |
|
Back to top |
|
 |
renaud91 n00b

Joined: 16 Aug 2007 Posts: 2
|
Posted: Thu Aug 16, 2007 10:56 am Post subject: Changing the card is the solution |
|
|
Hello,
I am on a Gentoo 2007 up to date system.
I also had the same problem, and after 5 days playing with 2.4, 2.6 Kernel, Samba's versions, Samba's options, file systems, I finally changed my network card and asked to Samba to use this interface instead the realtek one (that I did not deactivate).
My problem was :
- copying file from windows to samba = very fast, normal Giga byte speed
- copying file from samba to windows = 3min for a 4Mg file ?????, unusable
- using FTP = no pblm at all, normal speed both sides
I also played with ethtool, changing options, but passing in 100Mbps changed nothing for me, and even if it had, I am on a Gb lan, I want Gb perf.
Note that I also tried the last Realtek driver version 8.0.x.x for 2.6 kernel, but it changed nothing at all.
My network card was an internal realtek 8111, that came with my Asus mother board. Now, it is a simple giga byte from linksys and it works perfecly (the wake on lan too, by the way ).
best regards,
Renaud.
Edit: November 2007, since weather was bad, I decided to re-install all my Gentoo server. Every thing went 'almost' fine, but after a few days I was able to re-install my samba server. Very funny thing happen then, since I was slow in the other way (server to client was slow), I checked if the samba used the realtek or not. No, it was using the 'normal an efficient' dlink one. So, what, I tried to play with all samba parametesr again, nothing ....
And finnaly, I found my problem, it was the IO Scheduller of my 2.6 Kernel, I set to CFQ and after a recompile, all went fine. |
|
Back to top |
|
 |
jeancf n00b

Joined: 05 Jul 2004 Posts: 5 Location: Brussels, Belgium
|
Posted: Mon May 12, 2008 3:51 pm Post subject: |
|
|
I was experiencing very similar symptoms on my home server. I had excellent TX performance (i.e. serving files) at ~20MB/s and extremely poor RX performance (i.e. saving files on server) at ~ 0.5MB/s with both Linux and Windows clients.
My server is equipped with a Realtek 8169 Gigabit Ethernet NIC
gentoo-sources-2.6.24-r7
samba-3.0.28
The issue is related to the NIC. To resolve you have 2 options:
- download and compile the latest driver from the Realtek web site (untested).
- configure your kernel with Device Drivers->Network device support->Ethernet (1000 Mbit)->Realtek 8169 gigabit ethernet support as a module or in the kernel
- select Use Rx Polling (NAPI) (EXPERIMENTAL)
This option was unchecked in my original configuration. Enabling it and recompiling the kernel gives me >20MB/s throughput in both TX and RX with Samba.
From the kernel help text:
Quote: | NAPI is a new driver API designed to reduce CPU and interrupt load when the driver is receiving lots of packets from the card (...) |
I hope this can help a number of you to get out of the ditch.
Enjoy!
/~jc _________________ JC |
|
Back to top |
|
 |
javeree Guru

Joined: 29 Jan 2006 Posts: 453
|
Posted: Sun Sep 14, 2008 3:08 pm Post subject: |
|
|
Same problem, but different NIC: RTL-8139 |
|
Back to top |
|
 |
|