1 or 2 GB swap for 4GB ram you can always check swap usage by: free -m then, you can adjust swapfile size any time