You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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:45 AM

Reply
957 replies

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

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

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). 😝

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.

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:


User uploaded file

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.

User uploaded file



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.

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.

Lion - Memory Usage Problems

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.