4 ms·
That assumes the OOM killer kills the right thing. It may well choose to kill something ancillary, which causes your OOM program to just hang or misbehave wildl
by mickeyp 1y ago
That assumes the OOM killer kills the right thing. It may well choose to kill something ancillary, which causes your OOM program to just hang or misbehave wildly.
The real danger in all of this, swap or no, is the shitty OOMKiller in Linux.
- man8alexd 1y agoNowadays, the OOM killer always chooses the largest process in the system/cgroup by default.
- kijin 1y agoThe OOM killer will be just as shitty whether you have swap or not. But the more swap you have, the longer your program will be allowed to misbehave. I prefer a quick and painless death.
- xdfgh1112 1y agoYou can apply memory quotas to the individual processes with cgroups. You can also adjust how likely a process is to be killed.