More memory - less OOM situations
Posted Jun 19, 2010 1:52 UTC (Sat) by
giraffedata (subscriber, #1954)
In reply to:
More memory - less OOM situations by efexis
Parent article:
Another OOM killer rewrite
The old way to do this is with rlimits. I've always set rlimits on vsize of every process -- my default is half of real memory (there's a bunch of swap space in reserve too). Before Linux, rlimits (under a different name) were the norm, but on Linux the default is unlimited and I think I'm the only one who changes it.
Rlimits have a severe weakness in that a process just has to fork to get a whole fresh set of limits, but they do catch the common case of the single runaway process.
(
Log in to post comments)