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

Tons of page outs with 2GB RAM and 500MB inactive memory

I'm trying to figure out why my machine always has so many page outs.

I understand the theory of inactive memory, and it sounds great. My problem is that inactive memory just seems to sit there saving itself at the expense of using virtual memory instead.

Looking at Activity Monitor a couple hours after I start working, I almost always have between 500MB and 1GB of "Inactive" memory, 25MB or so of "Free" memory, and about 50% page outs. RIght now it's 120,000 page ins to 60,000 page outs.

I'm a graphic designer and use a lot of programs, but none of them are using too much real memory right now. Photoshop for instance is allowed up to 1.3GB of memory in its preferences, but is currently only using 400MB real (1GB virtual).

Why isn't my machine using the inactive memory rather than paging out to virtual memory? These excessive page outs cause real slow down.

I know this topic has been covered, but I wasn't able to find any specific answers in relation to excessive page outs when plenty of memory is available. Any help would be greatly appreciated.

17" 2.33GHZ Core 2 Duo, Mac OS X (10.4.9)

Posted on Apr 20, 2007 9:06 AM

Reply
8 replies

Apr 20, 2007 9:26 AM in response to Ryan Sommers

User uploaded filehaving applications open, whether they're doing anything or not require RAM and the more applications you have open the more RAM that is utilised for often no good reason.

Additionally, by having many open applications you run into RAM fragmentation issues. So just because there's RAM being unused does not make it readily available. The larger the applications and their RAM requirements be bigger this problem becomes.

I would simply reduce the number of open applications you have at any one time. Your RAM is a limited resource and for best perforamance it's best to use it wisely. Just because you "can" do something doesn't mean you should.

You should also consider upgrading to 3GB RAM.

Apr 20, 2007 10:49 AM in response to Ryan Sommers

Page-outs are not bad unless accompanied by an equal number of page-ins in a short period of time. Ideally, your machine ought to page-out stale memory pages (i.e., those that have been allocated but since gone untouched for a while) as much as possible.

You can load a large app, but the majority of the app may never be accessed. For example, if you use something like Safari, but never the RSS features, the whole RSS support part will load, initilize, and never be touched. If the machine's otherwise idle, it might as well move that to disk and keep RAM as free as possible. If you exit Safari without ever touching RSS, the paged out pages are freed in-place.

Paging in an out is only adverse when done under load. Preemptory page-outs should increase the overall performance of a machine if it isn't already under high load.

Apr 20, 2007 12:18 PM in response to J D McIninch

I too have the same problem... I think. I have 1GB of RAM in my MacBook Pro C2D and right now I only have 15.37MB Free. I only have a few apps open too. After a restart I have something like 800MB free. After working for an hour or so it is down to almost nothing! I can close out all apps and it never goes back to 800MB free unless I restart. Any ideas? When I am down to 15MB my computer will run really slow at times.

Apr 20, 2007 12:36 PM in response to J D McIninch

That makes sense, and makes it hard to argue for a "fix".

My machine definitely feels slow as soon as it starts to page out. And I don't remember having this issue on my Powerbook G4 1.5Ghz with 2GB RAM... But then again, how good is my own memory?

When in the above situation, I can keep a minimum number of applications open. But when I open an application, since "Free" memory is already so low, it seems to start using inactive memory about as fast as it's paging out. So it ends up taking longer than it should to open, and inactive memory seems to be protected against use and lets this new application just keep paging out.

I can't pretend to know all the details of how OS X handles memory, but it seems like in this situation, it should be looking at the 700MB of inactive memory I have as ripe pickings for the newly opened application that needs it. If I closed an application, I'm not planning to use it again real soon, and would much rather that inactive memory be allocated to this new application I'd really, really like to use as fast as I should be able to.

Anyway, I know I can't change the underlying architecture of how the OS swaps memory, but man... It just seems like 2GB of memory should be faster.

I don't see how people can post on here that they almost never have any page outs, while I'm suffering at 83% page outs vs page ins right now. On to upgrading to that magical third GB I guess...

Apr 20, 2007 1:10 PM in response to Ryan Sommers

I have a ton of page outs on my MacBook Pro too! I just checked my other computers and they all have 0 page outs. What exactly is a page out? Is it bad?

Sorry... i figured it out. It is when all your memory is used up and it draws from the hard drive.

There is definitely something wrong with my setup here. I am not using all my RAM right nowI have one app open and only 147MB left!

Tons of page outs with 2GB RAM and 500MB inactive memory

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