kernel_task high memory usage

Hi, since I upgraded from Lion to Mavericks yesterday, the kernel_task process has been running consistently with 4.7GB of RAM. The OS is now constantly running at full usage of physical RAM and swapping more than 10GB to disc.


I have a MBP Early 2011 with 8GB RAM.


What is the kernel_task process and is there anyway of limiting its drain on my system. As it is, my MBP is pretty much useless as it takes forever to even load a webpage, let alone run servers and IDE's which I need to do.


Hopefully I don't have to revert to my Lion backup, but without a solution to this I'm going to have to.


Hope someone has a pointer for me.


Thanks,

Paul


User uploaded file

User uploaded file

MacBook Pro (17-inch Early 2011), OS X Mavericks (10.9)

Posted on Oct 26, 2013 4:40 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 20, 2014 7:48 AM

If my experience is anything to go by, a good first troubleshooting step for this might be to go to your System/Library/Extensions folder and remove any .kext files created or modified before Mavericks was released, and certainly from 2012 backwards, then restart your Mac. This solved the problem for me.


After updating my iMac to Mavericks from Mountain Lion, kernel_task started hogging over 3 GB of RAM, though it had no noticeable effect on CPU usage. I did the above and found a set of extensions going back to 2012. They were all ATTO .kexts (ATTOCelerity, ATTOExpress), which I believe are to do with external hard disk drivers. After removing these and restarting, everything was smooth as silk, with kernel-task usage dropping to a little over 700 MB, which is a good bit less than it was using with Mountain Lion. Since then, it's crept up to about 1 GB, but this is still less than I saw in Mountain Lion.


The Mavericks installer found some others and put them in the Incompatible Software folder, but some may slip through, as in this case.

113 replies

Oct 28, 2013 9:07 AM in response to EvilRaat

Same problem for me.

I've got an iMac 2011, with 12GB RAM.

Yesterday upgrade from ML to Mavericks, and today the memory used grows and slows down all the system, because swap are in use.

the process responsible of that is kernel_task, who grows in memory a lot (all ram + 1-10GB swap).

it persist about 10-20 minuts, then all goes well, and another time grows, and so on...

It makes the work too hard and slow.

User uploaded file

reboot my computer doesn't solve the problem, it persist... 😟

Oct 29, 2013 4:53 AM in response to EvilRaat

I have the same problem. Before the upgrade to Mavericks I could work all day doing what I call "normal" work and rarely have paging problems. When I did it was usually because I had multiple tabs open in Safari to Flash heavy websites. Perhaps once per week I would need to close Safari, use the "purge" command and my system would be good as new.

With Mavericks I can do "normal" work for about 5-6 hours then I'm paging like crazy. I'm even more careful than before to close apps I'm not using, but I still seem to max out my RAM. The "purge" command does not free up as much RAM as it used to and I'm forced to reboot.

