Specifications

VMware, Inc. 353
Chapter 12 VMware ESX Server Resource Management
For!example,!if!you!created!a!virtual!machine!with!a!maximum!memory!of!256MB,!and!
with!its!shares!settings!as!normal,!this!virtual!machine!has!10!times!256,!or!2560!shares.!
Similarly,!a!virtual!machine!with!a!maximum!memory!of!1GB!with!a!normal!share!
setting,!has!10240!shares.
sched.mem.maxmemctl = <size>
Specifies!the
!maximum!amount!of!memory!that!can!be!reclaimed!from!the!virtual!
machine!using!vmmemctl!to!be!<size>MB.!If!additional !memory!needs!to!be!reclaimed,!
the!system!swaps!instead!of!using!vmmemctl.!The!default!maximum!size!is!half!of!the!
specified!maximum!virtual!machine!size.
sched.mem.affinity = <NUMA_node>
Specifies!that,!if!possible,!all!the
!virtual!machine’s!memory!should!be!allocated!on!the!
specified!NUMA!node.!See!“A s s o c i a t i n g !Future!Virtual!Machine!Memory!Allocations!
with!a!NUMA!Node”!on!page 362.
Service Console Commands
/proc/vmware/vm/<id>/mem/min
Reading!from!this!file!reports!the!minimum!memory!size!in!megabytes!for!the!virtual!
machine!identified!by!<id>.
Writing!a!number!<size>!to!this!file!changes!the!minimum!memory!size!for!the!virtual!
machine!identified!by!<id>!to!<size>MB.
/proc/vmware/vm/<id>/mem/shares
Reading!from!this!file!reports!the!number!of!memory!shares!allocated!
to!the!virtual!
machine!identified!by!<id>.
Writing!a!number!<n>!to!this!file!changes!the!number!of!memory!shares!allocated!to!the!
virtual!machine!identified!by!<id>!to!<n>.!The!valid!range!of!numerical!values!for!<n>!
is!0!to!100000.!You!may!also!use!the!special!values!low
,!normal!and!high.!These!values!
are!converted!into!numbers,!through!the!configuration!options!MemSharesPerMBLow,!
MemSharesPerMBNormal,!and!MemSharesPerMBHigh,!described!below.
A!value!of!zero!(0)!shares!causes!the!virtual!machine!memory!size!allocation!to!be!
exactly!equal!to!its!specified!minimum!size,!even!if!excess!memory!is!available.
/proc/vmware/vm/<id>/mem/status
Reading!from!this!file!reports!current!status!information!for!the!virtual!machine!
identified!by!<id>,!including!the!specified!shares,!minimum!size!and!maximum!size!
parameters!as!well!as!the!virtual!machine!name,!current!status,!whether!the!virtual!
machine!is!currently!waiting!for!memory!to!be!reserved,!current!memory!usage,!