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.

kernel_task is using 100% CPU when waking from sleep

Since updating my 13" mid-2013 MacBook Air to Mavericks, there's this issue that's been happening when I wake the computer up from sleep. A proccess called kernel_task uses 100% CPU (a whole core) and hangs there until the computer is restarted. This doesn't make the computer unresponsive, but it kills battery life.


So far, I've tried the following:


1. Resetting SMC, NVRAM and PRAM: no effect.

2. Safe Boot: the issue doesn't happen.

3. Deleting old apps/plugins: issue persists.

4. Closing all apps doesn't solve issue after it takes place.

5. Repairing permissions: no effect.

6. Apple Diagnostics: no issue found in hardware.

7. No kernel extensions from third-parties are installed (there are 120 kext, according to Terminal, but they all come from Apple).

8. Everything is up to date.

9. Only external plugin installed is Flash.


Given these, I reckon it's something software-related. Any tips on solving this would be welcome — things to look for in Console logs would be greatly appreciated.

MacBook Air (13-inch Mid 2013), OS X Mavericks (10.9)

Posted on Oct 28, 2013 12:03 PM

Reply
323 replies

Jan 8, 2014 8:16 AM in response to gattol

With me unloading the AppleHDA.kext did drop CPU usage but I did get an error message:

(kernel) Can't unload kext com.apple.driver.AppleHDA; classes have instances:

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAWidgetCS4208 has 8 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAEngine has 2 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAEngineOutput has 2 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAEngineOutputDP has 1 instance.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAEngineInput has 1 instance.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAStream has 2 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAPath has 5 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAWidget has 2 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDANode has 1 instance.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAPathSet has 5 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAPathControl has 8 instances.

(kernel) Kext com.apple.driver.AppleHDA class AppleHDAWidget_80862807 has 2 instances.

Failed to unload com.apple.driver.AppleHDA - (libkern/kext) kext is in use or retained (cannot unload).


Reloading afterwards worked but I had lost all sound. Only a restart could fix it.

Jan 9, 2014 7:55 AM in response to HalexPereira

I had a similar problem where my fans would go crazy and the spinning beach ball of death would appear every 5 seconds rendering even simple computer usage null. I ended up removing the soundflower.kext (I'm guessing audio hijack pro or audacity installed that): /System/Library/Extensions/Soundflower.kext


Everything has been back to normal since then.

kernel_task is using 100% CPU when waking from sleep

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