Inactive memory - I want to clear it.

I have a 2010 macbook pro with 6 gigs of RAM.

WHAT I KNOW: that inactive memory is the "same" as active memory; that inactive memory is basically cached information that can quickly be replaced when needed; that the system automatically regulates inactive and active memory.

Well that´s peachy, but it still causes problems.

THE SITUATION: I am a graphic designer, which means that I use photoshop a lot. Part of my job is the creation of gigantic publicity images which take up a lot of ram memory.

Lets suppose I make giant image A, save it, and then I close it. I make giant image B, save it, and close it. I make giant image C, save it, and close it. At this point, I have all my free memory taken up, and only have inactive memory left. Well, when I go to open up giant image A, it takes forever to load (10 to 20 minutes) and the computer slows to a crawl - even though there are no images or any other memory sucking programs open.

Or lets say that I have giant image A open, but I need to open giant image B and C. Same problem. Since I have no free memory, the system slows to a crawl. What has been my remedy? Force close photoshop, and reopen it. Upon doing this I have a ton of free memory, I can open images A, B, and/or C at the same time and they load at lightning speed (1 to 2 minutes, versus the 10 to 20 minute wait when my computer is relying on inactive memory).

WHAT I NEED: It is easy to say that this is all Adobe´s fault, or that the system´s regulation of memory is vastly superior to Windows, but that isn´t going to help me. What I need is an application, or technique where I can clear as much inactive memory as possible.

This is not a circumstance where I don´t understand what´s happening. I upgraded from 4 gigs of RAM to 6, and while the upgrade has helped it is only relieving a symptom of the problem and not the cause. In my line of work, I need to be able to work quickly and not have to rely on whether my system knows when to replace cached information.

macbook pro, Mac OS X (10.6.4), 6 gigs RAM

Posted on Sep 30, 2010 7:07 AM

Reply
8 replies

Sep 30, 2010 7:25 AM in response to Eldardoamarillo

OK, the operating system will utilize inactive memory when it sees fit:

http://developer.apple.com/library/mac/#documentation/Performance/Conceptual/Man agingMemory/Articles/AboutMemory.html

If that doesn't solve your problem.
The current MacBook Pro supports up to 8 GB of RAM. The MacBook Pro did have a newer release in 2010 on April 13, 2010. Even the mid-2009 has capacity up to 8 GB of RAM. So my question is, why didn't you upgrade to 8 GB of RAM on your machine?

See my FAQ on RAM as well*:

http://www.macmaps.com/badram.html

- * Links to my pages may give me compensation.

Sep 30, 2010 7:48 AM in response to a brody

I didn´t upgrade to 8 gigs of ram because I have an imac from 2007 with 4 gigs that does just fine. I needed a laptop and so decided on the macbook pro. As the macbook is newer, I imagined that it would go faster. I didn´t take into account that the new 10.6 system would need more memory, and that Adobe CS 5 would need much more memory than Adobe CS 4 - so I upgraded the memory a bit to make up for the difference.

I could buy even MORE memory, but it isn´t reasonable that a computer that´s 3 years old should be faster than the newest model professional laptop with the newest system and the newest applications. What´s more, I do not NEED more memory as the images I need to edit load very quickly whenever I free up inactive memory by force quitting photoshop. The fact that the images load quickly when there´s free memory, and slowly when there´s only inactive memory is proof that the RAM memory regulation is ineffective.

I do admit that this problem only occurs when I am creating large high quality images, and that memory regulation is not an issue 70% of the time. BUT since I´ve spent the last 2 weeks working on high quality images that measure 3x3 meters, I need a solution that will allow me to free up inactive memory.

Sep 30, 2010 1:00 PM in response to macjack

I am already accustomed to working with a scratchdisk and the performance settings in photoshop. It´s not so much a problem of photoshop needing memory - in fact, it doesn´t need more memory in reality. It´s more like the system (or possibly photoshop) caches the image information, and I do not want this at all. I´m fine with the system using inactive memory for programs, but for image information and file information I think it´s a waste of resources.

As for finding leaks with MallocDebug, this only really observes a program and shows you where you are having memory problems. From what I understand, it doesn´t really do much to fix the memory problem, or is at least very slow at doing so (so they tell me).

I´ve come across an application called iFreeMem.... could this work out?

Sep 30, 2010 1:10 PM in response to Eldardoamarillo

I'm always wary of utilities that act on system caches, including memory caches, because the cache is actually what lets the machine run faster, because it has something to refer back to that it does repeatedly. The description from their website says:

Maximum free memory can sometimes be better than half your memory filled with old cached files.


How does one determine those cache files are no longer needed, or being used? You may call an application that desires caches, only to find it can't get them. I've seen this happen, and worse, I've found applications and Finder launches fail to work after the cache is emptied. So be careful. Backup your data frequently if you want to use such a utility, in case it gets you when you don't want it to.

Sep 30, 2010 1:58 PM in response to Eldardoamarillo

I don't think Adobe caches data to main memory. I think they only use their own proprietary disk cache. If you give Photoshop too much system memory, it can cause the slowdowns you're seeing. Typically, it shouldn't be given more than about 60%. That being said, I solve the whole scratch disk/memory issue by installing an ExpressCard SSD and assigning Photoshop's scratch disk to it. Even with very large (500Mb+) files, my MBP doesn't bog down.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Inactive memory - I want to clear it.

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