LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [Debian Lenny::Samba/CIFS] Network File Transfers Slow (https://www.linuxquestions.org/questions/linux-server-73/%5Bdebian-lenny-samba-cifs%5D-network-file-transfers-slow-627666/)

t3hl33td4rg0n 03-12-2008 11:11 PM

[Debian Lenny::Samba/CIFS] Network File Transfers Slow
 
Greets,

I am running Debian Lenny and have been experiencing this issue transferring files from my Linux box (ngz) to other computers (core,mex,jr) on the network. There are 4 in total. I should also mention its through cifs mounts.

Whenever I transfer files from any other computer including ngz, its fine, hovering around 40-60MB/s. When I try to transfer from ngz to any other computer, its as if its treated as a 100mb/s as opposed to a 1Gb/s connection only transferring around 9-11MB/s. Upon boot I notice that the link is up at full duplex 1000Mb/s so I'm not sure whats going on there.

Also, all the computers are in fact connected at 1Gb/s full duplex.

Is there something I need to change in smb.conf to get faster transfer speeds?
____________________________________________________________________

UPDATE
I should mention that using FTP gives me about 45-60MB/s when uploading. I also tested transferring a file to the linux box and its about the same as the FTP 45-60MB/s.

I did some more research today and managed to get it up to about 25MB/s~ by changing the following options to:

Code:

obey pam restrictions = no
....
socket options = TCP_NODELAY SO_SNDBUF=32768 SO_RCVBUF=32768 IPTOS_LOWDELAY
use sendfile = no
oplocks = no
level2 oplocks = no
read raw = no
write raw = no
large readwrite = no

This has yielded the best results, but I think I should still be getting another 150%; I highly doubt cifs introduces that much overhead.

So far heres what I have...
ngz = server
core/mex/jr = clients

ngz --> core/mex/jr = ~25MB/s
ngz <-- ngz/core/mex/jr = ~55MB/s
core/mex/jr <--> core/mex/jr = ~55MB/s
____________________________________________________________________

UPDATE

I'm really at a loss here, I've googled this problem like crazy and still cant find any solid solutions. I've tried all the conf tweaks I could find and I'm far from getting Gb speeds, not even a third of Gb!

Heres a screenshot if a testfile I transfered.
http://one.xthost.info/ngz02/smb_xfer_01.png

Heres my ifconfig output.
Code:

ngz:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:17:31:07:99:51 
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::217:31ff:fe07:9951/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4474669 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4516807 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:711492479 (678.5 MiB)  TX bytes:3841620800 (3.5 GiB)
          Interrupt:10

EDIT: I'm gonna disable IPv6 and see if it helps at all, I doubt it but I'll try anything at this point.
____________________________________________________________________

Any insight fellas/(ladies)? Did I miss anything?


All times are GMT -5. The time now is 11:19 PM.