[Samba] Small file performance

Volker Lendecke vl at samba.org
Mon Jan 9 07:00:57 UTC 2017


On Mon, Jan 09, 2017 at 09:39:31AM +1100, John Gardeniers via samba wrote:
> We are experiencing painfully slow performance when transferring many small
> files via Samba. We are currently running Samba 4.5.1, although based on my
> searches the version doesn't seem to make any difference and this is a long
> standing problem.

SMB performance critically depends on the client. What client are you
using?

> Based on my searches I've been playing around with a number of settings. The
> testbed right now has the following options added to the basic smb.conf:
> 
>         socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=32768
> SO_SNDBUF=32768
>         read raw = yes
>         write raw = yes
>         strict locking = no
>         min receivefile size = 16384
>         use sendfile = yes
>         aio read size = 16384
>         aio write size = 16384
>         strict allocate = yes

Just get rid of all these options, in particular the socket options.
Replace them with

aio read size = 1
aio write size = 1

and that's it.

What't your network latency (ping time)? That's a lot more critical
than raw bandwidth.

Volker



More information about the samba mailing list