Photoshop CS4 does not release RAM

IS
Posted By
Ideen_S
Feb 15, 2009
Views
392
Replies
11
Status
Closed
I run Photoshop CS4 on a Windows PC with 4GB. Even though I frequently "purge", Photoshop does not seem to be releasing RAM even when all files have been closed, often holding on to some 2GB RAM. Only when I terminate Photoshop, the RAM it grabbed is released. This means I would have to exit and relaunch Photoshop many times a day.

Any suggestions?

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

F
Freeagent
Feb 15, 2009
This is normal and designed behavior, to avoid memory fragmentation. The RAM will be reused.
J
Jim
Feb 15, 2009
wrote in message
This is normal and designed behavior, to avoid memory fragmentation. The RAM will be reused.

And, even if PS did release the RAM, the OS might not honor the request. Usually such cleanup only takes place when the program which requested the memory shuts down.

Jim
CC
Chris_Cox
Feb 15, 2009
And there is no need to exit and relaunch Photoshop – the RAM is reused.
RK
Rob_Keijzer
Feb 16, 2009
the RAM is reused

Yes but since PS claims the RAM (for very good reasons, I agree) it seems only available to PS itself, so sometimes a plug-in (like PTlens) reports that it doesn’t get the RAM it needs. Only one normal camera file is open.

After relaunching PS it works.

Sometimes RAM actually seems to get released within a session, why that happens, I don’t know.

I have no problem with PS working this way. I appreciate PS wants RAM that’s contiguous and thus doesn’t was the O/S to hand it out, but some parts of the workflow call for external plug-ins to join in.

Rob
JJ
John Joslin
Feb 16, 2009
I thought that was the reason for never allocating too much to PS in preferences.
BC
Bart_Cross
Feb 16, 2009
JJ: You are correct, and the OS will allocate more RAM to PS if it is required.
CC
Chris_Cox
Feb 16, 2009
Plugins have access to the RAM that Photoshop is using. They can tell Photoshop how much RAM they need, and Photoshop will free that. Or they can allocate buffers from within Photoshop’s RAM.

Most of the plugins we have seen that have problems running out of RAM fall into 2 categories:
1) those working on the whole image at once and can’t fit that into RAM
2) those that failed to read the Photoshop plugin SDK documentation on how to manage large buffers in RAM
MK
Michael Kalcevic
Feb 17, 2009
When it spikes up to 1.9GB of RAM usage, it is a problem.
CC
Chris_Cox
Feb 17, 2009
Michael – how is that a problem? Photoshop reuses all that memory, and plugins can use it as well.
MK
Michael Kalcevic
Feb 17, 2009
How is that Not a problem? With the amount of brush lag that I see, compared to CS3, there has to be an issue with the RAM usage.
CC
Chris_Cox
Feb 17, 2009
No, those probably aren’t related at all.

You’re seeing brush lag (not normal), and Photoshop using RAM up to the limit you set in preferences (very normal) and reusing that RAM (very normal).

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections