Apple macOS and CIFS Performance Troubleshooting Tips
Apple macOS and CIFS, lessons learned and tips for managing performance
This article applies to: Shared File Services
MacOS systems can have a unique set of issues when accessing CIFS. This article is intended to list issues and potential work-arounds experienced. Apple apparently redesigned their CIFS-stack in their OS with release 10.8. Internet speculation is that 10.7 was the last release using SAMBA. Apple issues with CIFS access are hard to resolve due to issues between Apple, Microsoft, and storage vendors.
MacOS Finder, CIFS Versus SMB
MacOS users who map to Windows shares via
cifs://files.cornell.edu/OU/SHARE will experience failures. This happens because the cifs prefix forces a SMB1 connection from MacOS, which is no longer supported.
Slow Performance When Accessing CIFS Volumes via Finder, Especially Deep Within a Folder Structure
If Finder is slow verify performance via the command line at the same time as follows:
- Start a macOS Terminal window.
cd \Volumesfollowed by
cddown the same file structure which you are trying to access via the Finder.
- Typically, the speed is fine via the command line, indicating that macOS and CIFS are performing properly, despite Finder being unacceptably slow.
- Cause: .DS_store files. Macs create and store a hidden file in each sub-directory they access, and each user who accesses the directory via a mac updates these files. The deeper down the folder structure you browse, the worse the performance becomes.
- Use Command Line vs. the Finder.
- Prevent the creation of .DS_store files on networked drives on each mac.
- Summary: While the cause is understood there is not a clean fix provided by Apple. While preventing the creation of .DS_store files resolves the Finder performance issue, there may be unforeseen consequences, and this fix may not be permanent thru OS patches/upgrades.
Network Connectivity (speed)
Macs with slow network connections (10 mb/s vs. 100 mb/s vs. 1 gb/s) present a slower access-experience than a Windows PC with the same network connection.
- Possible solutions: Upgrade the connectivity to 100 mb/s minimum, if possible.
- Summary: A slow network connection may be exacerbated by the Finder issue above. By increasing the speed of the network connection the impact is reduced, however further action may still be necessary.
Adobe Illustrator on macOS Using Networked Storage
- A group on-campus had intermittent success and failure when saving Adobe Illustrator files to a CIFS volume, similar to this forum thread.
- Possible Solution: The group in question had a 3-directory deep structure for user home directories.
- Level-1: root of the CIFS share.
- Level-2: Redirected-Folders, parent directory for NetID based sub-directories.
- Level-3: NetID based sub-directories for user's data storage.
- Summary: By setting ACL’s and inheritance properly the Adobe Illustrator problem was resolved:
- Level-1: Permissions: Auth Users, or Special Group needs full access but limited to this folder only
- Level-2: Permissions: Auth Users or Special Group - full permissions
- Level-3: User Directories: