Impact of VM swap file placement

The creation of a virtual machine's swap file is automatic. By default, this file is created in the virtual machine's working directory, but a different location can be set.

Swap file contains swapped memory pages and its size is determined as allocated RAM size—reservation. If performance is important in the design, 100 percent memory reservations should be created, causing no need to swap to disk.

You can optionally configure a special host cache on an SSD (if one is installed) to be used for the swap to host cache feature. This swap cache is shared by all the virtual machines running on the host. In addition, host level swapping of the virtual machines' most active pages benefit from the low latency of SSD. The ...

Get vSphere High Performance Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.