AFP/SMB Directory Listings very slow in Finder

Hello comunity!


Since the upgrade to OS X Mavericks we are experiencing server problems, browsing AFP/SMB shares on remote servers (VPN). The Directory Listing is very slow an can take up to 30 minutes for large listings.


Here's the setup


  • 2 networks are connected thanks to a VPN connection.
  • All clients, in all connected networks can communicate to a common fileserver (MacPro with OS X 10.6 SnowLeopard Server) in Network A
  • Firewall is not an issue between those networks
  • The fileserver also has other network services set up (DNS, Mailserver, SMB, AFP, Firewall, ...)
  • The clients authenticate via OpenDirectory and Kerberos to the fileserver


So the problems occur if i want to connect a client on network B to the server on network A. Connection, authentication, ... all good. Even the performance over the VPN, to tranfer files is OK. But browsing subfolders is catastrophic. I used AFP and SMB alike, results are the same.


I also made tests on older clients, to see if the fileserver is the problem. 10.6 and 10.8 clients can browse normally, speed is OK. Even Windows Clients can browse normally all the subfolders of the fileserver.


I analyzed different approaches made here, but none of them worked:

  • Connect to share with explicit port
  • Connect to share with FQDN
  • Connect to share with port 445 (SMB)
  • Setup an nsmb.conf with notify_off=yes
  • ...


I also did analyze different logs and there's something i found, but can not say if it's connected. I did see many log entries like this:

...

29.10.13 12:21:51,960 icbaccountsd[775]: -[ICBLocalDictionary writeLocalMapping:]: Status: Writing out local mapping to disk

29.10.13 12:21:51,960 icbaccountsd[775]: -[ICBLocalDictionary writeLocalMapping:]: Status: Ending writing out local mapping to disk

29.10.13 12:21:51,960 icbaccountsd[775]: -[ICBRemoteDictionary writeDevices]: Status: Writing out of devices

29.10.13 12:21:51,960 icbaccountsd[775]: -[ICBRemoteDictionary writeDevices]: Status: Ending writing out of device

...


I also saw tha a process "icbaccountsd" was often coming up an using all of my CPU, when i start browsing the share. Thus i could not find any documentation on it.


So my question: What can I do to accelerate the browsing of my AFP/SMB shares for all my Mavericks clients? What can I do to speed up the Directory Listing? And yes: i know about solutions like PathFinder, TotalFinder, .... but i'm more interested in a native solution to this problem.


Thx!!

OS X Mavericks (10.9), 10.6.8 Server

Posted on Oct 29, 2013 4:30 AM

Reply
183 replies

Dec 4, 2015 4:55 PM in response to knob1

knob1 - I've been suffering for years, like everyone else with SMB windows / NAS shares. I have several thousand files per share, and each resource would take anywhere from 6min to over 20min sometimes. I unchecked the "Show Icon Preview"...relaunched Finder, and the resources open in seconds. This was a remarkable find, thanks for your input.

Jan 27, 2016 12:37 PM in response to Alex Usov

Alex Usov wrote:


Thanks! Resolved. Apple please fix 🙂

Apple is not here. This is a User-to-User forum


I would encourage you to file a bug or feature enhancement with Apple at either:


BugReporter

<http://bugreporter.apple.com>


Free ADC (Apple Developer Connection) account needed for BugReporter.

Anyone can get a free account at:

https://developer.apple.com/register/index.action


And/Or


The more people that report a problem, the more likely it will receive a higher priority. Plus each report will have a different perspective that can help the developer identify the root cause.

Jan 29, 2016 5:18 PM in response to Billish

For anyone that is still searching for an alternative to Finder because of SMB slowness, unfortunately development on mucommander has stopped and the last version requires Java 6 runtime, which is a major security hole. There is a mucommander clone, trolcommander, that works on El Cap and is very fast. I'm not the developer, just a grateful user. It's available at github; the developer's website is TrolSoft.ru.

Apr 1, 2016 7:03 PM in response to knob1

Well I thought this had helped, but it seems not.


The first time I unchecked the previews option from view options, my large network SMB share folder opened in a snap and I was glad.


But subsequently, two things happen:

1. Finder does not keep the view setting persistent on the drive when it is unmounted and mounted again.

2. When I reset the previews option to off again, and attempt to reload the folder, it is again wretchedly slow to populate. That is to say after one positive result, I cannot duplicate the favourable outcome.


So back to the drawing board go I.

Apr 1, 2016 7:35 PM in response to bean_drew

Somehow I have been unable to edit my above post. I was editing in a proper edit window, but when I clicked to submit a red error bar popped up bottom of screen suggesting I might have been signed out, although I wasn't. Now there is no longer an edit option. Ok, here are my edits:


Well I thought this [edit: this being the disabling of 'show icon preview' in folder view options] had helped, but it seems not.


[edit: I also tried the Automator workflow to set the option across all folders on the drive - although I eventually quit that process after it started looking like it was going to take a long time]


[edit: And I've tried the connection protocol and system default modification methods of utilizing SMB1 to no improvement. Neither has any good seemed to come from excluding the drive from Spotlight indexing or trying SMBUp or Finder alternatives. For whatever reason, Finder just takes an awful long time to populate a directory listing in crowded folders on my SMB network share, while my Windows partitions and iOs (3rd party app) media players cruise through them with no problem. I'm not sure what help it is to point out that once the directory has been brought up once, it generally seems to remain responsive until the next time I have to mount the drive. I've even scratched my head to wonder whether slow (relative to recent standards) transfer speeds of using USB2.0 to connect the device to a wireless-N router could have anything to do with it, but that's preposterous!]


[edit.edit: and so for the sake of argument, can I edit this post? it appears so]

Apr 8, 2016 4:45 AM in response to TenjuZenjin

Disabling the creation of .DS_Store files really sped up browsing my samba shares. This can be done at a Samba server level, or Mac Client level.


Add or edit this line in the Samba config file (/etc/samba/smb.conf):

veto files = /._*/.DS_Store/


Client level, input this in terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores TRUE

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AFP/SMB Directory Listings very slow in Finder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.