The answer is almost always yes, but not for the reason most people think. 
Haden James covers it pretty well here 
https://haydenjames.io/linux-performance-almost-always-add-swap-space/, but you 
can also find all the information he covers in the kernel documentation around 
linux memory management and the virtual memory system. TL;DR there are times 
that the kernel needs to evict pages or deal with unmovable blocks of memory. 
If you have no swap available the kernel cant do some of the various 
maintenance tasks and the memory eventually becomes hopelessly fragmented and 
your system grinds to a halt. The more adequately speced your system is the 
longer that horizon is, but according to the people that designed the system 
you need some swap.


On 20 at 04:11 someone claiming to be Jake Bottero said:
> Running RHEL on a virtual (cloud) server, is there any benefit from creating 
> a swap file?

---
GPG: https://corrupted.io/kusuriya.pub


Reply via email to