Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
Question marked as Best reply

Posted on Nov 26, 2015 6:50 AM

!! Possible solution that worked for me - at the moment !!


Hello,


I also got the problem that browsing an afp share gets very slow.

My Share is little over 5TB big with much media data.


I tried all the solutions that I found on this forum but nothing helped as much as what I just found.


After spending many hours today to find a solution I finally turned on wireshark to have a look whats going on on port 548 (AFP over TCP Port)

I saw that whenever I opened a folder many requests were send to the server - my guess was that the finder is requesting the little preview images because inside of each request was a filename of the folder I just opened.

My guess is that whenever you open up a folder, OSX sends multiple requests to the server to get the preview image.

The server tries to answer all the requests but when you navigate to another folder the next requests for this folder are sent - kind of DDOS.


After realising this, I went to the root share, right clicked -> Show Vew Options and turned off Show Icon Preview.

The result was phenomenal - afp was fast and the traffic on port 548 was shut down very drastic.


I would like to hear if this solves the problem for others too or if I'm the only one where this helped

183 replies
Question marked as Best reply

Nov 26, 2015 6:50 AM in response to TenjuZenjin

!! Possible solution that worked for me - at the moment !!


Hello,


I also got the problem that browsing an afp share gets very slow.

My Share is little over 5TB big with much media data.


I tried all the solutions that I found on this forum but nothing helped as much as what I just found.


After spending many hours today to find a solution I finally turned on wireshark to have a look whats going on on port 548 (AFP over TCP Port)

I saw that whenever I opened a folder many requests were send to the server - my guess was that the finder is requesting the little preview images because inside of each request was a filename of the folder I just opened.

My guess is that whenever you open up a folder, OSX sends multiple requests to the server to get the preview image.

The server tries to answer all the requests but when you navigate to another folder the next requests for this folder are sent - kind of DDOS.


After realising this, I went to the root share, right clicked -> Show Vew Options and turned off Show Icon Preview.

The result was phenomenal - afp was fast and the traffic on port 548 was shut down very drastic.


I would like to hear if this solves the problem for others too or if I'm the only one where this helped

Jan 16, 2017 1:23 PM in response to RichardRSB

At my wits end, I tried this, and - bam! Much faster. Certainly not as fast as it used to be, as there is a human-perceptible delay whereas in the past I could not distinguish between folders via SMB on local folders on this very fast server.


But here's the thing - by chance, this fixed two other problems for me. S/MIME decryption was unusably slow in Mai.app, now I have no problem. BusyCal was taking so long to sync with my work's CardDAV server that timeouts were common. Both problems now gone.


I tried another Mac where I had not done this fix, and found that if I simply sign out of my iCloud account then remove all traces of it and reboot, everything is fairly speedy again. So thanks, RichardRSB!! I think you've basically narrowed down the cause of several systemic problems to something related to iCloud syncing.

Oct 28, 2017 11:38 PM in response to TenjuZenjin

I'm having problems like those mentioned here with the Finder crashing/slow when accessing a SMB shared drive from one macOS High Sierra 10.13 machine to another.


AFP works flawlessly and speedily — but trying to switch away from AFP as Apple requests is a nightmare. Their SMB implementation doesn't seem at all stable in the Finder!


Connecting seems fine, but within 30 minutes or so of using files across the network the client machine's Finder starts spinning the beachball then crashing/freezing. Directory listing on the remote disk starts showing empty folders where we know there are files residing. Sometimes it requires the computer be force-rebooted via the power button. I was even able to log in to the frozen client machine via SSH and do a "sudo shutdown -r now" command and it never fully restarted until holding the power button.


We got back up and running though after each reboot and checked the disk with Disk Utility: NO problems found. 10 minutes later Finder crashing again after connecting to the sharepoint via SMB again.


All this happened a dozen times over 4 hours until I gave up and turned the sharing machine back to AFP sharing then *poof* everything magically works flawless again. Turning on SMB does not allow us to work — every time it fails.


Tried Deleting all caches.

Tried Checking the hard drive with Disk Utility.

Tried turning off "Put Hard Disks to sleep when possible" setting on both machines.


Apple needs to fix this. Judging from the many posts in the forums there have been SMB problems like this for years now! Unacceptable — especially when using nothing but Mac-to-Mac networking, and having the only functional solution deprecated by Apple!

Oct 30, 2013 11:07 AM in response to ramz225

Nope. Working on it, but no solution in sight. Meanwhile i had to switch to SSHFS/SFTP to get productive again. Dont ask... SMB, AFP, NFS, FTP, .... nothing wanted to work and also SSHFS was'nt easy, due to timeouts, connection drops and file permissions. But i managed to get it working.


I hope Apple get's things done very soon! I rely heavely on networks and it's quite a shame that connecting Windows and Linux clients to an OS X Server (10.6.8) is easier and more reliable than connecting Mac clients. No joke; sad but true...


PS: and no, i wont upgrade the server to Mavericks Server... after what happened with my last OS X Lion Servers... *outch*

Oct 30, 2013 11:31 AM in response to ramz225

Dont argue with those thingsto much.


Just download and install those 2:


I did get it working with those. I also generated an RSA PUB Key the i installed on the server for authentication. Read this, it's worth it: http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-passwor d-using-ssh-keygen-ssh-copy-id/


Optionally, if you run into some problems you can also give some extra options to MacFusion. If you want to know which ones, check this out: http://jann.is/daily/archives/757-ExtraAdvanced-options-for-MacFuseMacFusion.htm l


I think that should help you to get it up and running.


Keep in mind that it's only a temporary solution, until Apple fixed the problems...

Nov 2, 2013 6:07 PM in response to TenjuZenjin

Experienced similar problems; most probably due to problems with the browsing client's Finder using .DS_store files on the remote server. The deeper into the remote server's directory tree you browse, the longer the delay. All good though after typing the following in Terminal (no SUDO needed) and rebooting the client.


defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Nov 4, 2013 12:46 AM in response to -KEPHSTER-

Thx -KEPHSTER-!


I already followed that approach but it did not change much. I did set the client so that they wont write .DS_store files and also instructed the server so he would noch "accept" them and clean them. Browsing was not faster in any way...


Like you, browsing from on level to another deeper level, it slowed down with every level i did go deeper. I also experienced some sort of caching, wich speeded up things a little. But once the drive disconnects, the cache was purged too.


On the server i saw something quite strange. It seems that, upon connection from a client, the 10.9 client requests the whole folder tree, what a 10.8 and below client did not. With a tree af many thousand folders and even much more files, this could be a huge slow down. Might be hint...?

Nov 11, 2013 2:35 PM in response to TenjuZenjin

I also have the same problem running on a synology NAS disk station (with SMB2 support for mavericks update installed).


  • Running a windows 8 VM on the same machine as Mavericks loads the share in seconds, the same folder in Mavericks takes 30mins plus.
  • To confirm https (WebDAV) is no quicker either (to add to TenjuZenin's list above)
  • I'm on a LAN so I can't image how painful this would be on a VPN.


Apple, please can you provide some enterprise support for file shares and other basics (including iSCSI). It can (and does) take hours to do basic file maintenance jobs which takes minutes on a PC.

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 ID.