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?
[ Parent
| on HN ]
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.
some stuff in your memory gets written to the swap page.