I have created 14GB swap file in Amazon EC2 server but the swap file which I created is not being used by the server. The status is showing like this:
$ free -m
total used free shared buffers cached
Mem: 7687 7650 36 0 255 3834
-/+ buffers/cache: 3560 4126
Swap: 14335 0 14335
These are the steps I used to create the swap file on the server:
# dd if=/dev/zero of=/swapfile1 bs=1M count=14336
# mkswap /swapfile1
# swapon /swapfile1
Can someone tell me why the swap file is not being used?