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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.