To clarify a bit, vswp file size is usually the size of the configured vRAM of a VM, plus overhead, minus any memory reservation (reserved memory is always backed by physical RAM.)
The amount of overhead required depends on two things:
1. Number of vCPU added to the VM.
2. Amount of vRAM added to the VM.