6.5.1

Table Of Contents
n
It is functioning properly, but maximum balloon size is reached.
Standard demand-paging techniques swap pages back in when the virtual machine needs them.
Swap File Location
By default, the swap le is created in the same location as the virtual machine's conguration le, which
may either be on a VMFS datastore, a vSAN datastore or a VVol datastore. On a vSAN datastore or a VVol
datastore, the swap le is created as a separate vSAN or VVol object.
The ESXi host creates a swap le when a virtual machine is powered on. If this le cannot be created, the
virtual machine cannot power on. Instead of accepting the default, you can also:
n
Use per-virtual machine conguration options to change the datastore to another shared storage
location.
n
Use host-local swap, which allows you to specify a datastore stored locally on the host. This allows you
to swap at a per-host level, saving space on the SAN. However, it can lead to a slight degradation in
performance for vSphere vMotion because pages swapped to a local swap le on the source host must
be transferred across the network to the destination host. Currently vSAN and VVol datastores cannot
be specied for host-local swap.
Enable Host-Local Swap for a DRS Cluster
Host-local swap allows you to specify a datastore stored locally on the host as the swap le location. You can
enable host-local swap for a DRS cluster.
Procedure
1 Browse to the cluster in the vSphere Web Client navigator.
2 Click .
3 Under , select General to view the swap le location and click Edit to change it.
4 Select the Datastore  by host option and click OK.
5 Browse to one of the hosts in the cluster in the vSphere Web Client navigator.
6 Click .
7 Under Virtual Machines, select Swap  location.
8 Click Edit and select the local datastore to use and click OK.
9 Repeat Step 5 through Step 8 for each host in the cluster.
Host-local swap is now enabled for the DRS cluster.
Enable Host-Local Swap for a Standalone Host
Host-local swap allows you to specify a datastore stored locally on the host as the swap le location. You can
enable host-local swap for a standalone host.
Procedure
1 Browse to the host in the vSphere Web Client navigator.
2 Click .
3 Under Virtual Machines, select Swap  location.
4 Click Edit and select Selected Datastore.
5 Select a local datastore from the list and click OK.
Chapter 6 Administering Memory Resources
VMware, Inc. 37