You don't need to do anything to manage RAM. Mac OS X does that automatically, and does it well. You just need to understand it better:How do I get OS X to free up inactive RAM? I have 8gb of RAM and I am using 1.7 GB of swap but I have 2.11 GB of inactive memory and 511 MB of free memory. That seems weird.
It matters if the swap is page-ins or page-outs, but the bottom line is stated in the first part of that article:I read that article, but I don't understand why I still have swap being used when I have inactive memory. Wouldn't it make sense for the memory in the swap file to replace the inactive? Or does the swap memory sort of function like inactive memory as well, and is just there in case I re-open a recently use program.
You're better off just ignoring it and let Mac OS X do its job. There's nothing you can do to improve on it.Mac OS X has very efficient memory management. It will automatically allocate memory and adjust the contents of memory as needed.
It matters if the swap is page-ins or page-outs, but the bottom line is stated in the first part of that article:
You're better off just ignoring it and let Mac OS X do its job. There's nothing you can do to improve on it.
It matters if the swap is page-ins or page-outs
What matters is the number of page-outs you see. If it is high, you need more RAM.
If you want to free up that inactive RAM, run Repair Permissions. I have no idea why this works but it does, almost as good as a reboot. Make sure no applications are running first.
You don't have to repair permissions or do anything else. Mac OS X will manage your RAM without you doing anything. Just use your Mac and forget about watching RAM usage. If you're experiencing significant loss of performance, then address it. Otherwise, it's a waste of time to try to improve on the built-in memory management in Mac OS X. After all, it's not Windows!I'd rather not run repair permissions because a reboot is just as quick. Especially if I have to quit out of all applications first.
Sorry, I should've specified, I am witnessing page outs. I'll take all of your guys' advice and ignore it, especially because I don't feel any of the sluggishness, but it just feels odd that swap needs to be used with 8gb of RAM (when I haven't even done too much RAM intensive stuff lately). I guess if I'm not feeling sluggishness though, it's nothing to worry about.
First, relax.See that sort of reasoning is concerning me because I have 107k page outs and in iStat Pro my swap is 1.0gb/2.0gb (does that mean 1.0 gb of 2.0 gb is being occupied or I've had 2.0 gb of memory paged out?) with 8gb of RAM. I can't upgrade my RAM anymore with my Macbook Pro. Is it possible that OS X, when purging inactive memory puts in swap because that is quicker than not having it in memory at all?
I'd rather not run repair permissions because a reboot is just as quick. Especially if I have to quit out of all applications first.