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.

launchd and opendirectoryd crazy CPU usage after installing Lion

Since installing Lion, my 13" MacBook Pro now sits with launchd taking up 50% CPU and opendirectoryd taking up 25%.


This doesn't leave much CPU time for anything else.


Can anyone please help?


Cheers,

Kerry Emerson

MacBook Pro, Mac OS X (10.7)

Posted on Jul 22, 2011 3:56 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 22, 2011 4:14 AM

You probably have incompatible software running under launchd and it is crashing constantly.


Check your Console application (found in Utilities) and see if there are logs showing up.


For me, Livescribe Desktop is broken under Lion, I see the following filling my logs:


Jul 22 07:11:50 Walkabout com.apple.launchd[1] (PenCommService[14433]): getpwnam("_pencomm") failed

Jul 22 07:12:00 Walkabout com.apple.launchd[1] (PenCommService[14434]): getpwnam("_pencomm") failed

Jul 22 07:12:10 Walkabout com.apple.launchd[1] (PenCommService[14435]): getpwnam("_pencomm") failed

Jul 22 07:12:20 Walkabout com.apple.launchd[1] (PenCommService[14436]): getpwnam("_pencomm") failed

Jul 22 07:12:30 Walkabout com.apple.launchd[1] (PenCommService[14437]): getpwnam("_pencomm") failed

Jul 22 07:12:30 Walkabout com.apple.launchd[1] (PenCommService[14437]): Exited with code: 1

Jul 22 07:12:30 Walkabout com.apple.launchd[1] (PenCommService): Throttling respawn: Will start in 10 seconds

Jul 22 07:12:40 Walkabout com.apple.launchd[1] (PenCommService[14440]): getpwnam("_pencomm") failed


Over and over. This can spike CPU usage for the launchd. Probably something similar for opendirectoryd as well (there are known issues with network mounts in Lion (they changed netatalk to version 2.2, and most NAS servers are not compatible). You should be able to get more information in the logs, post them here for additional assistance.

24 replies

Jan 12, 2012 4:55 AM in response to Kerry Emerson

This thread has been really useful, and I would just like to confirm that, for me at least, this problem all seems to be Dropbox-related.


opendirectoryd, launchd and occasionally the kernel task were all running at 35-100% for extended periods of time. Quitting Dropbox seems to stop the problem, and so far it is totally consistent (turn it back on, problem comes back, turn it back off, problem goes away again).


I have also seen this explanation, which suggests it is to do with symlinks in Dropbox. I suspect many of us are using symlinks and Dropbox to sync our Documents folder and others.


http://superuser.com/questions/350879/opendirectoryd-consumes-40-of-cpu


I think Dropbox are working on it though, or at least it seems to be the theme of this thread:


http://forums.dropbox.com/topic.php?id=41772&replies=19


It occurs to me this whole thing may be a kind of vicious circle, where I create a load of file (by using a Git repository), and Dropbox and Spotlight both go nuts indexing, and Spotlight also indexes a load of Dropbox-related files etc etc.

Mar 31, 2013 11:40 AM in response to mazenfrometobicoke

Hello. This is not probably the right place to post this question but I think I will do it anyway.



I started to observe my kernel log / system konsole for what's going on and I saw opendirectoryd - has made 9 logs of starting something and here's log outputs (first & last) these logs are under "fax" and that's why I get interested, becouse I do not have any attempts & software what would need this options:


2013-03-28 16:11:44.418 EET - opendirectoryd (build 172.17) launched...

2013-03-28 16:11:44.419 EET - Logging level limit changed to 'error'

2013-03-28 16:11:52.873 EET - Initialize trigger support

2013-03-28 16:11:52.874 EET - Registered node with name '/Active Directory' as hidden

2013-03-28 16:11:52.874 EET - Registered node with name '/Configure' as hidden

2013-03-28 16:11:52.875 EET - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'

2013-03-28 16:11:52.875 EET - Registered node with name '/Contacts'

2013-03-28 16:11:52.875 EET - Registered node with name '/LDAPv3' as hidden

2013-03-28 16:11:52.877 EET - Registered node with name '/Local' as hidden

2013-03-28 16:11:52.878 EET - Registered node with name '/NIS' as hidden

2013-03-28 16:11:52.879 EET - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'

2013-03-28 16:11:52.879 EET - Registered node with name '/Search'

2013-03-28 16:11:52.880 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'

2013-03-28 16:11:52.882 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'

2013-03-28 16:11:53.884 EET - '/Search' has registered, loading additional services

2013-03-28 16:11:53.884 EET - Initialize augmentation support

2013-03-28 16:11:53.887 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'

2013-03-28 16:11:53.891 EET - Successfully registered for Kernel identity service requests

2013-03-28 16:11:53.896 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'

2013-03-28 16:11:53.897 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'

2013-03-28 16:11:53.910 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'

2013-03-28 16:11:53.910 EET - Registered subnode with name '/Local/Default'

2013-03-28 16:12:10.289 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'


2013-03-05 18:22:48.204 EET - opendirectoryd (build 172.17) launched...

2013-03-05 18:22:48.204 EET - Logging level limit changed to 'error'

2013-03-05 18:22:48.229 EET - Initialize trigger support

2013-03-05 18:22:48.230 EET - Registered node with name '/Active Directory' as hidden

2013-03-05 18:22:48.231 EET - Registered node with name '/Configure' as hidden

2013-03-05 18:22:48.232 EET - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'

2013-03-05 18:22:48.232 EET - Registered node with name '/Contacts'

2013-03-05 18:22:48.232 EET - Registered node with name '/LDAPv3' as hidden

2013-03-05 18:22:48.235 EET - Registered node with name '/Local' as hidden

2013-03-05 18:22:48.237 EET - Registered node with name '/NIS' as hidden

2013-03-05 18:22:48.238 EET - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'

2013-03-05 18:22:48.238 EET - Registered node with name '/Search'

2013-03-05 18:22:48.240 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'

2013-03-05 18:22:48.242 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'

2013-03-05 18:22:49.244 EET - '/Search' has registered, loading additional services

2013-03-05 18:22:49.244 EET - Initialize augmentation support

2013-03-05 18:22:49.248 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'

2013-03-05 18:22:49.252 EET - Successfully registered for Kernel identity service requests

2013-03-05 18:22:49.259 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'

2013-03-05 18:22:49.260 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'

2013-03-05 18:22:49.272 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'

2013-03-05 18:22:49.273 EET - Registered subnode with name '/Local/Default'

2013-03-05 18:23:23.981 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'

2013-03-05 18:37:30.017 EET - Starting shutdown process...

2013-03-05 18:37:30.017 EET - Deregistered with Kernel for identity service requests




I'm trying to debug why this process has started, no problems with softwares / installs. Everything works fine.


But I think my computer got hacked some time ago. After that I installed e.g. Little Snitch Network monitor (still using demo version) and Avira virus scanner.


No log / other unusual behavior after that.


Any suggestions where to look / where to dig?

launchd and opendirectoryd crazy CPU usage after installing Lion

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