I tried running the command "free" after the swapon /swapfile line, but I get:

bash: free: command not found