Kompato

OS X slowdown and speedup

Recently I encountered some unusual, and intermittent system slowdowns where OS X would hang for 10-20 seconds once or twice a day. Keyboard and mouse input was ignored in every application, and by OS X (10.6.1) itself.

I thought that it might be a problem with Flash since installing Click2Flash seemed to help. Also, I began noticing the problem after installing 10.6.1, which was supposed to reapply a newer version of Flash. However, I'm not so sure if Flash is the culprit.

The problem happened again this evening and since my logs only indicated Safari and 1Password entries at the time, I ended up searching on those terms. This led me to information about the /var/db/CodeEquivalenceDatabase file, which apparently is used by securityd when determining if an application has access to the Keychain. On a whim, I renamed the file, as several articles suggested, and logged out & back in.

I have no clue if this is related to the occasional system hang (it's intermittent and unpredictable), but amazingly many apps -- and in particular, Safari -- are loading significantly faster. This leads me to believe that my CodeEquivalenceDatabase file had some corruption.

The odd thing about this is that I wasn't experiencing any of the symptoms that led others to take this step. For example, there were no processes (such as securityd) hogging the CPU during the system hangs. So -- either my situation is unique or perhaps there are other reasons to rename this file and let the system rebuild it.

In any case, here are a few links that reference this file in case others find it helpful:

http://www.macosxhints.com/article.php?story=20070608010326883

http://iparrizar.mnstate.edu/~juan/urania/2007/08/08/hint-what-to-do-when-keychain-using-apps-lock-up/

http://www.43folders.com/2007/01/22/securityd-keychain-fix

http://mactip.blogspot.com/2007/10/securityd-memory-hogging.html

http://www.mattberther.com/2008/01/

UPDATE: This did not resolve the occasional hangs, but it did indeed speed up application launches.

UPDATE #2: Looks like this thread describes the situation I experience -- and judging by its length, I am definitely not alone.

UPDATE #3: OS X 10.6.2 appears to have addressed the issue.  I no longer experience the hangs.

Filed under: mac technology
0 comments

Leave a comment...

To Posterous, Love Metalab