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 31, 2011 8:56 AM in response to eww

Yeah, that's always been my understanding in the past as to how it's worked. But my Activity Monitor shows a total of 4GB, which is why I'm thinking that for these new machines, the amount used by the Intel GPU is included as part of kernel_task (perhaps because it's allocated dynamically, and it would look strange for Activity Monitor's total RAM figure to change).

Jul 31, 2011 11:06 AM in response to eww

My laptop shows 4.00GB… And my friend's older macbook shows 2.00GB. It's been that way since I had it, and IIRC it was the same on my very old macbook. Like I said, the difference between kernel_task and total wired is just over what the graphics chipset is assigned. Plus, his kernel_task is barely larger than what his graphics chipset uses, so that really only leaves room for graphics RAM in the rest of the wired memory.

Aug 16, 2011 10:07 AM in response to wyager

Hmm. I've got all of these problems - ie MBP early 2011, 13", 2.7 GHz / 8GB.


My K_T is between ~500mb at launch, and up to ~800mb.


I disagree with some people that this is an "academic" chat. My battery life on this MBP is about 3hr max, even when no progs are running. That's really low. I can only believe that this is because so much memory is being taken by the K_T.


Did we come to any conclusion, other than to ignore it (ie Kappy's reply)? If he's right, then I'm starting from zero to understand why my battery (Cycle Count: 84 / Condition: Normal) is lasting less than otherwise expected.


Bump.

Aug 16, 2011 5:04 PM in response to DChabot

(Sorry if this is a repeat answer.)


If the kernel on these newer machines is running in 64-bit mode, and on older machines in 32-bit mode, I think this is very likely the reason kernel_task is using up so much more RAM.


Because memory is typically addressable only in 64 bits on a 64-bit system (and 32 bits on a 32-bit system), any reference to an address in memory is now twice as large. I've had plenty of folks try to tell me that the 64-bit equivalent of a 32-bit app won't be or run much larger, but this is simply not the case in the (completely anecdotal) tests I've done.


I think most people would say the big advantage of 64-bit over 32-bit is that it allows the system to directly address more than 4GB of RAM. This should make addressing memory simpler and faster, and I won't disagree with that. But it still requires twice the RAM to store said memory address.


This is a simplification of the issue, and there may be differences betwen the kernel process and other processes I'm not taking into account, so caveat emptor.


This 64-bit issue is not at all unique to Mac, so don't get too upset at Apple about it. I wish all the operating system vendors would be more up front about the likelihood of a 64-bit OS requiring more physical RAM. Apple sets pre-delivery RAM upgrades at ridiculously high prices, but I wonder if it will backfire for them as customers slowly get frustrated with less-than-stellar performance for unknown reasons.

Aug 17, 2011 11:09 AM in response to DChabot

@ wyager - yup, now using gfxCardStatus (hat-tip to you). Running as "i", of course.


And yup, RAM def a prob.


Question - if I were to do a backup and then totally wipe my hard disk, what sort of kernel_task would I get if I were to be running Snow Leopard / Lion? Presumably this would be high-ish?


I went to see a Genius - this was his suggestion, that way I could see if it was hardware related, or poss something to do with the different software / files on my machine.

Sep 22, 2011 7:41 PM in response to DChabot

I, too, noticed this. I am running 15" 2.2Ghz i7 w/ 8GB RAM..... kernel_task hovers anywhere between 400-800MB, seen it as high as 900MB before. My guess is this is the VRAM for the integrated GPU...

Intel HD Graphics 3000 allocates a base amount of 384 MB for video and processes at startup. For example, a MacBook Pro (13-inch, Early 2011) with 4 GB of RAM installed has 3.7 GB of memory available to Mac OS X and applications (4096-384=3712). For portables that have been upgraded to 8 GB of RAM, the Intel HD Graphics 3000 will allocate 512 MB of system memory instead of 384 MB. For example, a MacBook Pro (15-inch, Early 2011) with 8 GB of RAM has 7.6 GB of available memory (8192-512=7680)


Source: http://support.apple.com/kb/ht3246


"While some of the kernel_task services will not unload when you quit the processes that have started them, others will, especially if they are managing hardware in the system. For instance, on systems with multiple GPUs, if you use the onboard GPU, then you will see an increase in RAM usage by the kernel_task, but unlike some applications services, if you switch graphics processing back to the dedicated GPU, then the kernel_task will relinquish the RAM it was using for video memory."


Source: http://reviews.cnet.com/8301-13727_7-20091848-263/kernel-task-taking-up-ram-in-o s-x/

Sep 22, 2011 7:45 PM in response to JohnBradshaw

Subtract the RAM used by Kernel_task from your wired memory. Is it equal to or greater than the RAM allocated to the integrated graphics? Mine always is. I think the graphics RAM is part of wired memory, but NOT part of K_t.



ETA:

looks like you added to your post.

When I turn off integrated graphics, K_t's RAM usage does NOT go down. That article is incorrect, at least for this situation.

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.