I'm running several virtual machines on VMware ESXi (mostly Centos but few are Ubuntu) and it seems like there are two different ways of dealing with memory allocation. Here are two examples:
(a) allocate 4GB memory to virtual machine and create 2GB swap file.
(b) allocate 6GB of memory to virtual machine and no swap file.
What are pros and cons of these approaches?