how to increase swap space in linux redhat 7

Command To Check Swap Partition On Linux

There’re lots of commands to check swap partitions. you can check swap partition size in Linux using the below commands. 

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.

top

vmstat

swap partition command

cat /proc/swaps

You’re done

Leave a Reply

avatar
  Subscribe  
Notify of