Increase swap on Centos 6

Increase swap on Centos 6 



Present we are having 1gb SWAP disk and we want to increase to 3gb SWAP disk on CentOs.

Step 1:  Check current swap status by top command or cat /proc/meminfo.

Step 2:  Create swap image with dd command with 2gb more.


Step 3: Make swap image with mkswap command.



Step 4:  Need add swap image to /etc/fstab to map the swap image when server reboots.


Step 5:  Mount swap to server by swapon command.


Step 6:  We also can use “top” command to check swap , RAM and CPU of our server.


That’s all. Thanks for using


Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>