mightymilk

Q: Lion - Memory Usage Problems

Why is Lion using all 4GB of RAM running Mail, Safari (2 tabs), and iTunes?  Snow Leopard was bad enough at handling memory, eating up every available byte and Lion seems to be arbitrarily using even more RAM.  Windows 7 has zero problems handling RAM, there's no reason OS X shouldn't be able handle memory properly.

 

Can someone explain what Apple is doing here?  I'm at a total loss.  For users who just need Safari, Mail, and iTunes... I guess this works.  But how am I expected to reliably run Logic, Final Cut, or Aperture with OS X using every available resource for Web Surfing, E-mail, and Music.  This is totally unacceptable for a multi-million dollar software company greated towards professionals as well as consumers.

 

The following responses are not acceptable by the way:

 

  • Buy more RAM  - I did that already, it will eat up 2/4/8GB, doesn't matter.  Not to mention Apple still sells numerous 2/4GB confirgurations.
  • Buy a newer/more powerful Mac - this is a improper handling of memory issue, not a hardware issue.

 

I'd really love some insight into this.  Thanks for reading.

MacBook Pro, Mac OS X (10.7), 13" (late-2009)

Posted on Jul 21, 2011 5:47 AM

Close

Q: Lion - Memory Usage Problems

  • All replies
  • Helpful answers

