Hello my friends!
"Help me Obi Wan Kenobi, you're my only hope". Well, I feel now like Leia, but of course, with much less sex appeal!
I was planning to left NFS and embrace SMB but... It's impossible: The macOS Finder do so many weird things that it's just impossible. The worst is when working with directories with big quantities of files. For example:
3 Tests were doing with a specialy complicated folder consisting of 23,699 small files, with an average file size of 792KB, and a total weigh of 18.77GB.
The real problem here is the Finder, because if the same tests are repeated but using the macOS's terminal instead, the differences are not so big:
Yes my friends, using the Finder 16MB/s, and using the Terminal 50MB/s........
The SAMBA configuration is all default, except:
The SMB test was repeated but this time using vfs_fruit (and the rest of configuration the same as before)... With even worse results:
Are the SMB and the Finder really this awful combination? There is nothing we can do? Maybe I misconfigured something?
##########################################################################################
Things I have tried without success:
· NAS
· Mac
##########################################################################################
About SPECS:
· NAS [FreeNAS-11.2-U2.1 (no autotune) (clean install, clean configuration)]
· Mac [macOS Mojave 10.14.3]
##########################################################################################
About the test CONDITIONS:
"Help me Obi Wan Kenobi, you're my only hope". Well, I feel now like Leia, but of course, with much less sex appeal!
I was planning to left NFS and embrace SMB but... It's impossible: The macOS Finder do so many weird things that it's just impossible. The worst is when working with directories with big quantities of files. For example:
3 Tests were doing with a specialy complicated folder consisting of 23,699 small files, with an average file size of 792KB, and a total weigh of 18.77GB.
1) Copy the folder from the Mac SSD to the share:
SMB: 54MB/s
NFS: 271MB/s
2) Duplicate the folder in the share:
SMB: 16MB/s [!!!!!!!!!]
NFS: 109MB/s
3) Open the folder in the share:
SMB: 01m 26s [!!!!!!!!!]
NFS: 17s
The real problem here is the Finder, because if the same tests are repeated but using the macOS's terminal instead, the differences are not so big:
1) Copy the folder from the Mac SSD to the share:
SMB: 122MB/s
NFS: 214MB/s
2) Duplicate the folder in the share:
SMB: 50MB/s
NFS: 101MB/s
Yes my friends, using the Finder 16MB/s, and using the Terminal 50MB/s........
The SAMBA configuration is all default, except:
Services > SMB
Auxiliary Parameters:
case sensitive = yes
strict sync = no
store dos attributes = no
map archive = no
map hidden = no
map readonly = no
map system = no
The SMB test was repeated but this time using vfs_fruit (and the rest of configuration the same as before)... With even worse results:
1) Copy the folder from the Mac SSD to the share:
SMB with vfs_fruit: 53MB/s
SMB without vfs_fruit: 54MB/s
2) Duplicate the folder in the share:
SMB with vfs_fruit: 12MB/s
SMB without vfs_fruit: 16MB/s
3) Open the folder in the share:
SMB with vfs_fruit: 03m 01s
SMB without vfs_fruit: 01m 26s
Are the SMB and the Finder really this awful combination? There is nothing we can do? Maybe I misconfigured something?
##########################################################################################
Things I have tried without success:
· NAS
aio write size = 0 + aio read size = 0
smb2 leases = no
· Mac
net.inet.tcp.delayed_ack=0 /etc/sysctl.conf -----> Performance is worse consistently, unlike other reports all over the internet
signing_required=no /etc/nsmb.conf ---> Didn't make a difference in my case, at least in my macOS Mojave 10.14.3 it was "no" at default. Forcing it to "yes" makes a huge difference (to bad)
##########################################################################################
About SPECS:
· NAS [FreeNAS-11.2-U2.1 (no autotune) (clean install, clean configuration)]
2x Hynix HMT41GU7AFR8A (16GB RAM ECC)
Intel X550-T1 (directly connected to a Mac mini Aquantia AQC107-AFW client, without using jumbo frames)
2x SSD Samsung 860 EVO 1TB (configured as a striped vdev, to maximize the output for the test)
· Mac [macOS Mojave 10.14.3]
Mac Mini (2008) basic upgraded with "10Gbps Ethernet", "3.2GHz 6‑core i7" and "16GB RAM"
##########################################################################################
About the test CONDITIONS:
· NAS was restarted between each test
· LAN bandwidth is not the problem:
Code:
$ iperf -c 192.168.10.250 ------------------------------------------------------------ Client connecting to 192.168.10.250, TCP port 5001 TCP window size: 129 KByte (default) ------------------------------------------------------------ [ 4] local 192.168.10.100 port 53201 connected with 192.168.10.250 port 5001 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 10.9 GBytes 9.37 Gbits/sec
· Dataset relevant properties:
Code:
recordsize 128K compression off (To eliminate the compression variable from the test) atime off sync disabled (To eliminate the sync variable from the test) casesensitivity insensitive (To use "case sensitive = yes" in SAMBA)
· Dataset creation using GUI:
zfast/test/nfs was created as "Share Type: Unix"
zfast/test/smb was created as "Share Type: Windows"
Last edited: