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 7 of 15 last Next
  • by eww,

    eww eww Jul 31, 2011 5:02 AM in response to wyager
    Level 9 (52,994 points)
    Jul 31, 2011 5:02 AM in response to wyager

    So, the integrated graphics chipset seems to take up "wired" RAM, but is NOT part of kernel_task.

     

    If the caption below your Activity Monitor memory pie chart indicates a total of less than the full amount of RAM that is installed in your machine (e.g., in my case, it shows 3.75 GB instead of the 4GB that is installed), the difference is the RAM allocated to the integrated GPU. So that amount is excluded from all four RAM categories — active, inactive, wired and free — and not included in any of them.

  • by thawking78,

    thawking78 thawking78 Jul 31, 2011 8:56 AM in response to eww
    Level 1 (0 points)
    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).

  • by eww,

    eww eww Jul 31, 2011 9:05 AM in response to thawking78
    Level 9 (52,994 points)
    Jul 31, 2011 9:05 AM in response to thawking78

    You may be right. I don't have one of the new machines, and I'm not running Lion either (I haven't heard whether Lion changed this particular behavior.)

  • by wyager,

    wyager wyager Jul 31, 2011 11:06 AM in response to eww
    Level 1 (0 points)
    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.

  • by rtfromlondon,

    rtfromlondon rtfromlondon Aug 16, 2011 10:07 AM in response to wyager
    Level 1 (0 points)
    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.

  • by CT,

    CT CT Aug 16, 2011 9:58 AM in response to wyager
    Level 6 (17,883 points)
    Notebooks
    Aug 16, 2011 9:58 AM in response to wyager

    YOU come on.

     

    All the best,

     

    Apple

  • by wyager,

    wyager wyager Aug 16, 2011 2:53 PM in response to rtfromlondon
    Level 1 (0 points)
    Aug 16, 2011 2:53 PM in response to rtfromlondon

    @rtfromlondon

    My battery life is great.

    I assume you have gfxCardStatus, and that the integrated graphics are being used?

     

    Of course, the RAM is still a problem.

  • by deanspants,

    deanspants deanspants Aug 16, 2011 5:04 PM in response to DChabot
    Level 1 (0 points)
    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.

  • by wyager,

    wyager wyager Aug 16, 2011 7:37 PM in response to deanspants
    Level 1 (0 points)
    Aug 16, 2011 7:37 PM in response to deanspants

    We tried that-booting in 32 bit kernel barely puts a dent in the RAM usage (although it does make a difference).

     

     

    I really hope these new macbooks can handle 8GB sticks (for 16GB total). Apple advertised 8GB max, but they have been "conservative" with their specs before.

  • by eww,

    eww eww Aug 16, 2011 7:40 PM in response to wyager
    Level 9 (52,994 points)
    Aug 16, 2011 7:40 PM in response to wyager

    I really hope these new macbooks can handle 8GB sticks (for 16GB total).

     

    They can:

     

    http://eshop.macsales.com/shop/memory/Apple_MacBook_MacBook_Pro/Upgrade/DDR3_133 3MHz_SDRAM

  • by wyager,

    wyager wyager Aug 16, 2011 9:51 PM in response to eww
    Level 1 (0 points)
    Aug 16, 2011 9:51 PM in response to eww

    Absolutely awesome. Last time I checked, they only "theoretically possibly" worked with 16GB (and no one was actually selling it yet). Love how fast technology moves along.

     

    Once 16GB drops below $200, I'll stop complaining about k_t RAM usage. In the meantime...

  • by rtfromlondon,

    rtfromlondon rtfromlondon Aug 17, 2011 11:09 AM in response to DChabot
    Level 1 (0 points)
    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.

  • by wyager,

    wyager wyager Aug 17, 2011 2:31 PM in response to rtfromlondon
    Level 1 (0 points)
    Aug 17, 2011 2:31 PM in response to rtfromlondon

    So that didn't help your battery?

     

    I think others have tried clean installs to no avail.

  • by wyager,

    wyager wyager Sep 14, 2011 8:46 PM in response to wyager
    Level 1 (0 points)
    Sep 14, 2011 8:46 PM in response to wyager

    BTT... My K_T sometimes seems to run with less RAM usage lately, but not regularly.

  • by John P.,

    John P. John P. Sep 22, 2011 7:41 PM in response to DChabot
    Level 4 (1,161 points)
    Mac OS X
    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/

first Previous Page 7 of 15 last Next