first Previous Page 49 of 64 last Next
  • by dkalchev,

    dkalchev dkalchev Mar 13, 2012 8:02 AM in response to Michelasso
    Level 1 (0 points)
    Mar 13, 2012 8:02 AM in response to Michelasso

    Michelasso wrote:

     

    Anyway I am surprised that R-C-R didn't correct you already: XNU, the OS X kernel, is not a FreeBSD kernel. It's an hybrid one. It consists on the Mach microkernel (to which the virtual memory belongs) with components from FreeBSD and the I/O kit for writing drivers. Thus I am afraid that what you know about FreeBSD memory management must be revised when talking about OS X.

     

    I already know this. Which is why I try to dwell as little as possible into specifics and direct comparisons.

    In any case, the differences in the VM principles are not that significant. Terminology does differ though.

     

    You did your purge test, got some results. What is your explanation of those observations?

     

    Do you still believe that buffer memory is speculative memory? What was freed form the 'active' memory?

  • by Michelasso,

    Michelasso Michelasso Mar 13, 2012 8:34 AM in response to dkalchev
    Level 1 (88 points)
    Mac OS X
    Mar 13, 2012 8:34 AM in response to dkalchev

    dkalchev wrote:

     

    You did your purge test, got some results. What is your explanation of those observations?

     

    1. Do you still believe that buffer memory is speculative memory?

    2. What was freed form the 'active' memory?

    1. Yes, or at least it fits with everything I understood now. Also I couldn't find any mention of the UCB in the virtual memory source code.

    2. All pages freed from active, speculative and inactive memory become free pages as reported by vm_stat. Just sum the deltas and you'll get the numbers.

     

    It is left to understand what purge is really supposed to do at this point. How and why it frees a page instead of another. But basically in all my tests what gets freed the most is the speculative memory. That usually goes down to a minimum of 4-5000 pages. The kernel doesn't allow it to go down a well defined limit anyway. I just can't find the "purge" source code, That would explain a bit (my programming skills are rusty).

  • by dkalchev,

    dkalchev dkalchev Mar 13, 2012 9:02 AM in response to Michelasso
    Level 1 (0 points)
    Mar 13, 2012 9:02 AM in response to Michelasso
  • by R C-R,

    R C-R R C-R Mar 13, 2012 1:26 PM in response to Michelasso
    Level 6 (17,700 points)
    Mar 13, 2012 1:26 PM in response to Michelasso

    Michelasso wrote:

    Like everything Google must be used with a grain of salt. One has to select the relevant information.It did happen to me to find technotes or patch changelogs that talked about memory leaks in a couple of applications. As it is common knowledge, for example, that AdBlock and Safari for OS X are memory hungry.

    The problem with this kind of so-called common knowledge is "memory hungry" is a vague term that can mean anything from a genuine memory leak to the amount of memory necessary for acceptable performance or to implement some desirable feature.

     

    Often, it means nothing more that something uses more memory than something else only superficially similar. That kind of apples to oranges comparison is quite common but doesn't really qualify as knowledge.

  • by Michelasso,

    Michelasso Michelasso Mar 13, 2012 4:17 PM in response to R C-R
    Level 1 (88 points)
    Mac OS X
    Mar 13, 2012 4:17 PM in response to R C-R

    R C-R wrote:

     

    The problem with this kind of so-called common knowledge is "memory hungry" is a vague term that can mean anything from a genuine memory leak to the amount of memory necessary for acceptable performance or to implement some desirable feature.

     

    Often, it means nothing more that something uses more memory than something else only superficially similar. That kind of apples to oranges comparison is quite common but doesn't really qualify as knowledge.

    Sure, It is true though that after installing Lion I (and others) noticed that Safari was eating a lot of memory. Checking around many suggested that AdBlock was one of the causes. I disabled AdBlock and Safari started to use noticeably less memory. Also it is known that Safari, not like Chrome for example, doesn't release memory closing the tabs. Which means that once it has eaten the memory it can only want more. Which is hunger to me (leading to famine in the third world Macs like mine).

  • by jamesb78,

    jamesb78 jamesb78 Mar 20, 2012 10:03 AM in response to mightymilk
    Level 1 (0 points)
    Mar 20, 2012 10:03 AM in response to mightymilk

    Hi John Kitchen - just thinking about upgrading my late-2009 Macbook Pro to 8GB RAM, from 4GB. I'm using Lion. Did you notice a decent bump in speed? Is it worth it?

     

    Thanks

  • by terifromwinchester,

    terifromwinchester terifromwinchester Mar 20, 2012 10:45 AM in response to mightymilk
    Level 1 (5 points)
    Mar 20, 2012 10:45 AM in response to mightymilk

    John, I have a 2009 MBP and upgraded to 8GM ram and it helped a lot. Also, by disconnecting and UNinstalling Carbonite helped a ton. That was sucking the life out of the computer. Now, I am back to an external drive for backups.

  • by LInczs,

    LInczs LInczs Mar 20, 2012 11:21 AM in response to terifromwinchester
    Level 1 (0 points)
    Mar 20, 2012 11:21 AM in response to terifromwinchester

    I have had similar issues with BackBlaze cloud backup using enormous processing power in Lion, at the expense of greatly slowing down everything else. I do not know whether this is a Lion problem or a third-party problem, but I can say without question that under Snow Leopard, I did not have this issue.

  • by R C-R,

    R C-R R C-R Mar 21, 2012 6:52 AM in response to LInczs
    Level 6 (17,700 points)
    Mar 21, 2012 6:52 AM in response to LInczs

    LInczs wrote regarding BackBlaze:

     

    I do not know whether this is a Lion problem or a third-party problem, but I can say without question that under Snow Leopard, I did not have this issue.

    When something works without problems with one OS version but not the next, it often means it needs to be updated to a version compatible with the later OS. It also can mean that one or more of the the installed version's support files (like preferences) have been damaged or corrupted.

     

    So to resolve such issues start by making sure you have the latest version of the software installed on your Mac. If it includes an uninstaller, it is sometimes useful to first uninstall it & then reinstall the newest version. If you know where its preference file(s) are located, it can also help to move them to the desktop & relaunch the software.

     

    If all else fails, it is a good idea to contact the developer to see if there are any known issues or suggested procedures to resolve the issue.

  • by Paul Heslop,

    Paul Heslop Paul Heslop Mar 30, 2012 9:44 PM in response to mightymilk
    Level 1 (110 points)
    Mar 30, 2012 9:44 PM in response to mightymilk

    I've not read all 49 pages, just the last few, but after installing ClamXav, I noticed that my free memory would be zero in the morning (after having run a full scan at 0200). I have a 2011 iMac with 16 GB RAM. Posted on their forum and got some useful links, not the least of which suggested that disk I/O operations, seems even just a big "read" task (such as an AV scan) can consume free memory. Which seems odd.

     

    Using Bresink's Hardware Monitor, I've been logging memory use. Here's free/inactive during creation of a data DVD using Toast:

     

    MemUse.png

  • by Paul Heslop,

    Paul Heslop Paul Heslop Mar 30, 2012 10:00 PM in response to mightymilk
    Level 1 (110 points)
    Mar 30, 2012 10:00 PM in response to mightymilk

    Forgot to add that I don't feel my 16GB system should be paging out (to an SSD) when I have 14GB "inactive memory".

     

    Here's the link to a useful article:

     

    http://sg80bab.blogspot.co.uk/2007/03/is-my-mac-using-too-much-memory.html

  • by mightymilk,

    mightymilk mightymilk Apr 5, 2012 6:33 AM in response to Paul Heslop
    Level 1 (24 points)
    Notebooks
    Apr 5, 2012 6:33 AM in response to Paul Heslop

    Haven't been to this thread in a while, just thought I'd weigh in again.

     

    I'm noticing significant improvements in memory usage under Lion lately.  The Inactive RAM pool is much smaller on a consistant basis and performance has improved with less system hangs.  This is a few days of regular usage, including Mail, Safari, iTunes, iCal, Final Cut X, & Logic.

    Screen-Shot-2012-04-05-at-9.14.33-AM.png

     

     

    For my purposes, Aperture is the only application left that continues to grab memory and push it into the Inactive pool without ever releasing it back to the Free pool... even after closing the application.  30 minutes under Aperture and my Inactive pool can easily grow to 4+GB, this is in stark contrast to Lightroom which uses only a few hundred MB and experiences less hangs.  Unfortunately I forgot to take a screen shot the last time it happened.

  • by Bobdc6,

    Bobdc6 Bobdc6 Apr 7, 2012 3:56 PM in response to mightymilk
    Level 1 (4 points)
    Apr 7, 2012 3:56 PM in response to mightymilk

    I just installed Lion, and while running Safari, my MacBook gets really hot, and the fan runs constantly, plus, my ram goes from 4g to 130meg.  My interim fix is to use Chrome.  I am not a tech, I just want it to work with minimal input on my part.  That's why I ditched Microsoft.  Come on Apple, FIX IT!

  • by Bobdc6,

    Bobdc6 Bobdc6 Apr 8, 2012 6:30 AM in response to Bobdc6
    Level 1 (4 points)
    Apr 8, 2012 6:30 AM in response to Bobdc6

    After 24 hrs of Chrome, I've picked up 1 gig of ram, the fans haven't come on once, and the heat is way down.  Works just like Safari used to.

  • by apache.87,

    apache.87 apache.87 Apr 12, 2012 3:36 AM in response to mightymilk
    Level 1 (0 points)
    Apr 12, 2012 3:36 AM in response to mightymilk

    Hi mightymilk. I'm going to be honest, I haven't read through all 49 pages here but I had a similar problem when I first upgraded to Lion from 10.5.8.

     

    Have you tried a complete reinstall of the OS? A copy NOT from your recovery drive?

     

    I took my macbook pro to a genius bar because I was getting a spinning beach ball constatly and they suggested there may have been a poblem with the install. I had all my data backed up so the genius installed Lion from his own stick, I restored my files and everything worked much much better

     

    Apparently it's possible to get something not writted properly during the install, so your recovery partition will also have this defect.

first Previous Page 49 of 64 last Next