Installation guide

www.vmware.com
400
VMware ESX Server Administration Guide
2000
To query the affinity set for virtual machine 103, simply read the file:
cat /proc/vmware/vm/103/cpu/affinity
The identifying numbers of the processors in the affinity set are displayed.
0,1
This indicates that virtual machine 103 is allowed to run on CPUs 0 and 1. To restrict
virtual machine 103 to run only on CPU 1, simply write to the file. Note that you need
root privileges in order to change affinity sets.
echo 1 > /proc/vmware/vm/103/cpu/affinity
The change can be confirmed by reading the file again.
Note: The affinity set must contain at least as many CPUs as virtual CPUs; that is, 1
CPU for a uniprocessor (UP) virtual machine, and 2 CPU for a SMP virtual machine.
Monitoring CPU Statistics
The VMware Management Interface provides information on the current use of CPU
by the physical computer and the virtual machines running on it. View the Status
Monitor page in the management interface.