Skip to content

Instantly share code, notes, and snippets.

@nabilfreeman
Created May 20, 2015 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nabilfreeman/7e82aa5ac4ef172d22c5 to your computer and use it in GitHub Desktop.
Save nabilfreeman/7e82aa5ac4ef172d22c5 to your computer and use it in GitHub Desktop.
SOLVED: discoveryd eating up battery and CPU on Mac OS X Yosemite 10.10.3
discoveryd is completely fucked in some way in Yosemite. It randomly starts using up 100% CPU and doesn't stop until you reboot or the laptop dies.
To fix the CPU/battery rape, you need to restart the service with these shell commands:
launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
No sudo required. The problem will randomly return after restarting the service, so I configured launchd to run a shell script with those commands in it every hour.
No more problems, and it appears to have caused no side effects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment