DChabot

Q: 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

Close

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

  • All replies
  • Helpful answers

first Previous Page 4 of 15 last Next
  • by eww,

    eww eww Jul 22, 2011 7:12 AM in response to rodknocker
    Level 9 (52,994 points)
    Jul 22, 2011 7:12 AM in response to rodknocker

    For me it looks like this: The more RAM i install, the more ram takes the kernel_task

     

    Yes, that has always been true. Just as running more applications benefits from more RAM, so does the OS.

  • by wyager,

    wyager wyager Jul 22, 2011 1:38 PM in response to rodknocker
    Level 1 (0 points)
    Jul 22, 2011 1:38 PM in response to rodknocker

    There's something... 390 megs on boot in 32-bit, and 460 megs on boot in 64-bit

     

    @eww

    Why in the world would the kernel allocate more memory than it needs? There would be no tangible performance benefits for over-allocating, especially when the kernel isn't doing any complex, high speed math.

  • by masterkain_it,

    masterkain_it masterkain_it Jul 23, 2011 4:48 PM in response to DChabot
    Level 1 (0 points)
    Jul 23, 2011 4:48 PM in response to DChabot
  • by wyager,

    wyager wyager Jul 23, 2011 5:53 PM in response to masterkain_it
    Level 1 (0 points)
    Jul 23, 2011 5:53 PM in response to masterkain_it

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

  • by masterkain_it,

    masterkain_it masterkain_it Jul 23, 2011 5:56 PM in response to wyager
    Level 1 (0 points)
    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.

  • by rodknocker,

    rodknocker rodknocker Jul 24, 2011 12:00 AM in response to masterkain_it
    Level 1 (5 points)
    Jul 24, 2011 12:00 AM in response to masterkain_it

    But adding more RAM doesn't really fixed it.

    The kernel_task used (with 8 GB RAM) yesterday over 1 GB RAM.

     

    And normally it is around 900 MB.

  • by eww,

    eww eww Jul 24, 2011 2:31 PM in response to wyager
    Level 9 (52,994 points)
    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.

  • by rodknocker,

    rodknocker rodknocker Jul 25, 2011 4:49 PM in response to wyager
    Level 1 (5 points)
    Jul 25, 2011 4:49 PM in response to wyager

    Try to disable "Auto resume".

     

    It seems that the ram usage is now no longer so extreme, like before.

  • by wyager,

    wyager wyager Jul 25, 2011 10:47 PM in response to rodknocker
    Level 1 (0 points)
    Jul 25, 2011 10:47 PM in response to rodknocker

    That doesn't do anything for me. I already disabled it, auto resume is annoying as ****.

  • by MacJoseph,

    MacJoseph MacJoseph Jul 26, 2011 6:53 PM in response to eww
    Level 3 (595 points)
    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

  • by wyager,

    wyager wyager Jul 26, 2011 7:50 PM in response to MacJoseph
    Level 1 (0 points)
    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.

  • by thawking78,

    thawking78 thawking78 Jul 26, 2011 9:57 PM in response to wyager
    Level 1 (0 points)
    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.

  • by wyager,

    wyager wyager Jul 26, 2011 10:49 PM in response to thawking78
    Level 1 (0 points)
    Jul 26, 2011 10:49 PM in response to thawking78

    My old macbook had an integrated GPU, I never even noticed kernel_task and I always sorted processes by RAM or CPU. So I doubt it. If it is, though, that usage should go away once the discrete GPU is used...

  • by rodknocker,

    rodknocker rodknocker Jul 27, 2011 12:14 AM in response to wyager
    Level 1 (5 points)
    Jul 27, 2011 12:14 AM in response to wyager

    I've been thinking about the same a few days ago.

     

    I will use in the few days the AMD Radeon HD 6490M.

  • by rodknocker,

    rodknocker rodknocker Jul 28, 2011 2:03 PM in response to rodknocker
    Level 1 (5 points)
    Jul 28, 2011 2:03 PM in response to rodknocker

    Doesn't help. Stillt the same size

first Previous Page 4 of 15 last Next