Alan Cox tip on preventing lockup due to overcommitment of memory

In this thread,

http://mail.google.com/mail/#label/IN.fedora/11994ec899eab000

I mentioned a lockup due to swap exhaustion and Alan Cox gave a good tip.

> resources are strained. If you leave firefox unattended whil it is
> hooked on to some web page that is running crap on your system, well,
> I guess you get what you deserve.

echo "2" >/proc/sys/vm/overcommit_memory

and your system will refuse to overallocate resources. You may need more
swap that way but as all the resource really does exist your computer
shouldn't do an impression of the rather analogous US housing market by
handing out more than exists and then finding it all in use.

About pauljohn

Paul E. Johnson is a Professor of Political Science at the University of Kansas. He is an avid Linux User, an adequate system administrator and C programmer, and humility is one of his greatest strengths.
This entry was posted in Linux. Bookmark the permalink.