CIFS/SMB Slow with 10.11.5 and macOS Sierra

Status
Not open for further replies.

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
Good Morning All,

Just wanted to post this in case some of you are experiencing the same frustrations that we have been going through over here. We operate with video editing workflows. Those workflows consistently utilize the 700-900MB/s speeds that we get over 10GbE with SMB shares. Most of the time, it is a mixed environment of Mac and Windows users so SMB is the way to go. With the finding of the BadLock Bug, 10.11.5 decided to require client side signing. Once updated to 10.11.5, system could not get over 60MB/s with all other things remaining consistent. We check all drivers and other hardware to make sure there was nothin that we could do to mitigate this.

That being said, the Apple community were a bit restless in solving this problem. The current solution out there is to disable client side signing.

Here is the page that describes how to apply the fix but I will include it here also:
  1. Navigate to /etc folder on the Mac
  2. Create 'nsmb.conf'
  3. Add the following lines:
    • [default]
    • signing_required=no
Once that is created and saved, restart the Mac. Speeds should now have gone back to normal.

I have also tested this with macOS Sierra and found this to still be the only fix for performance issues.

It is important to note that this should be done with caution for anything out of a secured LAN network as it makes a SMB exposed to possible attacks if shared over unsecured networks.
 

ovizii

Patron
Joined
Jun 30, 2014
Messages
435
Would you guys please share how you measure the actual transfer speed over a CIFS share? It "feels" kinda slow at the moment when copying via finder to a share but I'd like to actually d an accurate measurement of my transfer speed.
 

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
Happily! So we run mainly 10G networks. When attached to a client over CIFS/SMB, the speeds will not go over 50-60 MB/s. That is done over both AJA and BlackMagic. Not exactly sure on the same speed caps over 1G. But I think its about the same. Seems to be a cap on the CIFS/SMB at around 50-60 MB/s.
 

RucanX

Cadet
Joined
Oct 21, 2016
Messages
1
Hi guys. I'm currently struggling to get a proper working setup with macOS Sierra to recognise an ubuntu samba share.

When connecting from macOS, I'm using Cmd-K, and protocol cifs://ip
So far, the only combination of unix permissions that allowed me to mount my samba share on ubuntu was with chown set to nobody:nogroup and chmod 755. But I am unable to write/delete files/folders. Tried several other permissions, which led macOS to mount, but immediately unmount the share.
Can you guys share the chmod/chown/permission settings that you have your shared directory?

Here is my share conf too:

[nas]
path = /media/nas
browseable = yes
writable = yes
read only = no

Thanks for any help
 

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
If I am able to get the share to connect, then at least that user has the ability to access said share. Access does not constitute read/write privs though. There are a couple of places you need to make sure are being set correctly for non-user designated access as Im guessing by "nobody", that is what you are trying to do. Make sure you are strictly adhering to 10.4.1. Configuring Unauthenticated Access

Also, go into Services and click the wrench next to SMB. Make sure that the guest account is set to "nobody."

Confirm all that. One question I had was if there was a specific reason you are using "cifs://IP" and not "smb://IP" ??? I would try to use smb instead of cifs.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Hi guys. I'm currently struggling to get a proper working setup with macOS Sierra to recognise an ubuntu samba share.

When connecting from macOS, I'm using Cmd-K, and protocol cifs://ip
So far, the only combination of unix permissions that allowed me to mount my samba share on ubuntu was with chown set to nobody:nogroup and chmod 755. But I am unable to write/delete files/folders. Tried several other permissions, which led macOS to mount, but immediately unmount the share.
Can you guys share the chmod/chown/permission settings that you have your shared directory?

Here is my share conf too:

[nas]
path = /media/nas
browseable = yes
writable = yes
read only = no

Thanks for any help

An Ubuntu samba share?

If this is a typical EXT4 setup (with ZFS things can get a bit trickier), then you'll want to probably use the "valid users" and "write list" share parameters. Just do the following:

  • chgrp -R the root of your share so that is owned by some group. For instance "samba_users"
  • add a user for your mac to authenticate as, and make it a member of "samba_users" (for simplicity's sake I'd stick with the same credentials you use to authenticate to your Mac).
  • add the share parameters "valid users = +samba_users" and "write list = +samba_users" so that your share definition is as follows
Code:
[nas]
path = /media/nas
browseable = yes
writable = yes
read only = no
valid users = +samba_users
write list = +samba_users


Of course, there is more than one way to grant read / write privileges, but the above should get you on the right path.
 
Status
Not open for further replies.
Top