Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

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 11, 2011 3:23 PM in response to wyager

kernel_task is not a regular process, it is a reporting task that represents specific kernel activities, such as allocating and releasing memory pages, task scheduling etc.


To my understanding (see apple documentation ) the amount of memory that you see in the Real Memory column of this particular process (kernel_task) includes memory pages that are releasable by the kernel (under a LRU policy) when required (by other processes).

If you add another column (Private Memory) in Activity Monitor you will actually find the memory that is allocated to that specific process alone. (in my case is 50 MB).

User uploaded file

On my machine, the CPU consumption of the kernel_task "process" and its threads averages at 3-4% which only started to happen after upgrading to 10.6.7. It is too high and in my opinion indicative that something is not going well, perhaps a kext is not functioning well. Curious to measure it after doing a clean install of Lion in the following days.

Jul 11, 2011 6:10 PM in response to rares.azoth

Sure, but it doesn't really plan out its ram use... it just drops whatever it's not using anymore (under LRU policy, like you said).


My kernel_task has 167 megs of private ram, and "only" 470 megs real memory. Our processes seem to be using RAM differently.


FYI, none of the loaded kexts on my computer seem to be using using more than a few megs of ram. Kextstat and USB Prober will tell you how much RAM each loaded kext is using.

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.