You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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 Top-ranking 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

Apr 18, 2014 7:48 AM in response to TenjuZenjin

I tried all of the fixes in this thread and none of them worked for me. Then I started looking into the various options in the nsmb.conf. I noticed that you can force the mac client to only connect over port 445 (netbois over tcp):


[default]

smb_neg=smb1_only

port445=no_netbois


I tried that and could not connect at all. That meant the server was not allowing netbois over tcp. I went to our Windows server and enabled netbois over tcp. Reconnected and poof, everything was fast again. If you still can't connect after enabling netbois over tcp, then the Windows firewall could be blocking you. You will then need to allow 445 in your firewall.


By the way, I did not have to change all the Mac's in our office after I could connect. The mac client defaults to NetBIOS over TCP, if that is unsuccessful, it tries to connect over straight NetBIOS. I just forced NetBIOS over TCP to test whether server was accepting NetBOIS over TCP.

Apr 29, 2014 11:57 AM in response to surogat70

Ok, I think I have another possible solution (workaround). There seem to be a variety of similar problems in this thread, but for me, the problem was incredibly long delays for directory listings when connecting from a Mac running Mavericks to any Windows server using SMB2. The problem was worst when connecting to Windows 8/8.1/2012 R2.


My OSX console log sometimes mentioned a timeout waiting for smb2 credits, so as per this Microsoft document, I created these two registry DWORD entries on my Win8.1 machine:


Smb2CreditsMin and Smb2CreditsMax

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Smb2CreditsMin

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Smb2CreditsMax

The defaults, usually not present in the registry by default, are 512 and 8192, respectively. I simply created a new DWORD for Smb2CreditsMin set to 768 and Smb2CreditsMax set to 16384 (decimal values). This made browsing a Windows share over SMB2 at least as fast as it used to be. Please keep in mind that there could be other implications for your network if you change these (probably not in most small-ish networks), but I have seen nothing but a benefit over both wireless and gigabit LAN, and all over computers (win7, win8.1, mavericks, mountain lion), seem unaffected. As always, be careful in the registry, but if you have the ability to change your server/share settings, hopefully this helps you as much as it helped me.


For clarity's sake, a screenshot:


User uploaded file

Apr 29, 2014 5:41 PM in response to pulsar37

pulsar37 & joewebdms


your last 2 posts above (not sure if it was one or combined) have pretty much* solved the issue for me - finally - in connecting to a Windows 8 Server. I have tried everything in this thread and others, and installing 3rd party apps (pathfinder - which eased the problem, but ideally i dont want to rely on 3rd party apps).


so thankyou!


* when browsing directories on a windows share drive now i'd say 9 out of 10 directories display their contents instantly. about 1 in every 10 seems to stall for 2-5 seconds, i get a beach ball spinning, then it displays. i can live with that 🙂

Apr 30, 2014 12:31 AM in response to c41

You're welcome! Glad I could help. For others or FYI:


I think the suggestion given by joewebdms to check port 445 and NetBIOS settings is important especially if you're getting connectivity issues even with basic SMB1/CIFS.


If, on the other hand, you can connect to your Windows server/share just fine, but it takes a really long time (a couple minutes) for any files/folders to appear (and Finder slows to a crawl in the meantime), then your problem might be addressable by making the registry edit I posted above. If you adjust the Smb2CreditsMin and Max parameters in the registry on your Windows server, you shouldn't need to adjust anything on your Mac (Mavericks default SMB2 should work, no changes to nsmb.conf file).


To reiterate: the Smb2credits adjustment should only possibly fix directory listing and painfully slow browsing when opening a new connection from Mavericks to a Windows computer - it probably won't fix other miscellaneous connection issues.

May 6, 2014 7:07 PM in response to TenjuZenjin

Hi Folks - so I'm having this exact same issue except I'm using a Mac as a server running Snow Leopard ... all the clients were on Lion or Mountain lion and had lightning fast access via internet just connecting via IP address. However as soon as the clients connected after the update to Mavericks 10.9.2 - it would take 5 to 10 mins to render the file list in the finder window.


I've tried the DS store fix, and I've also add the parent folder of the server to the EXCLUDE list in Spotlight and it "may" have helped as I think there is some caching involved however if you click on a new folder and drill down into another level - after 3 or 4 folder levels it can take a couple of minutes even to display 3 or 4 files in the folder at that level.


I've also tried the TRIAL of TOTALFINDER and experience the same issue.... so that didnt work either.


