Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.43 KB

samba.md

File metadata and controls

69 lines (51 loc) · 1.43 KB

Configuration

WIP; samba is slow with the default config

# Test smb.conf
testparm

rlimit_max will likely need to be increased.

vi /etc/security/limits.conf

# add the following line
* - nofile 16384

# reboot and rerun testparm

Disable Printers

# Add to /etc/samba/smb.conf

   load printers = no
   printing = bsd
   printcap name = /dev/null
   show add printer wizard = no
   disable spoolss = yes

Performance Tuning

# Add to /etc/samba/smb.conf

# Performance tweaks
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
   min receivefile size = 16384
   use sendfile = true
   aio read size = 16384
   aio write size = 16384
   max xmit = 65536
   read raw = yes
   write raw = yes
   strict allocate = yes
   strict locking = auto
;   max connections = 65535
;   max open files = 65535

Test

Test speed with rsync or pv: http://askubuntu.com/questions/17275/progress-and-speed-with-cp

# Example for samba "backup" folder mounted on OSX
rsync -av --progress [SOURCE_FILE] /Volumes/backup