Toward more predictable and reliable out-of-memory handling
Toward more predictable and reliable out-of-memory handling
Posted Dec 21, 2015 13:07 UTC (Mon) by sorokin (guest, #88478)Parent article: Toward more predictable and reliable out-of-memory handling
Do I understand correctly that all problems with OOM handling in Linux are caused by memory overcommitting? Is it true that memory overcommitting is required for two reasons: (1) because fork is used to create child processes and (2) because shared objects are mapped as MAP_PRIVATE?
Can't the (1) be fixed by using something like posix_spawn and can't the (2) be fixed by mapping as MAP_PRIVATE only GOT and PLT and MAP_SHARED everything else in shared objects? As I understand in this case it will be possible to default to vm.overcommit_memory=2 and forget about oom-killer.
