So i have done the following in putty…
nano /etc/sysctl.conf (and added the following lines to it)
nano /etc/sysctl.conf
vm.swappiness=10
I have then done the following:
swapoff /swapfile
fallocate -l 1G /swapfile (to increase the swapfile from 500MB to 1G)
mkswap /swapfile
I then got a warning saying
insecure permissions 0644, 0600 suggested.
Setting up swapspace version 1, size = 1024 MiB (1073737728 bytes)
no label, UUID=0cba8223-55bf-4ce2-a388-0b968dcb5f47
so next:
chmod 600 /swapfile
ls -l /swapfile returns
-rw------- 1 root root 1073741824 Jun 10 13:45 /swapfile
swapon -s returns
Filename Type Size Used Priority
/swapfile file 1048572 0 -1
that seem good enough to you guys?