Allowing small allocations to fail
Allowing small allocations to fail
Posted Mar 12, 2015 7:51 UTC (Thu) by dlang (guest, #313)In reply to: Allowing small allocations to fail by malor
Parent article: Allowing small allocations to fail
except this "too small to fail" has nothing to do with userspace programs, it's all about kernel allocations.
And overcommit is not as firmly baked into Linux as you are saying. It's a simple sysctl setting to completely turn off overcommit, leading the the predictable failures (both in allocations that don't need to be failed, like when you are executing a small program from a massive one, and in application errors because they don't test the failure modes or the recovery code)