6.7

Table Of Contents
Configure Processor Scheduling Anity
The Scheduling Affinity option gives you detailed control over how virtual machine CPUs are distributed
across the host's physical cores. The option supports hyperthreading if hyperthreading is enabled. ESXi
generally manages processor scheduling well, even when hyperthreading is enabled. These settings are
useful only for fine-tuning critical virtual machines.
Using CPU affinity, you can assign a virtual machine to a specific processor. This assignment allows you
to restrict the assignment of virtual machines to a specific available processor in multiprocessor systems.
This setting does not appear for virtual machines in a DRS cluster or when the host has only one
processor core and no hyperthreading.
For potential issues with CPU affinity, see the vSphere Resource Management documentation.
Prerequisites
n
Verify that the virtual machine is turned off.
n
Verify that the virtual machine does not reside in a DRS cluster.
n
Verify that the host has more than one physical processor core.
n
Privileges: Virtual machine.Configuration.Change resource
Procedure
1 Right-click a virtual machine in the inventory and select Edit Settings.
2 On the Virtual Hardware tab, expand CPU, and enter a comma-separated list of hyphenated
processor ranges in the Scheduling Affinity text box.
For example, "0,4-7" would indicate affinity with CPUs 0,4,5,6, and 7. Selecting all processors is
identical to selecting no affinity. You must provide at least as many processor affinities as you have
virtual CPUs.
3 Click OK.
Change CPU/MMU Virtualization Settings
ESXi can determine whether a virtual machine needs hardware support for virtualization. ESXi makes this
determination based on the processor type and the virtual machine. Overriding the automatic selection
can provide better performance for some use cases.
vSphere Virtual Machine Administration
VMware, Inc. 94