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

Oct 28, 2011 4:33 AM in response to DChabot

Are you guys taking into account the Virtual Memory that is being used as well? Because that really adds up, and then you get high "page outs" (anything > 100mb is high) and it's really going to slow your machine down.


Fortunately my kernel_task (or unfortunately?) mine is pretty much all active in memory... which means, whatever it's doing, it thinks it's important.


I'm running a mid-2010 MBP with 8gb, 10.6.8. fyi.


User uploaded file

Nov 10, 2011 10:05 PM in response to DChabot

Just for everyone's info ...


I just received a 17" MBP with a 2.5Hz i7 CPU this week. Last night I upgraded it by adding a 16G OWC memory kit.


As I type I have 3 users logged in, multiple copies of XCode running, Simulator and Aperture running, mutltiple Tower, Email, Safari and other software all running. Kernel_task is taken 1.08G of RAM and ticking over at about 1.5% CPU, probably due to iStat menus and Activity Monitor. In all, Activity Monitor reports 8.67G of RAM being used.


And it's running beautifully. I was a little concerned at the memory usage of the kernel which is how I got to this thread, but as the machine is still screamingly fast - not that concerned.


So it does appear that the kernel will scale in relation to how much raw RAM you have, based on my results vs others mentioned here.

Nov 15, 2011 8:48 PM in response to DChabot

I have an iMac 27" 3.4GHz i7 and 13" MBA 2.8GHz i7. They are both running 10.7.2. My MBA has 4GB and because I'm running out of memory on my iMac, I just upgraded it from 4GB to 12GB. Now myu iMac is running much much faster. But I notice that the kernel_task uses up much more Read Mem on my iMac. It is at 896.2MB while on the MBA is only 347.4MB. Looking at other process here is what I see


iMac MBA

Firebox 160.9MB 77.4MB

Chrome 83.3MB 44.9MB

MS Word 96.8MB 52.8MB

Excel 79.7MB 39.6MB

Dec 12, 2011 2:20 PM in response to rodrigocbv

@rodrigocbv - Now that does sound odd. I did a similar thing, I upgraded from a early 2008 pre-unibody Macbook Pro 17 with a core 2 duo at 2.66Ghz and 4G RAM, to a 2011 core i7 @2.5GHz with 4G RAM and then swapped in 16G RAM a week later.


The new machine was noticibly quicker than the old, even with the same memory. Given that memory limits how much you can run at one time without swapping and therefore only effects speed when you reach capcacity, that newer machine should be much quicker. With the way modern OS's work, limited memory will slow a machine by swapping to the hard drive a lot, but not freeze it.


If your MBP is freezing I would suggest that there is a different problem. Freezes are an indicator of a more serious software or hardware problem. For example, in my pre-Apple days I built a new machine which would randomly freeze for no reason. After a couple of days I ran an extensive range of RAM checking sotware which found a bad RAM chip. I replaced the RAM and the machine ran beautifully afer that. I've seen similar things from faulty video cards or miss-matched drivers and hardware.


I would suggest running some extensive diagnostics if you are comfortable dealing with hardware at that level, or take the machine into an Apple store for testing.


Your new MBP should not be freezing up.

Dec 12, 2011 4:18 PM in response to drekka

@drekka - Thanks for the reply. The machine is indeed faster when there's enough free memory. However, I used to run up to 4 different applications with my old mac without a ANY problem. With the new one, I run the same applications (Skype, Excel, iTunes and Chrome) at the same time but there's not enough memory. The system becomes noticeably slow.

I'll probably increase the memory to 8Gb soon but I find it strange that the performance is worse with a supposidely better machine.

Dec 28, 2011 8:41 AM in response to cupofnoise

Hey cupofnoise, it's not a Lion issue per se — or, at least, the RAM usage that people in this thread are experiencing isn't, because there's plenty of Snow Leopard users amongst them (personally, I'm running Snow Leopard on an early 2011 MacBook Pro). I'm still sticking to the theory that it's the integrated graphics — I installed 8GB of RAM and noticed that kernel_task memory usage went up further afterwards, which seems to make sense as the integrated chip uses more RAM if you have 8GB on board (512MB instead of 384MB).

Jan 14, 2012 9:57 AM in response to cupofnoise

i have a mid 10 mbp that i just increased from 4 to 8gb. everything is running ok but i noticed that k_t is now using 400+mb upon boot and right now with 2 browsers open its tat ~600. before the ram upgrade it wasnt that high, in fact firefox was usually at the top of the list of ram hogs. is it just my os(lion before and after upgrade) taking up more ram in proportion with the increase?


edit**

i honestly don't know what im talking about, just trying to keep my mac healthy 🙂

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 ID.