Check Swap Partition Using Command On Linux Server

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.

Check Swap Partition Using Command:

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

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment