Hacker News new | ask | show | jobs
by Krssst 1296 days ago
> The biggest thing that brings me back to windows is that Linux _still_ completely halts when hitting low memory situations.

Had this issue on a low-memory laptop but it got better after I enabled zram. A leak will eventually exhaust memory, but I guess it should compress well depending on the leak.

But it is not a complete solution (once exhaustion is reached it a freeze would probably still happen) and not very user-friendly either.

1 comments

Yeah as a developer I can't guarantee that I'll never write an infinite loop that leaks memory, and I really don't want my only recourse to be restarting my machine. That's a pretty brutal dev cycle lol.
You can do that on windows, with GPU compute shaders and syncs - at least in that case on Linux, you can switch to terminal to kill the process. On windows, can't click, to kill a process you need the GPU to render your process managing window...
I mean sure, but that's pretty edge case for me, I'm not developing GPU compute sync.
I've not had that as a problem in a while.

Either the the kernel oom or the systemd oom-killer take care of it.

Does cgroups help here?