Yes, I don't disagree that user-mode OOM-killers are helpful, or that the system can still hang without swap.
I'm just saying turning on swap, or increasing the swap capacity does not fix the problem, and it usually makes it worse.
I'm just saying turning on swap, or increasing the swap capacity does not fix the problem, and it usually makes it worse.
The Linux kernel OOM killer only acts if there's nothing left that can be discarded, which often happens way too late to save the system. You need a user-mode OOM-killer like earlyoom if you want to keep the system responsive.