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 consumes a lot of RAM in early 2011 MBP, sometimes Finder too

Hi,

My old MBP3,1 (late 2007, 2.4 GHz Core 2 Duo) worked quite well with 4 GB of RAM, even after weeks without restarting. In fact, I used all available RAM only on some larger analyses using R, which loads the entire dataset in memory. To be able to run these few analyses faster on my new machine (early 2011 MBP), I bought the 8 GB RAM option.

In Activity Monitor, I noticed something strange. Whereas my old MBP shows kernel_taks as using between 100 and 200 MB of RAM, the new MBP uses about 550 MB just after the machine started up and often shows over 600 after a few hours or days of use. A one year old iMac, again Core 2 Duo with 4 GB of RAM, gives a kernel_task memory usage below 200 MB after weeks of use.

I've not been able to find what kernel_task does. Is this amount (around 600 MB, but it has gone up to 800) normal? Is it managiing the additional number of cores that requires this behind the scenes amount of RAM?

Anyway, I now quite often have more than 4 GB of RAM in use even when I have only a few applications running (not even including R!), which surprises me.

Also today, after moving a lot of files back and forth between an external drive and the new MBP, after emptying the garbage can that contained a hefty number of files and doing a first Time Machine backup, the Finder ended up using 2,4 GB of RAM according to Activity Monitor. I have never seen anything like this (although I admit not having Activity Monitor on all the time). Even after the backup was finished and the external drive disconnected (in fact the machine was left idling for a few hours) cpu usage was down to nearly zero, the Finder kept its 2.4 GB of RAM. I restarted and the new RAM usage for the Finder was 26 MB. I have a screen shot showing the 2.4 GB, but I could not find a way to attach it to this message. I can send it by email on request. I don't think this Finder behavior was normal.

Somewhat worried,

Denis

MacBook Pro 2.2 GHz i7, 8 GB RAM, Mac OS X (10.6.6)

Posted on Mar 16, 2011 12:04 AM

Reply
216 replies

Sep 18, 2012 8:45 PM in response to DChabot

My work laptop:


2.3 Ghz Core i5 64-bit

4 GB RAM

13 inch MBP

March 2011

Safari 5.1.7 on Snow Leopard 10.6.8


My home machine:

Mac Mini

1.83 Ghz Core Duo 32-bit

2 GB RAM

(roughly) September 2006

Safari 5.1.2 on Snow Leopard 10.6.8


The MBP I've been using since October 2011.

I have had no problems with it until May 2012 (when Safari 5.1.7 was released).

I updated the MBP but not the Mini.

Since the update Safari burns thru memory rather fast.


My gauge has been work tasks during the work day. I code Websites most of the time. Fairly repeat tasks - nothing extranious. Nothing that changed around the Safari update to blame.


Currently:


The Mini is showing 124 MB / 2 GB used.

The MBP is showing 441 MB / 4 GB used.


The MBP was jsut cold started after a crash.

The Mini has been running solid for 20+ days currently. (during which time I have started - stopped and restarted Safari - Photoshop and various other high system resource intensive tasks)


With the MBP - loading an HTML Editor - Safari - Firefox - Mail - Calendar - Text Edit - I cannot gert thru lunchtime without having to relaunch or reboot. The Kernel_Task aside - the remaining Memory is usually taken up by Safari. Basically tasks and software that should be able to run near indefinitely.


After roughly half a day - I notice the spinning ball shows up briefly at first. Which prompts me to check memory allocation - RAM usage tends to nearly max out at 40xx MB - leaving 30-50 MBs of free memory. (I use a menu bar gauge called Menu Meter which does not register in Activity Monitor).


Checking Activity Monitor - Safari is #1 an the kernel_Task is #2 on the list accoring to the Real Memory column.


So YES - there is probably an inherent memory leak in Safari. But I think this is aside from the existing Kernel_Task issue that Apple has not bothered to respond to in several years.


