Le 03/11/2010 18:50, Bob Proulx a écrit : > Marc Herbert wrote: >> I suggest that Linux kids do not try this at home: the OutOfMemory killer >> killed a few random processes of mine! > > Off-Topic for this mailing list but if so then you should configure > your Linux kernel to avoid memory overcommit. I have previously > ranted about this
The (controlled) randomness of the OOM killer looks indeed really weird and scary. But it looks a bit less weird when you think about what happens when you disable the killer and run out of memory: which process(es) will get malloc() and fork() errors then? The answer is STILL NOT deterministic! Without going into further details since this is really off-topic: no one should assume that Linux developers smoke crack and that disabling the OOM killer is a simple solution to a simple problem. It is not so simple, you unfortunately have to do your homework.