Help!

[Samba] linux 2 linux transfer very slow

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Samba RSS
Next:  RFC: Updating the LKML bug reporting/updating fra..  
Author Message
Jean-Yves F. Barbier
External


Since: Oct 26, 2009
Posts: 1



PostPosted: Sun Oct 25, 2009 8:10 pm    Post subject: [Samba] linux 2 linux transfer very slow
Archived from groups: linux>samba (more info?)

SVR
Debian sid V. 3.4.2-1
CLI
Debian lenny
=====================

Hi list,

Sometimes ago I noticed a samba slowing down but as I don't use it
very much it was not a PB (NO conf changes.)

Today I made this test on CLI:
mount -t cifs //svr/myshare /mnt/ -o username=myuser,password=mypw,ro
then:
cp /mnt/films/20090911_0025_footage.avi . (this one's 2GB)

The speed (measured w/ iptraf) is terribly slow (~750KB/s), so I made
another test: ftp using filezilla: ~7500KB/s (!)

There's nothing special in my conf file, and I've got a line as doc say:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192

I really don't understand why there's so much difference between samba & ftp
mostly because formerly (well, may be a year ago) there was only a very small
gap between these speeds.

JY
--
X-rated movies are all alike ... the only thing they leave to the
imagination is the plot.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Jeff Layton
External


Since: Oct 26, 2009
Posts: 1



PostPosted: Mon Oct 26, 2009 8:10 am    Post subject: Re: [Samba] linux 2 linux transfer very slow [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 26 Oct 2009 00:24:48 +0100
"Jean-Yves F. Barbier" <12ukwn.RemoveThis@gmail.com> wrote:

> SVR
> Debian sid V. 3.4.2-1
> CLI
> Debian lenny
> =====================
>
> Hi list,
>
> Sometimes ago I noticed a samba slowing down but as I don't use it
> very much it was not a PB (NO conf changes.)
>
> Today I made this test on CLI:
> mount -t cifs //svr/myshare /mnt/ -o username=myuser,password=mypw,ro
> then:
> cp /mnt/films/20090911_0025_footage.avi . (this one's 2GB)
>
> The speed (measured w/ iptraf) is terribly slow (~750KB/s), so I made
> another test: ftp using filezilla: ~7500KB/s (!)
>
> There's nothing special in my conf file, and I've got a line as doc say:
> socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>
> I really don't understand why there's so much difference between samba & ftp
> mostly because formerly (well, may be a year ago) there was only a very small
> gap between these speeds.

This probably has little to do with samba and more to do with the fact
that writes with Linux CIFS are essentially synchronous within the
context of a single thread.

That said, your SO_RCVBUF size seems very small. You probably at least
need to make it large enough to hold a few writes before closing the
window. The folks who work on the samba server might be able to offer
better guidance as to a size.

--
Jeff Layton <jlayton.RemoveThis@samba.org>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Samba All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum