Taming the OOM killer
Posted Feb 5, 2009 14:08 UTC (Thu) by
epa (subscriber, #39769)
In reply to:
Taming the OOM killer by iq-0
Parent article:
Taming the OOM killer
This way you can even implement a simple 'if exec(a) fails try exec(b) or otherwise flag error with (possibly program specific) meaningful data'...
Oh sure, sometimes you will want to do something more complex like that. In these cases vfork() (as in classic BSD) doesn't work, because the child process is using memory belonging to the parent. The traditional fork() then exec() is best.
But this is a small minority of the cases when an external command is run. And running an external command accounts for a large proportion of total fork()s. I'm just suggesting to make something more robust (avoiding the need to overcommit memory) for the common case.
(
Log in to post comments)