SMB slow read/write from Mac workstation vs. Windows

2

0

We have an SMB share running in Hyper-V on Server 2012.

Read/Write to the share from Windows workstations on the network is around 100 MB/s, which seems good.

Read/Write from Mac workstations to the share is half this (50 MB/s) at best. Unfortunately these are the designers working with large files who actually need the network performance.

It's probably not a networking hardware issue, as iperf tests from my Mac to the server show over 117MB/s bandwidth. To clarify, this is an issue specific to using the SMB protocol from the Mac.

pyro_lemur

Posted 2015-06-29T16:24:42.877

Reputation: 31

This a new problem or an existing problem? – Ramhound – 2015-06-29T16:28:22.387

This is an existing problem; send/receive rates between Macs and the SMB share has never been good. – pyro_lemur – 2015-06-29T16:59:18.107

Does the workstations have 10/100 ports or 10/100/1000 ports? If you use the same LAN cable as a working station what happens? The fact it is a 50% decrease indicates an overall problem – Ramhound – 2015-06-29T17:28:33.600

It's probably not a networking hardware issue, as iperf tests from my Mac to the server show over 117MB/s bandwidth. To clarify, this is an issue specific to using the SMB protocol from the Mac. – pyro_lemur – 2015-06-29T17:51:56.480

Make sure all your Macs are running Mavericks (OS X 10.9.x) or later. The built-in SMB client in OS X only supported SMB 1.x until Mavericks, and there were some big speed boosts in SMB 2.x. – Spiff – 2015-06-29T17:57:58.747

The Mac in question is running Yosemite with latest updates. – pyro_lemur – 2015-06-29T18:11:41.957

@PyroLemur - Update the question to reflect that information. – Ramhound – 2015-06-29T18:33:13.877

Answers

1

OK, I figured it out.

Running smbutil statshares -m /Volumes/MyShare/ revealed that the Mac's connection to the SMB share was negotiated using SMB1.

I then looked at ~/Library/Preferences/nsmb.conf and noticed that it contained the following:

[default]
smb_neg=smb1_only

After deleting this and running smbutil again, I can see the share is negotiating using SMB3.02, and the performance seems to have increased to where it should be.

pyro_lemur

Posted 2015-06-29T16:24:42.877

Reputation: 31