How to Increase SWAP Memory in RHEL 7

Increasing SWAP memory for better server performance is needed always when you have chosen incorrect SWAP size during server built or it’s a demand of memory intensive application. This tutorial will tell you how to increase SWAP memory in Redhat Linux 7 or CentOs7.

There are two types of SWAP viz. partition and file type. And in this tutorial we will add partition type of SWAP taking new disk. If you already have space in your server, you can also made file type SWAP.

Increasing SWAP in RHEL 7

1. Add new a disk to your server, it may be through SAN or through Vmware virtual pool. You can use our tutorial to scan your newly added disk online in server.

5. Now to make newly added SWAP memory to be available at next boot, put its entry in fstab file like below.

UUID=4a28616d-065f-4123-b801-97d2b25019b7 swap swap defaults 0 0

This is how you can increase or add SWAP memory in Linux 7 server easily. If you have any issue in performing this task, then please leave your comments below. We will be happy to help you. You can also drop email to us or leave your question in our Facebook page.