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

Jul 23, 2011 5:56 PM in response to wyager

wyager wrote:


@masterkain_it


Running purge hourly just frees "inactive" memory, and sometimes a little "active". I use this command all the time, but it doesn't fix the problem with kernel_task. It also causes a freeze for a few seconds whenever used.


True, but so far I haven't been able to find any other solution to the kernel_task issue. I think it's just the way it is designed. In any case I purchased 8GB of RAM few minutes ago, hopefully all should be fine again.

Jul 24, 2011 2:31 PM in response to wyager

I don't pretend to understand the workings of the kernel, but it has been true ever since the 1980s that the more RAM you install in a Mac, the more RAM the operating system claims for its own use. I suspect that just as every version of Mac OS X has a minimum RAM requirement but runs better with more than the minimum, the kernel task at the heart of the OS probably has a minimum that it can get by with, but is happier with more when it can get it.

Jul 26, 2011 6:53 PM in response to eww

@eww



I noticed my kernel task running around 700MB, but I concur with what you've repeatedly said throughout this thread. I find no preformance issues. I just upgraded to 8GB of RAM kt using 700MB of real mem. I'm not complaining. I Googled kernel task and found this thread. I think if there are no performance issues with kernel task consuming a lot of RAM then this would appear to be normal behavior. Of course as you said the more RAM you install the more the OS will consume with no performance issues. Macs allocate whatever RAM it's need in an optimal way for performance. Always enjoy your input.


Joseph

Jul 26, 2011 7:50 PM in response to MacJoseph

@MacJoseph @eww OK, I absolutely do not understand either of your lines of reasoning.


If kernel_task benefited from 900 megs of RAM or whatever it shoots up to when you install more RAM, why aren't ours running painfully slowly? It's not like k_t suddenly starts doing more things when you install more RAM.


Why isn't k_t doing the same thing on other apple products? If k_t can run on under 200 megs on another apple product, why can't it do the same on these particular MBPs?


What could a non-buffering process possibly stand to gain by claiming RAM it doesn't need? K_t is not doing any heavy math, storing any significant amounts of data, or doing anything else that warrants using 500+ million bytes.


"Macs allocate whatever RAM it's need in an optimal way for performance."-This is absolute BS. First, the Mac does nothing of the sort. It's up to the process to allocate or deallocate RAM as needed, not the computer. Second, OS X RAM management is definitely not great. The OS would often rather create virtual active memory than deallocate real inactive memory


Does anyone have a shred of proof that performance actually does go up with more RAM consumption? All I've heard so far is guesswork.

Jul 26, 2011 9:57 PM in response to wyager

I got a refurbished 15" 2011 Macbook Pro yesterday, the 2.0 Ghz model, and this was pretty much the first thing I noticed — I opened up Parallels and it ran sluggishly, so I checked the Activity Monitor and noticed that kernel_task was eating 1GB of RAM. Quitting out of Parallels reduced the amount to about 500 MB, and from a cold boot it's about 450 MB. But on reflection, I'm wondering — is it perhaps the RAM that's set aside for the integrated GPU? That uses system memory, doesn't it?


My old computer — a 2.2Ghz Santa Rosa era Macbook Pro — never used anywhere this much memory for kernel_task, but then, it had a discrete GPU only.

Jul 28, 2011 8:38 PM in response to DChabot

I am having the same issue. And a clean install of Snow Leopard a few months ago did not solve the issue at all. The memory usage of kernel_task was about 700MB up on boot.


Now I am running Lion, it is over 900MB upon boot. This is ridiculous. Also Safari is a RAM hog as well. Pretty fast I run out of memory even though I have 8GB of RAM.


I am not sure whether there is something wrong with Mac OS X but this is definitely affecting other program's performance.

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.