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

Inactive memory is huge hit on performance

Up until Lion I had no problems with my Macbook Pro 2010 with 4 GB of RAM, even while running Fusion with a Windows virtual machine.

After Lion (why did I upgrade....) I already have made a 8 GB upgrade because using Fusion became almost impossible.


Right now, even with 8 GB of RAMs I have poor performance. The memory usage keeps increasing until there is only 50 MB of free ram and 4 GB of inactive memory, and the lag and beach balls begin all over the place. They disappear if I free enough RAM to get it to 300 MB so this is a clear memory management issue.


And please don't say "Don't worry about inactive memory" and "Free memory is wasted memory". If that were true I wouldn't be getting beach balls all over the place. There is something very wrong with Lion memory management, inactive memory isn't being properly managed and Apple really needs to do something about it. Getting low memory problems with 8 GBs is ridiculous.


Is anyone experiencing similar problems? If this keeps up, my next notebook won't be running MacOS.

MacBook Pro, Mac OS X (10.7.1)

Posted on Jan 5, 2012 12:50 AM

Reply
148 replies

Aug 22, 2013 5:56 PM in response to onetakewonder

"I don't recall installing the 'developer tool' in order to do so. How would I go about doing that?"

Developer tools is in the App Store as "Xcode" it's free and that's how you get the command line tool purge


"Inactive Ram is memory that is available to any program that requests it, just as free Ram is," Yeah that's the thoeory; we all know that. Problem is in practice a fair number of us are seeing beach balls and a hight voulme of page outs when we have GBs of "Inactive" RAM i.e rather than using the Inactive RAM on the OS is choosing to use the HD for memory which is a huge hit on performance for those of us not on SSDs

Aug 22, 2013 7:24 PM in response to Norm Fox

What happens here is, after terminal->purge the inactive starts at once to grow and I think @ more than 4k a second, with all processes idle. typing now: firefox will cause the inactive to start eating more. I have Cubase connected to VE Pro and playback will start the blue to eat more memory.


It's going to be hard to start pointing fingers at 'third-party apps' I think. I bet I see this behavior using 'finder'. The issue is, I believe with 24 GB of physical memory I should not get a page out. Now, I don't get them until a certain amount of this blue section appears, ie., before I am in actual jeopardy vis a vis real memory. Typically the reason for this is 'inactive memory'. I took a nap today and inactive had grown to over 4GB in that time.


I assumed that this blue area would be distributed, ultimately, but I found this to be not_true. Ultimately I would have to quit everything and reboot, before learning of 'purge'.


'Free memory' does not work here. The 'purge' command works, so this is our answer. This is not a new to Mountain Lion thing, I'm on Snow Leopard.

Aug 23, 2013 5:36 AM in response to notevenhardly

I believe it might be against the rules on this site so i won't explain how to do it, but I have 16 GB of RAM on my mini and after some careful monitoring I eventually opted to simply disable paging. My main "memory hungry" application is VMWare so I have more control over its appetite and this has worked out quite well over the past year.

Another problem I was having was that a few programs seemed intent on swapping everything to disk and without a hybrid drive (on one machine) sometimes the OS would simply never be done swapping back to memory and I'd have to cold reboot it if I left it alone overnight.


Of course the Inactive memory still does its thing but it has never been a performance issue since, where performance is stellar no matter the distribution of memory; could it be that in some cases rather than free up Inactive RAM, or rather before doing so, the OS might encourage paging to disk if it can?

Aug 23, 2013 6:39 AM in response to notevenhardly

After more digging, I found BackBlaze the culprit in my case. Whenever it starts a backup, the inactive memory grows by 4k a second until it consumes all but 70 meg of memory. At this point, the machine is pretty much unusable.


While the purge command works for a while, as long as BB is active, the same thing happens. And yes, I've tried the fix on BB's site related to Spotlight.

Inactive memory is huge hit on performance

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