Typically - you should never have more than 2GB of swap. On shared hosting servers - you're better of with 0.5 or no swap at all.