Out-of-memory victim selection with BPF
Out-of-memory victim selection with BPF
Posted Aug 20, 2023 17:57 UTC (Sun) by jmspeex (guest, #51639)In reply to: Out-of-memory victim selection with BPF by gfernandes
Parent article: Out-of-memory victim selection with BPF
The this is that the program calling malloc() may very well be the innocent bystander here. You can have the memory hog allocating tons of memory, and then an innocent process tries to allocate a few bytes and trigger an OOM event. The whole point of the OOM killer is to avoid that innocent process getting killed while leaving the memory hog running. Also, as others have pointed out, it's not just malloc() that allocates memory. Growing the stack means memory gets allocated without the process even making a system call.
