6.0.1

Table Of Contents
Host-local swap is now enabled for the standalone host.
Swap Space and Memory Overcommitment
You must reserve swap space for any unreserved virtual machine memory (the difference between the
reservation and the configured memory size) on per-virtual machine swap files.
This swap reservation is required to ensure that the ESXi host is able to preserve virtual machine memory
under any circumstances. In practice, only a small fraction of the host-level swap space might be used.
If you are overcommitting memory with ESXi, to support the intra-guest swapping induced by ballooning,
ensure that your guest operating systems also have sufficient swap space. This guest-level swap space must
be greater than or equal to the difference between the virtual machine’s configured memory size and its
Reservation.
CAUTION If memory is overcommitted, and the guest operating system is configured with insufficient swap
space, the guest operating system in the virtual machine can fail.
To prevent virtual machine failure, increase the size of the swap space in your virtual machines.
n
Windows guest operating systems— Windows operating systems refer to their swap space as paging
files. Some Windows operating systems try to increase the size of paging files automatically, if there is
sufficient free disk space.
See your Microsoft Windows documentation or search the Windows help files for “paging files.”
Follow the instructions for changing the size of the virtual memory paging file.
n
Linux guest operating system — Linux operating systems refer to their swap space as swap files. For
information on increasing swap files, see the following Linux man pages:
n
mkswap — Sets up a Linux swap area.
n
swapon — Enables devices and files for paging and swapping.
Guest operating systems with a lot of memory and small virtual disks (for example, a virtual machine with
8GB RAM and a 2GB virtual disk) are more susceptible to having insufficient swap space.
NOTE Do not store swap files on thin-provisioned LUNs. Running a virtual machine with a swap file that is
stored on a thin-provisioned LUN can cause swap file growth failure, which can lead to termination of the
virtual machine.
When you create a large swap file (for example, larger than 100GB), the amount of time it takes for the
virtual machine to power on can increase significantly. To avoid this, set a high reservation for large virtual
machines.
You can also place swap files on less costly storage using host-local swap files.
Configure Virtual Machine Swapfile Properties for the Host
Configure a swapfile location for the host to determine the default location for virtual machine swapfiles in
the vSphere Web Client.
By default, swapfiles for a virtual machine are located on a datastore in the folder that contains the other
virtual machine files. However, you can configure your host to place virtual machine swapfiles on an
alternative datastore.
You can use this option to place virtual machine swapfiles on lower-cost or higher-performance storage.
You can also override this host-level setting for individual virtual machines.
vSphere Resource Management
40 VMware, Inc.