On a VMware ESX setup what is the difference of these options?:
- a Linux VM with 1GB RAM and 1GB swap partition and the VM uses 1.5 GB ram
- a Linux VM with 1GB RAM and no swap partition and the VM uses 1.5 GB ram
I mean, in both cases swap is being used;
- in the first swap is done to the linux swap partition
- in the second case, VMware will swap 512MB to the VMware storage pool.
So are there any point in giving Linux VM's a swap partition?
Best Answer
Ignoring the fact that people are dealing with OS specific reasons I have two reasons why it's a bad idea to not run with a swap partition/file.