Tag: samba

When you notice that your samba throughput is not what it should be, it might be related to the mount options in your Linux client ( mount command ).

When mounting my Samba share with the following command ( on a gigabit link ):

mount -t smbfs -o username=verwilst // /mnt/smb/

I got these results:

time cp /tmp/blob-1.5G /mnt/smb/blob-1.5G-smbfs

real    4m46.677s
user    0m1.512s
sys    0m27.862s

When the share is mounting with this command:

mount -t cifs -o username=verwilst // /mnt/smb/

The copy command gives us this:

time cp /tmp/blob-1.5G /mnt/smb/blob-1.5G-cifs

real    0m18.050s
user    0m0.028s
sys    0m5.828s

Quite a difference you get by replacing 1 word eh 😉

When you are noticing very low throughput on your beloved samba server, make sure the “socket options” entry is set to:

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

Usually this gives you a major speed increase.