VMware vSphere ESXi 4.0 Management Manual page 31

Hide thumbs Also See for vSphere ESXi 4.0:
Table of Contents

Advertisement

An ESX/ESXi host determines allocations for each virtual machine based on the number of shares allocated to
it and an estimate of its recent working set size.
Shares — ESX/ESXi hosts use a modified proportional-share memory allocation policy. Memory shares
n
entitle a virtual machine to a fraction of available physical memory.
Working set size —ESX/ESXi hosts estimate the working set for a virtual machine by monitoring memory
n
activity over successive periods of virtual machine execution time. Estimates are smoothed over several
time periods using techniques that respond rapidly to increases in working set size and more slowly to
decreases in working set size.
This approach ensures that a virtual machine from which idle memory is reclaimed can ramp up quickly
to its full share-based allocation when it starts using its memory more actively.
Memory activity is monitored to estimate the working set sizes for a default period of 60 seconds. To
modify this default , adjust the
Attributes,"
Memory Tax for Idle Virtual Machines
If a virtual machine is not actively using all of its currently allocated memory, ESX/ESXi charges more for idle
memory than for memory that is in use. This is done to help prevent virtual machines from hoarding idle
memory.
The idle memory tax is applied in a progressive fashion. The effective tax rate increases as the ratio of idle
memory to active memory for the virtual machine rises. (In earlier versions of ESX that did not support
hierarchical resource pools, all idle memory for a virtual machine was taxed equally.)
You can modify the idle memory tax rate with the
Mem.SamplePeriod
virtual machines. See
N
In most cases, changes to
OTE
Memory Reclamation
ESX/ESXi hosts can reclaim memory from virtual machines.
An ESX/ESXi host allocates the amount of memory specified by a reservation directly to a virtual machine.
Anything beyond the reservation is allocated using the host's physical resources or, when physical resources
are not available, handled using special techniques such as ballooning or swapping. Hosts can use two
techniques for dynamically expanding or contracting the amount of memory allocated to virtual machines.
ESX/ESXi systems use a memory balloon driver (
n
running in a virtual machine. See
ESX/ESXi systems page from a virtual machine to a server swap file without any involvement by the guest
n
operating system. Each virtual machine has its own swap file.
Memory Balloon Driver
The memory balloon driver (
valuable by the guest operating system.
The driver uses a proprietary ballooning technique that provides predictable performance that closely matches
the behavior of a native system under similar memory constraints. This technique increases or decreases
memory pressure on the guest operating system, causing the guest to use its own native memory management
algorithms. When memory is tight, the guest operating system determines which pages to reclaim and, if
necessary, swaps them to its own virtual disk. See
VMware, Inc.
Mem.SamplePeriod
on page 99.
advanced attribute, to control how the system determines target memory allocations for
"Set Advanced Host Attributes,"
Mem.IdleTax
"Memory Balloon Driver,"
) collaborates with the server to reclaim pages that are considered least
vmmemctl
advanced setting. See
option. Use this option, together with the
Mem.IdleTax
on page 99.
are not necessary nor appropriate.
), loaded into the guest operating system
vmmemctl
on page 31.
Figure
3-2.
Chapter 3 Managing Memory Resources
"Set Advanced Host
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Esx 4.0Esxi 4.0Vcenter server 4.0

Table of Contents