How To Add Swap Space on CentOS 8

This tutorial focuses on how to create swap space on CentOS 8 using a swap file or a swap partition.On CentOS 8, it is quite common to run out of memory.It can be because you are running too many programs, or because some of your programs are taking too many resources from your CentOS 8 host.

Source: LXer – How To Add Swap Space on CentOS 8