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

Nov 2, 2013 5:05 PM in response to HalexPereira

I had the same problem on a MacBook Air 2013 on which I had done a complete reinstallation of Maverics from rescue disc and it seems I have actually found a SOLUTION to this...


kernel_task was using 100% CPU and this is what powermetrics said...


Machine model: MacBookAir6,1

OS version: 13A603


**** Interrupt distribution ****


CPU 0:

Vector 0x46(SMC): 2.80 interrupts/sec

Vector 0x49(MacBookAir6,1): 111.89 interrupts/sec

Vector 0x92(IGPU): 265.74 interrupts/sec

Vector 0x96(HDEF): 218867.39 interrupts/sec

Vector 0x98(ARPT): 7.19 interrupts/sec

Vector 0x9e(SSD0): 0.60 interrupts/sec

Vector 0xdd(TMR): 308.49 interrupts/sec

Vector 0xde(IPI): 135.07 interrupts/sec

CPU 1:

Vector 0xdd(TMR): 15.58 interrupts/sec

Vector 0xde(IPI): 48.35 interrupts/sec

CPU 2:

Vector 0xdd(TMR): 482.12 interrupts/sec

Vector 0xde(IPI): 477.92 interrupts/sec

CPU 3:

Vector 0xdd(TMR): 215.19 interrupts/sec

Vector 0xde(IPI): 229.97 interrupts/sec


Now I noticed I had VLC running in the background and closed that. Then I also found quite a few hanging processes named QTKitServer-(####) Safari Web Content... - I killed the first of these and the CPU usage went right back to normal levels.


So I am not sure if the problem was caused by VLC or the hanging QTKitServer process but you might try killing both and check if that helps. It sure solved my problem.

Nov 2, 2013 5:10 PM in response to SundanceX

It's interesting you mentioned the nonresponsive QTKitServer process, because I've been noticing it lurking around in Activity Monitor. I don't have VLC installed, though — I had Perian, however, but I recently removed it to no avail.


One thing I never noticed was if QTKitServer was around when the kernel_rask went haywire. I'll look into it, next time I have the chance.

Nov 2, 2013 7:29 PM in response to HalexPereira

I have been experiencing the same issue after upgrading to Mavericks, Mid-2013 11" MacBook Air. The last time this happened, I had speakers plugged in to the headphone jack playing music, which agrees with some of the posts here saying this is related to playing music with headphones connected.


The powermetrics also show exactly the same abnormally high level of HDEF interrupts:


**** Interrupt distribution ****



CPU 0:

Vector 0x49(MacBookAir6,1): 25.89 interrupts/sec

Vector 0x93(IGPU): 833.52 interrupts/sec

Vector 0x96(HDEF): 194291.70 interrupts/sec

Vector 0x98(ARPT): 11.95 interrupts/sec

Vector 0x9e(SSD0): 2.99 interrupts/sec

Vector 0xdd(TMR): 301.74 interrupts/sec

Vector 0xde(IPI): 152.36 interrupts/sec

CPU 1:

Vector 0xdd(TMR): 18.92 interrupts/sec

Vector 0xde(IPI): 134.44 interrupts/sec

CPU 2:

Vector 0xdd(TMR): 296.76 interrupts/sec

Vector 0xde(IPI): 896.26 interrupts/sec

CPU 3:

Vector 0xdd(TMR): 129.46 interrupts/sec

Vector 0xde(IPI): 448.13 interrupts/sec

Nov 3, 2013 10:55 AM in response to HalexPereira

I have the same issue on MacBook Pro Retina 13" (Late 2013).

I thought that is an Hardware Problem, but now i saw this topic and i noticed that i have always Apple Earpod connected!

Now i'm trying to disconnect headphones, and it seems that the process kernel_tastk returns to normal state.

When occurs the issue, the interrupt are the same, the problem is HDEF and related kext AppleHDA.

I tryed to install AppleHDA kext from Mountain Lion but Mavericks don't load these.

Do you think it is only a software problem?

I hope that Apple releases a fix.

Nov 4, 2013 4:05 AM in response to HalexPereira

Here how i have replace the AppleHDA.kext driver on my MacBookAir 13" (2013):


sudo mv /System/Library/Extensions/AppleHDA.kext /System/Library/Extensions/AppleHDA.kext.disabled
sudo cp -pr AppleHDA.10.8.5.kext /System/Library/Extensions/AppleHDA.kext
sudo chown -R root:wheel /System/Library/Extensions/AppleHDA.kext
sudo touch  /System/Library/Extensions


Then reboot


Here the link to AppleHDA driver of Mountain Lion 10.8.5: https://dl.dropboxusercontent.com/u/112112/AppleHDA.10.8.5.kext.zip

Nov 5, 2013 10:02 AM in response to HalexPereira

I have encountered the same problem, after having connected a stereo plug and a minidisplay port one core was using 100%. A restart solved the problem. However, I have tried to recreate it and I did not manage. Even plugging the headphones and unplugging them, with VLC playing, it does not come back. Will try by doing a deep sleep. But it is annoying because I will constantly have to watch my activity monitor.

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.