Project

General

Profile

Bug #1073

samba 4 tuning improvements

Added by cpg almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SMB
Target version:
Start date:
08/08/2013
Due date:
% Done:

0%


Description

samba 4 recommendations from @inquam!
keeping here for the record. i will start using them and see how they are doing.

Just to be clear, these need to be added by hand to /etc/samba/smb.conf and will be lost easily, e.g. on Share and other changes, so check frequently.


Amahi 7 (F19) runs samba 4 as compared to the older versions used before. But it seems even Samba 4 has quite poor performance when reading and writing files to and from a WIndows client. To speed things up the same performance tips I gave for the older versions still seems to work. These should be placed in the [global] section of /etc/samba/smb.conf. Perhaps it should be added to the default config? Or a way in the amahi web gui to specify additional [global] options like you can for individual shares?

  1. Fix for file batch copy issues (see: http://archlinuxarm.org/forum/viewtopic.php?f=18&t=4864)
    oplocks = no
  1. Tuning options
    socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
    write cache size = 2097152
    use sendfile = true
    getwd cache = yes

Samba 4 is still slower than 3, but with these settings I'm able to boost my read and writes to around 550-600MBit/second.

History

#1 Updated by cpg almost 7 years ago

  • Category set to SMB
  • Target version set to amahi-7-0

#2 Updated by cpg almost 7 years ago

  • Description updated (diff)

Also available in: Atom