Installation guide

www.vmware.com
398
VMware ESX Server Administration Guide
Writing a number <n> to this file changes the number of shares allocated to the
virtual machine identified by <id> to <n>. The valid range of numerical values for
<n> is 1 to 100000. Or, you may use the special values low, normal and high. These
values are automatically converted into numbers, through the configuration options
CpuSharesPerVcpuLow, CpuSharesPerVcpuNormal and
CpuSharesPerVcpuHigh, described in this section.
/proc/vmware/vm/<id>/cpu/affinity
Reading from this file reports the number of each CPU in the current affinity set for the
virtual machine identified by <id>.
Writing a comma-separated list of CPU numbers to this file, such as 0,2,3, changes
the affinity set for the virtual machine identified by <id>. Writing all or default
to this file changes the affinity set to contain all available processors.
For SMP virtual machines, writing to this file changes the affinity of all virtual CPUs in
the virtual machine to the specified affinity set.
/proc/vmware/vm/<id>/cpu/hyperthreading
Reading from this file reports the Hyper-Threading state of the virtual machine
identified by <id>.
Setting the htSharing option configures the Hyper-Threading operation mode for
the virtual machine identified by <id>. Valid modes are:
any — Each CPU of the virtual machine can share the server’s logical CPUs with
all other virtual machines. This is the default value for htSharing.
none — Each CPU of the virtual machine requires an entire physical CPU (two
logical CPUs) of the server to operate. This prevents the virtual machine from
operating with the shared system resources provided by Hyper-Threading, and
can reduce performance.
internal — Each CPU of the virtual machine can share logical CPUs with the
second CPU in the same virtual machine, but not with CPUs from other virtual
machines. This mode switches to none for virtual machines with one CPU.
Note: Only SMP virtual machines can use multiple virtual CPUs.
/proc/vmware/vm/<vcpuid>/cpu/status
Reading from this file reports current status information for the virtual CPU identified
by <vcpuid>, including the specified shares and affinity parameters, as well as the
virtual machine name, state (running, ready, waiting), current CPU assignment and
cumulative CPU usage in seconds.