3 ms·
I normally run Linux without any swap partition and this still happens without swap. Realistically is this kind of oom condition (where oom killer fails to trig
by jleahy 5y ago
I normally run Linux without any swap partition and this still happens without swap. Realistically is this kind of oom condition (where oom killer fails to trigger) I just end up pulling the plug.
I’ve never been able to track down the exact cause.
- rcxdude 5y agoCode can almost always be paged out, even without a swap file, because it's memory mapped from files on disk. In fact running without swap makes this behaviour worse (i.e. it happens sooner and more suddenly) because then the kernel can't prioritise keeping currently running code in memory over keeping rarely-accessed data in memory. In general you should have some swap and run with earlyoom if you want decent behaviour in a low-memory condition on linux.
- jleahy 5y agoGood point.