Also - without testing numerous other machines - I do not think this is specifically an OS issue (note both systems above are running the same OS). It seems more related to a cross between some flaw in Safari (radical memory leak) and some unaddressed hardware flaw that has simply never been corrected.


It does not matter about this thread much. Apple has this to placate folks into thinking they have any voice that will apeal to Corporate but they don't pay much attention here. They have problems that go back years that have not been resolved or addressed. This is becoming one of them. They are basically turning into what Microsoft has already achieved years back - we're going to do things our way and our Customers have to bend over and like it. They're losing the main aspect of what made Apple what it is. It's sad - but they are getting too big for their own good. All while we must live with the flaws that go unfixed for new fancy fluff updates instead or jump ship to worse eco-systems like Windows. "If you don't like the garbage we dish out go get garbage from someone else". Gotta love it.

Sep 19, 2012 1:19 AM in response to Jp Cooper

Thanks for the note, JP. I came to my wit's end with this. I finally moved on.


There was a period of about 2 years where I could recommend to my family and friends "what computer should I buy?" I could just say: "get Apple" and not think about it. Because they didn't want to hack drivers or deal with viruses or whatever.


Those days are clearly gone. Any of my friends/family that would have this problem would come to me, and I'd have to spend weeks troubleshooting this annoying issue only to finally recommend they throw away their $3k machine and... buy another one?! Alas, no. Throw it away and buy Windows.


I bought into the lie so much that I spent $3k for my MBP, thinking I could finally leave behind the life of spending weeks troubleshooting simple tech problems. But it takes more effort to keep it running OSX than to throw Linux Mint on it. ***. I never thought I'd type these words, ever. Linux is like the yardstick of retardation when it comes to desktop performance, and Apple just went full retard.


My little experiment throwing Linux Mint on my MBP has also shown some of the other cracks in the Apple facade. The wireless card in this thing is really bad. When all other computers (Dell & Lenovo) are working fine, this one keeps disconnecting. It was the same when I ran OSX, that the Apple had problems with wifi, but OSX somehow tried to work through it by resetting the card (I assume automatically).


Now that I'm running Linux on it, I can actually get under the hood and see the mediocre hardware's performance problems.


It looks like the days of "Apple hardware is the best" are also gone.


For me, the honeymoon is over. Will not recommend Apple hardware to my computer novice friends anymore. I am the subject matter expert, and I can now say for a fact Windows wins. What a sad day.

Sep 19, 2012 1:24 AM in response to thawking78

I know how you feel. But I tried the latest Dell and Samsung and they're not worth anything either. Basically the problem is with you having upgraded an OS on your Mac, right? Been there, done that. Instead of lamenting the upgrade's slowdown, just bite the bullet, backup everything, "clean install" the OS (I recommend Mountain Lion, not Lion) and you'll never look back. I left it for too long thinking I have all my gazillion softwares, but with time machine, it was quite the cinch and now it's flowing as usual.


Net net: just do a clean install.

Sep 19, 2012 2:05 AM in response to Cyberpundit

Sorry Cyberpundit, no. The problem isn't in upgrading the OS.


Also I tried using Time Machine to go back to earlier versions of the OS, and included wiping the partition completely and reinstalling the OS.


Whatever this problem is, even the vanilla OS gets into this state once your MBP hardware breaks in whatever way triggers this problem. Obviously we lack the tools to determine what that is in OSX, but when I install Linux, I can use all my RAM, so it's definitely something in OSX.


I will not be using Mountain Lion or Lion. I have too many friends (literally ex Apple employees) who tried it and say it's a huge step backward. I bought the machine for a particular UI and particular usage pattern. Apple has lost us in more ways than one.

Sep 19, 2012 2:10 AM in response to timelessness

To each his own. I disagree that Mountain Lion is a step backward. My MBP from 2009 is flying with a fresh install of it. The hardware quality of Macs is still top of the line -- sorry, Dell or Samsung or Sony do not even come close.


