LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount.cifs is slow. (https://www.linuxquestions.org/questions/linux-networking-3/mount-cifs-is-slow-687474/)

b4283 12-01-2008 09:52 AM

[SOLVED] mount.cifs is slow.
 
I can successfully mount a remote resource of a windows PC,
but somehow the transfer rate is too slow to even play a rmvb movie.

It can't be the drivers problem cause I can get over 1 MB/s with my ppp0 adapter.

Here's the command I used:
Code:

mount.cifs //12.34.56.78/resource /mountpoint -o user=xxx,pass=yyy,iocharset=utf8
And adding "directio" or "rsize=32768" into options doesn't help at all.

I already found a discussion titled "Slow transfer with mount.cifs", but it didn't provide any effective solutions for me.

ehawk 12-01-2008 11:07 AM

Is your distribution up to date with regard to samba?

http://lists.samba.org/archive/linux...ly/000896.html

ehawk 12-01-2008 11:07 AM

http://www.networkedmediatank.com/pr...d.php?tid=7682

Is your distribution up to date with regard to samba?

http://lists.samba.org/archive/linux...ly/000896.html

http://osdir.com/ml/linux.file-syste.../msg00033.html

http://www.sidux.com/PNphpBB2-viewtopic-t-4113.html

http://ubuntuforums.org/archive/index.php/t-569745.html

http://ubuntuforums.org/showthread.php?t=424063&page=3

From http://www.nslu2-linux.org/wiki/Open...artedWithSamba

Transfer Speeds

I found that I got a MUCH better transfer speed when I had the following settings in /etc/samba/smb.conf
[global]
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535
There is something similar in the example file above, but its easily missed.

http://www.linuxquestions.org/questi...-samba-536370/

http://ge.ubuntuforums.com/showthread.php?t=902300

http://communities.vmware.com/messag...F72650987C2F1E

http://webui.sourcelabs.com/ubuntu/issues/84782

http://fedoraforum.org/forum/showthread.php?t=159688

http://www.webservertalk.com/archive...8-1610417.html

b4283 12-01-2008 12:11 PM

ehawk:
Thank you very much, my problem is fixed !

After using iperf to probe my network speed, I found that it has lock on a rate of 10 MBit/s.
Then I started to suspect if there were the problem of the network interface, and found a parameter in the remote firewall which didn't setup well.

Now my network can run up to 90 Mbit/s.

Though this is a stupid mistake, but still thank you so much.


All times are GMT -5. The time now is 03:48 PM.