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

Dec 24, 2013 5:44 AM in response to HalexPereira

So I just hit a weird bug not having to do anything. My computer is copying files (large volume so it's taking hours). Anyway, I constantly have Activity Monitor on now because of this issue. Things were looking great as kernel_task was at avg around 10%CPU. My computer went to sleep and then waking from sleep.... kernel_task at 120%!!! I have no headphones plugged in, all 3rd party apps are closed, the only real task running was the Finder copying files to an external. Apple really needs to fix this bug!

Dec 25, 2013 8:18 PM in response to HalexPereira

Same problem here using a brand new Retina MacBook Pro 13" Late 2013 running Mavericks

I am not using headphhones at all, but still geting a large rate of interrupts tied to the HDEF vector after waking from sleep (see below).

I am using the mic and speakers in a google hangout, which may be the reason it is saturating the audio interrupt.



The following results from running

"sudo powermetrics -n 1" in terminal is as follows:


After Restart:


**** Interrupt distribution ****


CPU 0:

Vector 0x46(SMC): 14.59 interrupts/sec

Vector 0x72(IGPU): 57.96 interrupts/sec

Vector 0x74(XHC1): 6.20 interrupts/sec

Vector 0x77(ARPT): 15.19 interrupts/sec

Vector 0x7e(SSD0): 0.20 interrupts/sec

Vector 0xdd(TMR): 1228.25 interrupts/sec

Vector 0xde(IPI): 20.18 interrupts/sec

CPU 1:

Vector 0xdd(TMR): 48.96 interrupts/sec

Vector 0xde(IPI): 3.80 interrupts/sec

CPU 2:

Vector 0xdd(TMR): 45.17 interrupts/sec

Vector 0xde(IPI): 18.39 interrupts/sec

CPU 3:

Vector 0xdd(TMR): 19.39 interrupts/sec

Vector 0xde(IPI): 4.40 interrupts/sec





And after sleeping and waking




**** Interrupt distribution ****



CPU 0:

Vector 0x46(SMC): 15.38 interrupts/sec

Vector 0x72(IGPU): 265.88 interrupts/sec

Vector 0x74(XHC1): 21.77 interrupts/sec

Vector 0x76(HDEF): 184863.22 interrupts/sec

Vector 0x77(ARPT): 127.65 interrupts/sec

Vector 0x78(CMRA): 47.34 interrupts/sec

Vector 0x7e(SSD0): 18.38 interrupts/sec

Vector 0xdd(TMR): 497.41 interrupts/sec

Vector 0xde(IPI): 300.24 interrupts/sec

CPU 1:

Vector 0xdd(TMR): 404.12 interrupts/sec

Vector 0xde(IPI): 1302.25 interrupts/sec

CPU 2:

Vector 0xdd(TMR): 957.86 interrupts/sec

Vector 0xde(IPI): 2895.16 interrupts/sec

CPU 3:

Vector 0xdd(TMR): 383.94 interrupts/sec

Vector 0xde(IPI): 1140.84 interrupts/sec

Dec 29, 2013 5:18 AM in response to HalexPereira

2013 rMBP reporting in, same issue here when using headphones. For now I'm using the same solution suggested by other users:

  • unplug headphones;
  • open an application capable of reproducing audio - I usually open iTunes;
  • leave it open for a couple of seconds, then close it;
  • put the computer to stop, either via the Apple menu or by closing the lid;
  • wait 4-5 seconds;
  • wake computer up, the problem is gone.

This fixes the issue, at least for a while (I didn't check if this happens only when the computers wake up with the headphones plugged in - as other users reported - or randomly).

The real problem for me is that if I'm not using applications that requires a lot of processing power and I don't keep an eye on Activity Monitor I won't even notice the spikes in CPU usage and that's really bad because I think this problem is affecting my battery health as well (went from 6330 to 6291 mAH capacity with less than 20 charge cycles - a ~1% difference, I know, but I'm still worried it will be a problem if Apple doesn't fix this).

Jan 1, 2014 2:40 AM in response to drewrob26

Well having had ongoing problems for years now on various new apple machines, including various ones which apple stores have looked at and replaced virtually every internal part, still unable to find the slowness causes (and instability and network leeching), my friend, a lifelong Apple tech, sent me these two links. I can't say I am not ever so slightly curious!


http://www.spiegel.de/international/world/the-nsa-uses-powerful-toolbox-in-effor t-to-spy-on-global-networks-a-940969.html


http://www.spiegel.de/international/world/catalog-reveals-nsa-has-back-doors-for -numerous-devices-a-940994.html

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.