News for hackers. Stuff that matters.
Re:Almost Always Add Swap Space by devoply on Friday July 19, 2019 @11:45AM (#20479575)
Out of memory processes will be terminated automatically with only a message in the kernel log, i.e. dmesg.
Re:Almost Always Add Swap Space by Beldin on Friday July 19, 2019 @11:58AM (#20479697)
What happens in case you have swap space and run out of memory?
Re:Almost Always Add Swap Space by pjc50 on Friday July 19, 2019 @03:23PM (#20481682)
Your system thrashes to a halt, until eventually you run out of swap as well and the OOM killer is activated anyway. It just takes longer and is preceded by a period of dismal performance.
Re:Almost Always Add Swap Space by Dylan16807 on Saturday July 20, 2019 @01:08AM (#20484290)
Even without swap, you get a period of thrashing and dismal performance as your disk cache is squeezed to nothing.

If you have swap, this happens later and more gradually, and lasts longer before the OOM killer kicks in.

Re:Almost Always Add Swap Space by devoply on Friday July 19, 2019 @12:03PM (#20479745)
some stuff in your memory gets written to the swap page.

https://en.wikipedia.org/wiki/Paging