News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by onjectic on Thursday November 19, 2026 @05:58PM (#50567756)
I think what they are saying is if OOM was going to kill the process anyways, it can defer this a bit and only fault on read or write on the rarely used memory.

So don’t change the OOM descision making, just the action taken.

I think the person below makes a good point though, that this encourages or permits buggy code.

Re:Do not buy RAM, compress by cwillu on Thursday November 19, 2026 @07:04PM (#50568370)
OOM triggers when memory pressure is critical; it's not practical to further defer addressing it at that point.
Re:Do not buy RAM, compress by onjectic on Friday November 20, 2026 @01:22PM (#50579394)
Huh? Defer addressing? The memory would be reclaimed in this scenario, it is entirely “practical” in that sense.
Re:Do not buy RAM, compress by cwillu on Friday November 20, 2026 @01:27PM (#50579479)
Defer /addressing/fixing/solving/ the problem.

If the oomkiller is running, it's too late to wait and see: some process or kernel thread needs memory that the kernel can't currently provide

Re:Do not buy RAM, compress by onjectic on Friday November 20, 2026 @01:31PM (#50579539)
No one said we were deferring fixing the problem. Memory is reclaimed. We would only be delaying or avoiding the part where the process is killed.