On my macbook pro, I've disabled the dynamic_pager, and performance has improved a lot. I did it by running this

sudo launchtl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

The downside is that if I ever use more than 4GB of memory, my machine crashes. I keep the activity monitor memory usage icon open at all times to keep an eye on this. However, once in a while a process (usually Firefox/Firebug) will rapidly eat up all my memory (within a few seconds) and my machine will crash.

Is there any way to keep an automated watch on how much memory an application is using and force kill it immediately if it goes above a threshold?

Thanks for your help.

link|improve this question

57% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.