Anyone have anything else to offer? I also logged a case with Apple (on a brand new 27" iMac that is a dinosaur accessing the server next to my 2007 Lion iMac --- not a very good experience... Appreciate any new ideas.

May 7, 2014 6:50 AM in response to austinfurlvr

Did you try forcing your clients to connect over tcp? I really think the native NetBOIS is broken/slow on Maverick. To troubleshoot, I forced NetBOIS over TCP in my nsmb.conf file on the Maverick client:


[default]

port445=no_netbois


If you can't connect after making this change, then netbois over tcp is not enabled on the server. The "Normal" or default setting for port445 is to first try 445, then via NetBOIS. So your server probably does not have NetBOIS over TCP enabled or your clients would have selected that first.

May 7, 2014 7:22 AM in response to TenjuZenjin

I'm using AFP on OS X 10.9.2 with an ancient Synology DS211J NAS and I followed this guide from EMC and my directory listings are blazing fast now. The doc has a good description of how Mac OS handles gathering ALL the metadata from a folder before showing ANYTHING on the screen to the end user. This means if you have lot of files in a directory it will be slow still even with AFP. The doc describes how NFS is faster because of the metadata parsing.


This doc was a lifesaver for me, but requires some Terminal commands to be run. Again, mine is about 10x faster now, so hope it helps you. Big thanks to Bernie Case and EMC!!!


https://www.emc.com/colla.../TechnicalDocument/docu51273.pdf

May 7, 2014 2:45 PM in response to leoinspace

This entire situation since Mavericks was available is entirely Apple's fault and after over 6 months they still haven't resolved it with us all scrabbling around to work around their mistake.


I can't even use my NAS any more and frankly the fact that they haven't come out with a fix in this time is disgusting.


Even when MS realised (stupidly) that removing the start button was an extremely dumb idea and that the 'metro' interface isn't really appropriate for laptop use, they fix it.


I've not seen any movement or acknowledgement from Apple on admitting this is an error on their part and the arrogance of not even providing a makeshift workaround.


I have used Macs since 1987 and this is one of the fundamental parts of an OS and that's how to 'find files'. I guess that's why they called it 'The Finder'.


Well I want to see this problem fixed in double quick time. I don't want to see cobbled together new protocol drivers because the licensing of SMB doesn't suit them. It's broken so fix it. However I don't expect this to cost me anything to get a utility to cover their ***** for a **** upgrade.


I want my NAS box directory back and listed at a decent speed. And before anyone says have you reported this to Apple the answer is yes but if they haven't noticed this forum then they're blind as well.

May 7, 2014 7:37 PM in response to atothek47

Hi Atothek47 - thanks for your reply ... so I dont even know what a Synology is... I'm connecting from a mac on 10.9.2 over internet to an iMac on 10.6.8 (Snow Leopard) - it sounds like we have the same problem - but there are no instructions on how to get the server mac to use NFS? (I tried SMB://servername - dismal results, I tried FTP://servername - worked but I dont want the world getting into my server - and I tried CIFS://servername and it worked - but just as slow as SMB -


Like I said I did the spotlight fix and the DS_store correction somewhere in this post... yet some folders still take > 2 mins to open.... whereas on my 2006 imac adjacent to new one - the display is lightning fast...


Is it just as simple as NFS://servername to use this protocol?

May 9, 2014 9:04 AM in response to austinfurlvr

NFS is for Unix file sharing and has to be configured on both the client and server side, so no, you won't be able to just type NFS://servername and have NFS functioning. Are you wanting to share files with SMB or AFP? I didn't understand what you meant by connecting to a Mac over the internet. SMB and AFP are primarily designed to share files between computers on a local network or over a VPN. You wouldn't want to expose SMB or AFP directly to the internet.


Did you read the EMC guide I posted? There's numerous tips to help you in there.

May 15, 2014 4:12 PM in response to pulsar37

"Smb2CreditsMin and Smb2CreditsMax

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Smb2CreditsMin

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Smb2CreditsMax


The defaults, usually not present in the registry by default, are 512 and 8192, respectively. I simply created a new DWORD for Smb2CreditsMin set to 768 and Smb2CreditsMax set to 16384 (decimal values). This made browsing a Windows share over SMB2 at least as fast as it used to be."



THANK YOU SO MUCH!!!

I've been battling this issue since the release of Mavericks. I'm using Server 2012 R2 and this registry fix has made SMB perfect.

Thank you very much.

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.