Swap file


#1

When I used EasyEngine for the first times I remember it created a swap file if needed.

I‘d like EE to create and configure a swap file for me, but I can‘t find out how to do it.

Is it still possible?

Thanks in advance.


#2

Not sure, but easyengine did have a swapfile on, you may check status of swapfile:

swapon -s


#3

I ended up creating a small bash script to create the swap file and set some sysctl values for best performance in VPSs.

It also adds an entry to fstab in order to make the swap persistent across reboots.

It can be found here:

http://pastebin.com/2HiG67Cj

Of course, it works for me and might not be suitable for someone else’s case. Use it at your own risk.


#4

how to run this command. Do i have to directly copy and paste it in putty?


#6