How to Increase Swap Space

Site Admin
Posts: 67
Joined: Fri May 31, 2013 1:04 pm

How to Increase Swap Space

Postby hr-ethadmin » Wed Oct 02, 2013 11:35 am

Using following command we can increase swap space on linux server.

dd if=/dev/zero of=/extraswap bs=1M count=1024

replacing 512 with the number of megabytes you want in your auxiliary swap file.

mkswap /extraswap

pico /etc/fstab
/extraswap none swap sw 0 0

swapon /extraswap

Return to “Hostripples dedicated Servers (Linux/Windows)”

Who is online

Users browsing this forum: No registered users and 2 guests