Taming the OOM killer
Posted Feb 6, 2009 1:38 UTC (Fri) by
brouhaha (subscriber, #1698)
In reply to:
Taming the OOM killer by dlang
Parent article:
Taming the OOM killer
The process should get a segfault or equivalent signal. If there is a handler for the signal, but the handler can't be invoked due to lack of stack space, the process should be killed. If the mechanism to signal the process in a potential out-of-stack situation is too complex to be practically implemented in the kernel, then the process should be killed without attempting to signal it.
At no point should the OOM killer become involved, because there is no reason to propagate the error outside the process (other than by another process noticing that the process in question has exited). A principle of reliable systems is confining the consequences of an error to the minimum area necessary, and killing some other randomly-selected (or even heuristically-selected) process violates that principle.
(
Log in to post comments)