AFP vs SMB Performance
I've just updated to the latest release of Sierra. I thought I had read somewhere that SMB was preferred over AFP in Sierra and that the performance would be improved. I see no improvement. My results are so drastically different, I thought I would post to see if someone else can tell me why my SMB performance is so abysmal???
I have a Mac Pro (non-cylinder) on a wired gigabit home network. Synology DS412+ NAS running 4 disks in RAID 5. I mounted this my my Mac using the basic "Connect to Server" option in Finder and typing in "afp://server:share" and "smb://server:share" for the tests. Both were mounted and tested separately, meaning I disconnected AFP before mounting and testing SMB. I used rsync with some verbose options to copy one 1.5GB file in order to see the speed and get some transfer stats.
Here are the stats for transferring the file over AFP:
[josh@jeter /joshtmp] --> transfer diskimage.ISO /Volumes/FILES/tmp/
building file list ...
1 file to consider
diskimage.ISO
1.49G 100% 52.18MB/s 0:00:27 (xfer#1, to-check=0/1)
Number of files: 1
Number of files transferred: 1
Total file size: 1.49G bytes
Total transferred file size: 1.49G bytes
Literal data: 1.49G bytes
Matched data: 0 bytes
File list size: 121
File list generation time: 0.002 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 1.49G
Total bytes received: 42
sent 1.49G bytes received 42 bytes 52.20M bytes/sec
total size is 1.49G speedup is 1.00
I think that's a pretty decent speed, but my concern is not the top speed, it's the disparity.
Here's the SMB speed:
[josh@jeter /joshtmp] --> transfer diskimage.ISO /Volumes/FILES/tmp/
building file list ...
1 file to consider
diskimage.ISO
1.49G 100% 18.02MB/s 0:01:18 (xfer#1, to-check=0/1)
Number of files: 1
Number of files transferred: 1
Total file size: 1.49G bytes
Total transferred file size: 1.49G bytes
Literal data: 1.49G bytes
Matched data: 0 bytes
File list size: 121
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 1.49G
Total bytes received: 42
sent 1.49G bytes received 42 bytes 18.71M bytes/sec
total size is 1.49G speedup is 1.00
Also, here is the statshare info to see how it was mounted:
[josh@jeter /joshtmp] --> smbutil statshares -a
================================================================================ ==================
SHARE ATTRIBUTE TYPE VALUE
================================================================================ ==================
FILES
SERVER_NAME rivera
USER_ID 1026
SMB_NEGOTIATE SMBV_NEG_SMB1_ENABLED
SMB_NEGOTIATE SMBV_NEG_SMB2_ENABLED
SMB_NEGOTIATE SMBV_NEG_SMB3_ENABLED
SMB_VERSION SMB_3.0
SMB_SHARE_TYPE DISK
SIGNING_SUPPORTED TRUE
EXTENDED_SECURITY_SUPPORTED TRUE
LARGE_FILE_SUPPORTED TRUE
CLIENT_REQUIRES_SIGNING TRUE
DFS_SUPPORTED TRUE
MULTI_CREDIT_SUPPORTED TRUE
ENCRYPTION_SUPPORTED TRUE
SIGNING_ON TRUE
-------------------------------------------------------------------------------- ------------------
Also, attached is a screenshot of my share settings from the Synology. It shows both the SMB and AFP settings. The pop-out box is the "Advanced Settings" options from the SMB section.
Any ideas at all???? Please and thank you.