Now I feel like a PC user, needing to reboot my Mac every day just to keep it working right. :-(

Nov 2, 2013 12:26 PM in response to EvilRaat

In 10.9 I've noticed massive issues with Flash Player in Chrome and Firefox, as soon as you play a video, you're looking at 80+% CPU use and often lots of RAM as well. Safari spikes a little here and there as well, however it seems to be optimized in some way to be more forgiving. This is incredibly annoying though since I'm not too keen on Safari at all, ***** to have to use it to play video.


IMO this more about Mavericks being unpatched and less about anything else right now. 'S what you get for updating to a new OS early into it's dev cycle. It's possible that a browser update or Flash Player update in the near future might help as well, but I wouldn't hold my breath. FF25 just came out and it's still bad as ever on there. Will see if any new Flash Player updates make the difference..

Dec 13, 2013 11:10 PM in response to Killasyougo

All of you should take a closer look in Activity Monitor. If swap used is 0, there is probably nothing wrong. It may be that the extra RAM used is storing the compressed RAM, and that would be as designed.


But that would be different than the cases where swap files are numerous and large. In those cases there would be a concern if it was constantly happening, especially when a lot of RAM is installed.

Feb 7, 2014 12:12 AM in response to EvilRaat

Hello Guys,

I've just restarted my MBP 2011, 13'' with 8GB Ram, updated from Mountain Lion to Mavericks, and "kernel_task" in few minutes is growing up to 1GB and has activated more then 100 Threads... I think there is something wrong with memory and CPU usage of this new implementation.


Is there any update about this issue or any fix?


Thanks

Mar 28, 2014 2:07 PM in response to sheclimber

You may be confusing Library folders. The one you found sounds like the User Library. This is the one the Go menu takes you to. The one you want is the System Library. You have to go to the root level, which you can get to by double-clicking the HD icon on your desktop, go to Macintosh HD (or whatever you've named the HD icon), then to the System folder (marked with the X icon). The Library folder you need is in there, and the Extensions folder is in that, with all the .kext files. Spotlight doesn't show these, which may be why you're not finding them.


Be very careful, though. You need to be hyper-cautious about touching anything in the System folder, as the running of your Mac depends on it. But the Extensions folder must be there, or your Mac wouldn't be working.

Apr 29, 2014 6:21 PM in response to EvilRaat

Same issue here. Since upgrading to Mavericks my machine is very unresponsive. Activity Monitor shows kernel_task at top of CPU and memory tabs.


The suggested solution is to delete older .kext files in System/Library/Extensions and reboot. Keep trying until your system speeds up.


Not a great solution really. I have 243 kext files in that folder. Do I delete them one at a time? If I break something by deleting a kext, is there anyway to revert?


No input from Apple suport team?

Aug 14, 2014 1:52 PM in response to cac613

Just to let you know cad613, for reasons of my own, I decided to clean and reinstall on my MBP. It didn't change anything. Initially there was no kernel_task, but as I worked with my Mac to download a few apps it popped up. What is interesting is that there appears to be a lag in resetting the memory. I was doing an online photography course that included using Lightroom 5. On several occasions the instructor noted that his computer was lagging just like mine started to do as of late. This was about 2 weeks ago around the time of the upgrade. I would suspect that we have pinned this as the problem, but it would appear it may not be. Lightroom can be a very intensive app, but my mac would reset itself as it got low in memory but now it doesn't. I need to have an app that will manually clear memory. Do I think that it is Mavericks, yes, but whatever it is seems to be a mystery.

I did the clean and reinstall for the same reason that you stated. When I got the MBP I just did a backup transferred from my last MacBook and there were definitely remnants of stuff that were annoying and did not run properly. Rather then try to find all the crap that comes alone with the apps. which would have consumed copious amounts of time, I just cleaned. But it comes along with other tasks like reinstalling important software.

Sometimes I feel like I am working with the 'other OS'. Just one good thing is that if there is a problem, I am sure it will be found.

May 10, 2016 7:57 PM in response to antdude

800MB is within bounds for a 16GB system. Since you have kernel extensions installed (McAfee, and maybe others), going o 1.2GB can be a very normal situation.


Since this thread is already 7 pages long _AND_ marked "Answered", you might consider starting a new thread to discuss your issues.


In your new thread, if you wish to point to anything you think is relevant in this thread just provide a link, but since many kernel_task too large all have different situations, it is unlikely.


In your new thread, please post the output from EtreCheck

<https://discussions.apple.com/docs/DOC-6174>

<http://etrecheck.com>

Perform the EtreCheck "When" you have a large kernel_task memory usage, otherwise, there is no point to it if large kernel_task memory using is the problem.


And I can tell you, you will be told to remove McAfee, and any Mac clearners, or memory cleaners.

<http://www.thesafemac.com/mmg-builtin/>


Finally since you are running Yosemite, post your new thread in the Yosemite forum, not the Mavericks forum.

Sep 8, 2016 12:12 PM in response to marc_l

marc_l wrote:


This doesn't work because the system won't let me move the files, only copy them. When I try to delete the files after copying them, I get a message saying they can't be deleted because the files are being used by OS X.

If you cannot move the files, chances are you are NOT using Mavericks. You should be posting in the forum related to your specific operating system release.


You should give as much details as you can.


It would be nice in your new "Post" to include the EtreCheck output

<https://discussions.apple.com/docs/DOC-6174> or <http://etrecheck.com>

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

kernel_task high memory usage

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