|45 Drives Knowledge Base
||KB450114 - MacOS Samba Optimization
This article will guide how to configure a samba share to optimize performance and compatibility with MacOS
The following performance tunes have been tested with MacOS Big Sur (11.2.3). Previous/Future versions will benefit as well but trial and error are recommended.
These will always give benefit, they should always be configured.
These may provide some benefit, but at the cost of possible functionality loss. Testing with end user workflow recommended.
Since the release of OS X 10.11.5, Apple's SMB Signing has been enabled by default.
SMB Signing digitally signs at the packet level of the SMB communication. This enables the receiver of the packets to confirm the point of origin and it’s authenticity. This security mechanism helps avoid issues like tampering and “man in the middle” attacks - as long as you're on a secure network. However, this causes poor performance - to disable this option see below.
To verify it worked run:
Use the vfs fruit object to enhance OS X performance. See vfs_fruit man page for reference.
Catia and Fruit in combination with streams_xattr significantly enhances performance/compatibility of samba network shares and OSX. This should always be used whenever the environment contains OSX clients. This is safe to use with mixed environment of windows and OSX clients.
vfs objects = catia fruit streams_xattr fruit:encoding = native fruit:metadata = stream fruit:zero_file_id = yes
Veto the creation of ._ and .DS_Store files on the network fileshare to increase directory performance.
NOTE that certain OSX applications require these files to function correctly.
Test workflow with these disabled to verify.