6.0.1

Table Of Contents
3 Ensure that hyperthreading is enabled for the ESXi host.
a Browse to the host in the vSphere Web Client navigator.
b Click the Manage tab and click Settings.
c Under System, click Advanced System Settings and select VMkernel.Boot.hyperthreading.
Hyperthreading is enabled if the value is true.
4 Under Hardware, click Processors to view the number of Logical processors.
Hyperthreading is enabled.
Using CPU Affinity
By specifying a CPU affinity setting for each virtual machine, you can restrict the assignment of virtual
machines to a subset of the available processors in multiprocessor systems. By using this feature, you can
assign each virtual machine to processors in the specified affinity set.
CPU affinity specifies virtual machine-to-processor placement constraints and is different from the
relationship created by a VM-VM or VM-Host affinity rule, which specifies virtual machine-to-virtual
machine host placement constraints.
In this context, the term CPU refers to a logical processor on a hyperthreaded system and refers to a core on
a non-hyperthreaded system.
The CPU affinity setting for a virtual machine applies to all of the virtual CPUs associated with the virtual
machine and to all other threads (also known as worlds) associated with the virtual machine. Such virtual
machine threads perform processing required for emulating mouse, keyboard, screen, CD-ROM, and
miscellaneous legacy devices.
In some cases, such as display-intensive workloads, significant communication might occur between the
virtual CPUs and these other virtual machine threads. Performance might degrade if the virtual machine's
affinity setting prevents these additional threads from being scheduled concurrently with the virtual
machine's virtual CPUs. Examples of this include a uniprocessor virtual machine with affinity to a single
CPU or a two-way SMP virtual machine with affinity to only two CPUs.
For the best performance, when you use manual affinity settings, VMware recommends that you include at
least one additional physical CPU in the affinity setting to allow at least one of the virtual machine's threads
to be scheduled at the same time as its virtual CPUs. Examples of this include a uniprocessor virtual
machine with affinity to at least two CPUs or a two-way SMP virtual machine with affinity to at least three
CPUs.
Assign a Virtual Machine to a Specific Processor
Using CPU affinity, you can assign a virtual machine to a specific processor. This allows you to restrict the
assignment of virtual machines to a specific available processor in multiprocessor systems.
Procedure
1 Find the virtual machine in the vSphere Web Client inventory.
a To find a virtual machine, select a data center, folder, cluster, resource pool, or host.
b Click the Related Objects tab and click Virtual Machines.
2 Right-click the virtual machine and click Edit Settings.
3 Under Virtual Hardware, expand CPU.
vSphere Resource Management
24 VMware, Inc.