Allowing small allocations to fail
Allowing small allocations to fail
Posted Mar 16, 2015 4:02 UTC (Mon) by ploxiln (subscriber, #58395)In reply to: Allowing small allocations to fail by vbabka
Parent article: Allowing small allocations to fail
I've acutely experienced that problem, of extended struggling before invoking the OOM killer. I had swap completely disabled on my personal laptop for a few years in an attempt to avoid it, but it still eventually happened (virtual machines, browsers...). I use linux on both personal machines and popular-website-serving servers, and in both cases prefer "fail fast", instead of "go into uselessly slow mode".
I suppose someone will say to disable overcommit, but many runtimes, particularly nodejs, pretty much require it. Browsers of course require it. Lots of threads with large stacks they won't use, also use a lot of virt.