I do scientific and numerical programming as a hobby, and it is common for me to write programs that use a huge amount of memory. I also don't use swap because the drop in performance usually just isn't worth the few extra GB to me.
The current behavior on Manjaro is to lock up and just generally behave badly when running out of memory. The servers I use at my job have something that very cleanly terminates processes that cause the server to run out of memory, but I don't know what that is.
I saw the comments here but this didn't offer a clear solution.
Is there some sort of daemon or kernel module that I can use to automatically kill programs that use too much memory? This behavior would be vastly preferable to the system locking up and having to reboot anyway.