You can use the advanced virtual machine attributes to customize virtual machine configuration.

Advanced Virtual Machine Attributes

Attribute

Description

sched.mem.maxmemctl

Maximum amount of memory reclaimed from the selected virtual machine by ballooning, in megabytes (MB). If the ESX/ESXi host needs to reclaim additional memory, it is forced to swap. Swapping is less desirable than ballooning.

sched.mem.pshare.enable

Enables memory sharing for a selected virtual machine.

This boolean value defaults to True. If you set it to False for a virtual machine, this turns off memory sharing.

sched.swap.persist

Specifies whether the virtual machine’s swap files should persist or be deleted when the virtual machine is powered off. By default, the system creates the swap file for a virtual machine when the virtual machine is powered on, and deletes the swap file when the virtual machine is powered off.

sched.swap.dir

VMFS directory location of the virtual machine's swap file. Defaults to the virtual machine's working directory, that is, the VMFS directory that contains its configuration file. This directory must remain on a host that is accessible to the virtual machine. If you move the virtual machine (or any clones created from it), you might need to reset this attribute.

numa.vcpu.maxPerMachineNode

Maximum number of the virtual machine's virtual CPUs that can reside on a single NUMA node. By default, the maximum is the number of physical cores present in a NUMA node.

numa.vcpu.maxPerClient

Maximum number of the virtual machine's virtual CPUs that are rebalanced as a single unit (NUMA client) by the NUMA scheduler. By default there is no limit and all virtual CPUs belong to the same NUMA client. However, if the number of virtual CPUs in a NUMA client exceeds the number of physical cores on the smallest NUMA node in the cluster, the client is not managed by the NUMA scheduler.

numa.mem.interleave

Specifies whether the memory allocated to a virtual machine is statically interleaved across all the NUMA nodes on which its constituent NUMA clients are running. By default, the value is TRUE.