how to increase swap space in linux redhat 7

Check Swap Partition Using Command

There’re lots of ways to check swap partitions. you can check swap partition size in Linux using the below commands. We can separately create it using an additional disk on the Linux server.

Swap partition requires when your process is consuming your psychical
ram when other process needs the ram to execute the tasks. 
So, there's a solution we can create this partition whenever the shortage
of ram occurs on the Linux. 
The Swap partition will come in the picture to give the ram to the
process those required but this is slower than the psychical ram. 

Check Out: How To Start Monitoring For Elasticsearch Cluster On Linux

You can use ‘-m‘ option to display the ram in MB.

free -m

command to check swap

This command will show you the information in summary.

swapon -s

swap partition in linux

Check Out: How To Create Security Group For Server On Amazon Web Service

you can also use this to check the free swap memory.



swap partition command

cat /proc/swaps

You’re done swap partition in linux swap partition size


Please enter your comment!
Please enter your name here