[Samba] Tunning samba for better read performance

Jeremy Allison jra at samba.org
Wed Nov 19 09:39:51 MST 2014


On Wed, Nov 19, 2014 at 03:47:35PM +0530, Jagan Teki wrote:
> On 19 November 2014 15:07, Daniel Carrasco Marín <d.carrasco at ttu.es> wrote:
> > Oh, sorry, i thought that you only sent the "share" part :-[ .
> >
> > My smb.conf have this:
> >
> > ### Optimizaciones
> > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
> > strict sync = no
> > sync always = no
> >
> > #Logs
> > log level = 1
> > syslog = 0
> > log file = /var/log/samba/%m
> > max log size = 50
> >
> > Maybe it help, it have some optimizations and avoid syslog. I'm using a lot
> > of W7 PCs connected without problem with that options in a Samba 3.6.6.
> >
> 
> These setting will decrease the write speed from 103 to 78 MBps but no
> change in read.

Indeed - modern Linux TCP implementations only
go slower when you add the voodoo "socket options="
line.

Wish we could remove that parameter :-).


More information about the samba mailing list