Specifications
Administration Guide
340 VMware, Inc.
/proc/vmware/vm/<id>/cpu/max
Reading!from!this!file!reports!the!maximum!CPU!percentage!allocated!to!the!virtual!
machine!identified!by!<id>.!
Specifying!a!percentage!<maxPercent>!to!this!file!changes!the!maximum!percentage!
allocated!to!the!virtual!machine!identified!by!<id>!to!<maxPercent>.!The!valid!range!
of!values!for!<maxPercent>!is!0!to!100!
multiplied!by!the!number!of!virtual!CPUs;!that!
is,!100!percent!for!uniprocessor!virtual!machines!and!200!percent!for!dual‐virtual!CPU!
virtual!machines.!
/proc/vmware/vm/<id>/cpu/shares
Reading!from!this!file!reports!the!number!of!shares!allocated!to!the!virtual!machine!
identified!by!<id>.!
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.!You!can!also!use!the!values!low,!normal,!and!high.!These!values!are!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.!Default!value!for!htSharing.
N
OTE If!not!enough!unreserved!CPU!time!is!available!in!the!system!to!satisfy!a!demand!for!an!
increase!in!min,!the!reservation!will!not!be!changed.