News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by kevincox on Thursday November 19, 2026 @01:41PM (#50564264)
This sounds like a bad idea. No one has logged in via SSH for a while so the daemon hasn't touched any pages (or only pre-auth relevant pages) then when you log in it gets killed. Or if someone sends a rarely used request to an HTTP server then it crashes accessing some data unique to that request.

Sure, they will get restarted, but not great.

Re:Do not buy RAM, compress by cxr on Thursday November 19, 2026 @02:24PM (#50564950)
[delayed]
Re:Do not buy RAM, compress by tadfisher on Thursday November 19, 2026 @04:27PM (#50566630)
You have described the current state of Android development if you want your app to stay alive and be useful without its GUI in the foreground. It is an insidious process that has essentially broken the OS more with each release, and broken apps that were mindful of battery usage but didn't pull the correct magical levers.
Re:Do not buy RAM, compress by braiamp on Thursday November 19, 2026 @08:49PM (#50569150)
"All means are fair except solving the problem"
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.