How to add more swap space as a swapfile on RHEL or CentOS 7 ?
How to add more swap space as a swapfile on RHEL or CentOS 7 What is swap? Swap space on a disk is used when the amount of physical RAM is full in the Linux system. When the system runs out of RAM, inactive pages are moved from the RAM to the swap space. Swap space can be either a dedicated swap partition or a swap file. So here we will see how you can add more swap space as a swap file. In this article we will see how we can add more swap space using a swapfile. Steps : Let's check how much swap is available on the system currently: [root@localhost ~]# swapon --show NAME TYPE SIZE USED PRIO /dev/dm-1 partition 3.9G 0B -2 [root@localhost ~]# free -h total used free shared buff/cache available Mem: 3.7G ...