If you want to use Linux because you enjoy it, sure, by all means use it. But the remark that Windows is better in performance, or especially that the hardware we get with Mac is not top of the line, is inaccurate. Macs still beat everything else out there in the market. It would be nice to have OSes upgrade more decently without such a remarkable performance degradation, but well.


Anyway, enjoy computing. To others reading this thread -- and I was vociferous not too long ago with my disdain about kernel_task too -- here's my simple advice. Do a clean install. Skip Lion altogether. Mountain Lion is superb (Snow Leopard was quite fast, but some of the functionality in ML is hard to go back from.)

Oct 11, 2012 1:11 PM in response to DChabot

Im not sure if someone in another post mentioned the fs_usage command- it allows you to see 'in real time' the processess that your computer is running. To use, open up terminal and at the prompt type 'sudo fs_usage' (minus the single quotes) -- you will be prompted to enter your admin password- immediately the terminal window will fill and you can see whats chewing up resouces, look for big blocks of repetition in the output. Or for a graphical U.I. open up 'Activity Monitor' and select the 'Memory' tab- the % of cpu is displayed for you.

Nov 26, 2012 3:16 AM in response to timelessness

After having similar issues, I've just spent 2 days on and off with Apple Techs working through this. My issue was 2 fold, kernel_task was using 800mb of RAM (not as much as some examples Ive read here) but using 500% CPU. Now theoretically we know that's not possible but that's what it was showing in the Monitor.


After the Apple Techs couldn't give a straight answer as to what was happening, we decided to to erase the drive and re-install the OS and user data files only. We chose not to do a complete restore for fear of just restoring the problem whatever it may be. So far so good. After re-installing my apps from original disks RAM usage is back to 350MB and CPU back to ranging between 0 and 15% when running my usual Office / Mail / Safari / Adobe Reader day.


I personally think this might be related to a virus. My MBPS was working perfectly for 6 months before this problem started. I hadn't upgraded OS or anything like that and I wasn't really doing anything high powered, just spreadsheets, word, PowerPoint, some photos etc and all of a sudden the system just ground to a halt. It makes sense that with the growth in popularity of MAC it's more worthwhile for virus writers to start to run a muck here as well as PC.


Erasing disk and restoring only user data files and re-install apps from original sources has worked for me ( so far ).


Good luck everyone. I agree it's a shame the Apple have been silent on this one.

Mar 9, 2013 7:59 PM in response to apoorv03

Hi everyone,


I might have a found the problem for some of us. After a re-install of my system i was ok for a few days but then I was back to where I started. Then something broke my routine and things changed.


I moved from my office to travel and whilst I was on the road using my macbook I noticed things improved dramatically. The only obvious difference in what I was doing was that I was no longer connected to my external monitor (the apple 29" display).


When I got home I tested it out and sure enough, once I was reconnected to the monitor for a few hours my macbook then started to overheat and kernel_task went into overdrive again. I disconnected from the monitor, let the macbook cool down and then performance was back to perfect. I have now been using my macbook without the external display for months without a hiccup. I still need to take my display back for a refund, but problem solved; for me anyway.


This may not be exclusively attached to running an external display, but if you are running any other external devices that may be causing your macbook to overheat (or at least feel hotter then usual) try running without them and see how you go.


Good luck everyone, and I agree, apple have been useless with their advice in this regard.

Mar 28, 2013 7:28 PM in response to DChabot

i know this post is old but im having the same problem and my imac is not even 2mos old (late 2012 21.5 base model). Right now my RAM is reading 36 MB free, really! and making my mac run slow. The only apps open is safari, finder, activity monitor (AM). AM states kernal_task is using most of it, oper 800MB. umm im stumped, a premium computer acting like that anyway my fix for this is to download app 'Freememory' its free and keeps track a live track of RAM on menu bar next to date whenever my memory gets to low hit free memory and walla. But for a premium computer i shouldnt have to do that a brandnew computer at that, however it doesnt happen often and i do love my imac but my goodness thats seriously ******** any way its a easy fix.

kernel_task consumes a lot of RAM in early 2011 MBP, sometimes Finder too

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