|
|
|
|
|
by asveikau
4785 days ago
|
|
I don't know what the author was thinking of specifically, but the OOM killer seems like a bit of a hack to me. I can think of situations where I'd rather have an allocation fail upfront predictably than be randomly killed by the system. A lot of people seem to think you're screwed when you're out of memory and so think killing the process is acceptable, but I've worked on code bases where it's actually handled somewhat gracefully. (Although, on NT, if you run out of nonpaged pool you start to get weird, random I/O failures.) |
|
vm.overcommit_memory = 2
see https://www.kernel.org/doc/Documentation/vm/overcommit-accou...