SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
www.metron-athene.com
Taking a Trip Down “vSphere” Memory Lane
Jamie Baker
Principal Consultant
jamie.baker@metron-athene.com
www.metron-athene.com
Agenda
•  Memory Management Concepts
•  Memory Reclamation / Overcommitment
•  Resource Pool – Limits and Enforcement
•  Performance Management Reporting
•  Troubleshooting and Best Practices
•  References
www.metron-athene.com
www.metron-athene.com
Memory Management Concepts
•  Memory virtualization is next critical component
•  Processes see virtual memory
•  Guest operating systems use page tables to map virtual memory
addresses to physical memory addresses
•  The Memory Management Unit (MMU) translates virtual addresses
to physical addresses and the Translation Look-aside Buffer cache
help the MMU speed up these translations.
•  Page table is consulted if a TLB hit is not achievable.
•  The TLB is updated with virtual/physical address map, when page
table walk is completed.
324/07/2014
www.metron-athene.com
MMU Virtualization
•  Hosting multiple virtual machines on a single host requires:
–  Another level of virtualization – Host Physical Memory
•  Virtual Machine Monitor (VMM) maps “guest” physical addresses (PA)
to host physical addresses (MA)
•  To support the Guest operating system, the MMU must be virtualized
by using:
–  Software technique: shadow page tables
–  Hardware technique: Intel EPT and AMD RVI
424/07/2014
www.metron-athene.com
Software MMU - Shadow Page Tables
•  Are created for each primary page table
•  Consist of two mappings: VA -> PA and PA -> MA
•  Accelerate memory access
–  VMM points the hardware MMU directly at Shadow
Page Tables
–  Memory access runs as native speed
–  Ensures VM cannot access host physical memory that
is not associated
524/07/2014
www.metron-athene.com
Hardware MMU Virtualization
•  AMD RVI and Intel EPT permit two levels of address
mapping
–  Guest page tables
–  Nested page tables
•  When a virtual address is accessed, the hardware walks
both the guest page and nested page tables
•  Eliminates the need for VMM to synchronize shadow page
tables with guest page tables
•  Can affect performance of applications that stress the TLB
–  Increases the cost of a page walk
–  Can be mitigated by use of Large Pages
624/07/2014
www.metron-athene.com
Memory Virtualization Overhead
•  Software MMU virtualization incurs CPU overhead:
–  When new processes are created
•  New address spaces created
–  When context switching occurs
•  Address spaces are switched
–  Running large numbers of processes
•  Shadow page tables need updating
–  Allocating or deallocating pages
•  Hardware MMU virtualization incurs CPU overhead
–  When there is a TLB miss
–  Overall performance win over Shadow Page Tables
724/07/2014
www.metron-athene.com
Memory Reclamation Challenges
•  VM physical memory is not
“freed”
–  Memory is moved to the “free”
list
•  The hypervisor is not aware
when the VM releases
memory
–  It has no access to the VMs
“free” list
–  The VM can accrue lots of
host physical memory
•  Therefore, the hypervisor
cannot reclaim released VM
memory
824/07/2014
www.metron-athene.com
VM Memory Reclamation Techniques
•  The hypervisor relies on these techniques to “free” the host physical memory
•  Transparent page sharing (default)
–  redundant copies reclaimed
•  Ballooning
–  Forces guest OS to “free” up guest physical memory when the physical host memory is low
–  Balloon driver installed with VMware Tools
•  Memory Compression
–  Reduce number of memory pages it needs to swap out
–  Decompression latency is much smaller than swap-in latency
–  Compressing memory pages has significant less performance impact
•  Swap to Host Cache
–  Allows users to configure a special swap-cache on SSD storage
–  Much faster access than regular host-level swap area, significantly reducing access latency
•  Host-level (hypervisor) swapping
–  Used when TPS and Ballooning are not enough
–  Swaps out guest physical memory to the swap file
–  Might severely penalize guest performance
9
www.metron-athene.com
Memory Management Reporting
0
1,000
2,000
3,000
4,000
5,000
Average Swap space in use MB
Average Amount of memory used by memory control MB
Average Memory shared across VMs MB
Production Cluster
Memory Shared, Ballooned and Swapped
VIXEN (ESX)
1024/07/2014
www.metron-athene.com
Why does the Hypervisor Reclaim Memory?
•  Hypervisor reclaims memory to support memory
overcommitment
•  ESX host memory is overcommitted when the total amount
of VM physical memory exceeds the total amount of host
1124/07/2014
www.metron-athene.com
When to Reclaim Host Memory
•  ESX/ESXi maintains four host free memory
states and associated thresholds:
–  High (6%), Soft (4%), Hard (2%), Low (1%)
•  If the host free memory drops towards the stated
thresholds, the following reclamation technique is
used:
1224/07/2014
High	
  
So(	
  
Hard	
  
Low	
  
None	
  
Ballooning	
  
Swapping	
  and	
  Ballooning	
  
Swapping	
  
www.metron-athene.com
vSwp file usage and placement guidelines
•  Used when memory is overcommitted
•  vSwp file is created for every VM
•  Default placement is with VM files
•  Can affect vMotion performance if vSwp file is not
located on Shared Storage
1324/07/2014
www.metron-athene.com
VMkernel Swap
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
VM	
  Memory
Balloon
Swap	
  File
Reservation	
  
MB
Example:
•  Assume maximum memory
contention
•  Default 65% can be Balloon
driver
•  Example Reservation is 30%
•  5% In the VMkernel (.vSwp)
file.
www.metron-athene.com
Resource Pool – Memory Reporting
0
5,000
10,000
15,000
20,000
25,000
ESX Host (Vixen)
Priority Guests RP
Memory Limit vs. Memory Used Per Guest
05/17/2010
• Pool	
  Limit	
  
• Guest	
  Memory	
  Usage	
  
• Pool	
  Memory	
  Usage	
  
www.metron-athene.com
Use of Limits
1624/07/2014
Web 2 Web 3
www.metron-athene.com
Enforcing Limits – Web2 VM
1724/07/2014
www.metron-athene.com
Enforcing Limits – Web3 VM
1824/07/2014
www.metron-athene.com
ESX Host (Web2) – VM Active Memory
1924/07/2014
www.metron-athene.com
ESX Host (Web 3) – VM Active Memory
2024/07/2014
Additional
VM hosted
Awacs-­‐web3	
  (Yell	
  VM	
  Data)	
  
www.metron-athene.com
Limits are enforced!
2124/07/2014
awacs-­‐web3	
  
awacs-­‐web2	
  
www.metron-athene.com
Memory Limits – A guide
•  Granted Memory overruled by Resource Pool limit
•  Enforces limits by reclaiming memory from VM
•  Be aware of any limits
–  Resource Pool or VM
•  Monitor your VM Active and Host Consumed VM Memory
•  Reduce the Granted Memory rather than enforce limits
•  Use Reservations where necessary
2224/07/2014
www.metron-athene.com
Monitoring VM and Host Memory Usage
•  Active
–  amount of physical host memory currently used by the guest
–  displayed as “Guest Memory Usage” in vCenter at Guest level
•  Consumed
–  amount of physical ESX memory allocated (granted) to the guest, accounting for
savings from memory sharing with other guests.
–  includes memory used by Service Console & VMKernel
–  displayed as “Memory Usage” in vCenter at Host level
–  displayed as “Host Memory Usage” in vCenter at Guest level
•  If consumed host memory > active memory
–  Host physical memory not overcommitted
–  Active guest usage low but high host physical memory assigned
–  Perfectly normal
•  If consumed host memory <= active memory
–  Active guest memory might not completely reside in host physical memory
–  This might point to potential performance degradation
2324/07/2014
www.metron-athene.com
Active and Consumed - Report
2424/07/2014
0
500
1000
1500
2000
2500
3000
3500
4000
4500
22/11/2011
Amount	
  of	
  host	
  memory	
  consumed	
  by	
  the	
  VM	
  MB
Windows	
  Used	
  Memory	
  MB
Active	
  Memory	
  MB
Total	
  Physical	
  Memory	
  MB
ORMNVAT01
VM Host Consumed vs. Active VM Memory MB
www.metron-athene.com
Memory Troubleshooting
1.  Active host-level swapping
–  Cause: excessive memory overcommitment
–  Resolution:
•  reduce memory overcommitment (add physical memory / reduce VMs)
•  enable balloon driver in all VMs
•  reduce memory reservations and use shares
2. Guest operating system paging
–  Monitor the hosts ballooning activity
–  If host ballooning > 0 look at the VM ballooning activity
–  If VM ballooning > 0 check for high paging activity within the guest
OS
3. When swapping occurs before ballooning
–  Many VMs are powered on at same time
•  VMs might access a large portion of their allocated memory
•  At the same time, the balloon drivers have not started yet
•  This causes the host to swap VMs
2524/07/2014
www.metron-athene.com
Memory Performance Best Practices
•  Allocate enough memory to hold the working set
of applications running in the virtual machine,
thus minimizing swapping
•  Never disable the balloon driver
•  Keep transparent page sharing enabled
•  Avoid over committing memory to the point that it
results in heavy memory reclamation
2624/07/2014
www.metron-athene.com
References
•  http://www.vmware.com/files/pdf/vsphere_pricing.pdf
•  http://www.vmware.com/technical-resources/performance/
resources.html
•  http://www.metron-athene.com/training/webinars/index.html
2724/07/2014
www.metron-athene.com
Taking a Trip Down “vSphere” Memory Lane
Jamie Baker
Principal Consultant
jamie.baker@metron-athene.com

Weitere ähnliche Inhalte

Was ist angesagt?

Nimbus project
Nimbus projectNimbus project
Nimbus projectaimas06
 
Memcached: What is it and what does it do? (PHP Version)
Memcached: What is it and what does it do? (PHP Version)Memcached: What is it and what does it do? (PHP Version)
Memcached: What is it and what does it do? (PHP Version)Brian Moon
 
Master VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementMaster VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementIwan Rahabok
 
Apache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutApache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutSander Temme
 
Postgres on OpenStack
Postgres on OpenStackPostgres on OpenStack
Postgres on OpenStackEDB
 
Improving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with MemcachedImproving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with MemcachedAcquia
 
Deploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQLDeploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQLDenish Patel
 

Was ist angesagt? (9)

Nimbus project
Nimbus projectNimbus project
Nimbus project
 
Memcached: What is it and what does it do? (PHP Version)
Memcached: What is it and what does it do? (PHP Version)Memcached: What is it and what does it do? (PHP Version)
Memcached: What is it and what does it do? (PHP Version)
 
ARM-KVM: Weather Report
ARM-KVM: Weather ReportARM-KVM: Weather Report
ARM-KVM: Weather Report
 
Master VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementMaster VMware Performance and Capacity Management
Master VMware Performance and Capacity Management
 
Apache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutApache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling Out
 
Aem maintenance
Aem maintenanceAem maintenance
Aem maintenance
 
Postgres on OpenStack
Postgres on OpenStackPostgres on OpenStack
Postgres on OpenStack
 
Improving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with MemcachedImproving Website Performance and Scalability with Memcached
Improving Website Performance and Scalability with Memcached
 
Deploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQLDeploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQL
 

Andere mochten auch

Presentation v mware performance overview
Presentation   v mware performance overviewPresentation   v mware performance overview
Presentation v mware performance overviewsolarisyourep
 
webinar capacity management for hyper-v
webinar capacity management for hyper-v webinar capacity management for hyper-v
webinar capacity management for hyper-v Metron
 
A roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_managementA roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_managementMetron
 
Capacity Managementand the Cloud
Capacity Managementand the CloudCapacity Managementand the Cloud
Capacity Managementand the Clouddannyq
 
Justifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investmentJustifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investmentMetron
 
webinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practiceswebinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best PracticesMetron
 
Hardware Virtualization
Hardware VirtualizationHardware Virtualization
Hardware VirtualizationJeSam Kim
 
Capacity Management for SAN
Capacity Management for SANCapacity Management for SAN
Capacity Management for SANMetron
 

Andere mochten auch (9)

Presentation v mware performance overview
Presentation   v mware performance overviewPresentation   v mware performance overview
Presentation v mware performance overview
 
webinar capacity management for hyper-v
webinar capacity management for hyper-v webinar capacity management for hyper-v
webinar capacity management for hyper-v
 
A roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_managementA roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_management
 
Handout2o
Handout2oHandout2o
Handout2o
 
Capacity Managementand the Cloud
Capacity Managementand the CloudCapacity Managementand the Cloud
Capacity Managementand the Cloud
 
Justifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investmentJustifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investment
 
webinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practiceswebinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practices
 
Hardware Virtualization
Hardware VirtualizationHardware Virtualization
Hardware Virtualization
 
Capacity Management for SAN
Capacity Management for SANCapacity Management for SAN
Capacity Management for SAN
 

Ähnlich wie Vmware vsphere taking_a_trip_down_memory_lane

vSphere APIs for performance monitoring
vSphere APIs for performance monitoringvSphere APIs for performance monitoring
vSphere APIs for performance monitoringAlan Renouf
 
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Suresh Kumar
 
Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Suresh Kumar
 
The have no fear guide to virtualizing databases
The have no fear guide to virtualizing databasesThe have no fear guide to virtualizing databases
The have no fear guide to virtualizing databasesSolarWinds
 
More on Virtualization 3.pptx
More on Virtualization 3.pptxMore on Virtualization 3.pptx
More on Virtualization 3.pptxshruti533256
 
4. Memory virtualization and management
4. Memory virtualization and management4. Memory virtualization and management
4. Memory virtualization and managementHwanju Kim
 
Dynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SDynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SEduardo Castro
 
Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Eduardo Castro
 
Virtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - VarrowVirtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - VarrowAndrew Miller
 
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...The Linux Foundation
 
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server VMworld
 
Scott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practicesScott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practicesNordic Infrastructure Conference
 
6. Live VM migration
6. Live VM migration6. Live VM migration
6. Live VM migrationHwanju Kim
 
VMworld 2013: Performance and Capacity Management of DRS Clusters
VMworld 2013: Performance and Capacity Management of DRS Clusters VMworld 2013: Performance and Capacity Management of DRS Clusters
VMworld 2013: Performance and Capacity Management of DRS Clusters VMworld
 
Cloud stack overview
Cloud stack overviewCloud stack overview
Cloud stack overviewhowie YU
 
Exchange 2010 New England Vmug
Exchange 2010 New England VmugExchange 2010 New England Vmug
Exchange 2010 New England Vmugcsharney
 
Vmware srm 6.1
Vmware srm 6.1Vmware srm 6.1
Vmware srm 6.1faz4eva_27
 
Virtual Infrastructure Disaster Recovery
Virtual Infrastructure Disaster RecoveryVirtual Infrastructure Disaster Recovery
Virtual Infrastructure Disaster RecoveryDavoud Teimouri
 

Ähnlich wie Vmware vsphere taking_a_trip_down_memory_lane (20)

vSphere APIs for performance monitoring
vSphere APIs for performance monitoringvSphere APIs for performance monitoring
vSphere APIs for performance monitoring
 
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
 
Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02
 
The have no fear guide to virtualizing databases
The have no fear guide to virtualizing databasesThe have no fear guide to virtualizing databases
The have no fear guide to virtualizing databases
 
More on Virtualization 3.pptx
More on Virtualization 3.pptxMore on Virtualization 3.pptx
More on Virtualization 3.pptx
 
4. Memory virtualization and management
4. Memory virtualization and management4. Memory virtualization and management
4. Memory virtualization and management
 
Dynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SDynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 S
 
Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1
 
Virtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - VarrowVirtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - Varrow
 
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
 
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
 
Hyper-V Dynamic Memory in Depth
Hyper-V Dynamic Memory in Depth Hyper-V Dynamic Memory in Depth
Hyper-V Dynamic Memory in Depth
 
Scott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practicesScott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practices
 
6. Live VM migration
6. Live VM migration6. Live VM migration
6. Live VM migration
 
VMworld 2013: Performance and Capacity Management of DRS Clusters
VMworld 2013: Performance and Capacity Management of DRS Clusters VMworld 2013: Performance and Capacity Management of DRS Clusters
VMworld 2013: Performance and Capacity Management of DRS Clusters
 
Cloud stack overview
Cloud stack overviewCloud stack overview
Cloud stack overview
 
Exchange 2010 New England Vmug
Exchange 2010 New England VmugExchange 2010 New England Vmug
Exchange 2010 New England Vmug
 
SQL 2005 Memory Module
SQL 2005 Memory ModuleSQL 2005 Memory Module
SQL 2005 Memory Module
 
Vmware srm 6.1
Vmware srm 6.1Vmware srm 6.1
Vmware srm 6.1
 
Virtual Infrastructure Disaster Recovery
Virtual Infrastructure Disaster RecoveryVirtual Infrastructure Disaster Recovery
Virtual Infrastructure Disaster Recovery
 

Mehr von Metron

Cloud Capacity Management
Cloud Capacity ManagementCloud Capacity Management
Cloud Capacity ManagementMetron
 
It's all about the cmis, no trouble
It's all about the cmis, no troubleIt's all about the cmis, no trouble
It's all about the cmis, no troubleMetron
 
Cost savings and expert system advice with athene ES/1
Cost savings and expert system advice with athene ES/1 Cost savings and expert system advice with athene ES/1
Cost savings and expert system advice with athene ES/1 Metron
 
Virtualisation Oversubscription - What's so scary?
Virtualisation Oversubscription - What's so scary?Virtualisation Oversubscription - What's so scary?
Virtualisation Oversubscription - What's so scary?Metron
 
Top 5 performance and capacity challenges for z/OS
Top 5 performance and capacity challenges for z/OS Top 5 performance and capacity challenges for z/OS
Top 5 performance and capacity challenges for z/OS Metron
 
Essential reporting for capacity and performance management webinar 11 18
Essential reporting for capacity and performance management webinar 11 18Essential reporting for capacity and performance management webinar 11 18
Essential reporting for capacity and performance management webinar 11 18Metron
 
Capacity Management for system z license charge reporting
Capacity Management for system z  license charge reportingCapacity Management for system z  license charge reporting
Capacity Management for system z license charge reportingMetron
 
Clouds and costs
Clouds and costsClouds and costs
Clouds and costsMetron
 
Top 5 key capacity management concerns for Unix
Top 5 key capacity management concerns for UnixTop 5 key capacity management concerns for Unix
Top 5 key capacity management concerns for UnixMetron
 
Capacity Management - Telling the story
Capacity Management -  Telling the storyCapacity Management -  Telling the story
Capacity Management - Telling the storyMetron
 
Justifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investmentJustifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investmentMetron
 
Top 5 vmware tips
Top 5 vmware tips Top 5 vmware tips
Top 5 vmware tips Metron
 
Data data everywhere
Data data everywhereData data everywhere
Data data everywhereMetron
 
Effective capacity management at the heart of green IT
Effective capacity management  at the heart of green ITEffective capacity management  at the heart of green IT
Effective capacity management at the heart of green ITMetron
 
Why do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usa
Why do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usaWhy do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usa
Why do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usaMetron
 
A roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_managementA roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_managementMetron
 

Mehr von Metron (16)

Cloud Capacity Management
Cloud Capacity ManagementCloud Capacity Management
Cloud Capacity Management
 
It's all about the cmis, no trouble
It's all about the cmis, no troubleIt's all about the cmis, no trouble
It's all about the cmis, no trouble
 
Cost savings and expert system advice with athene ES/1
Cost savings and expert system advice with athene ES/1 Cost savings and expert system advice with athene ES/1
Cost savings and expert system advice with athene ES/1
 
Virtualisation Oversubscription - What's so scary?
Virtualisation Oversubscription - What's so scary?Virtualisation Oversubscription - What's so scary?
Virtualisation Oversubscription - What's so scary?
 
Top 5 performance and capacity challenges for z/OS
Top 5 performance and capacity challenges for z/OS Top 5 performance and capacity challenges for z/OS
Top 5 performance and capacity challenges for z/OS
 
Essential reporting for capacity and performance management webinar 11 18
Essential reporting for capacity and performance management webinar 11 18Essential reporting for capacity and performance management webinar 11 18
Essential reporting for capacity and performance management webinar 11 18
 
Capacity Management for system z license charge reporting
Capacity Management for system z  license charge reportingCapacity Management for system z  license charge reporting
Capacity Management for system z license charge reporting
 
Clouds and costs
Clouds and costsClouds and costs
Clouds and costs
 
Top 5 key capacity management concerns for Unix
Top 5 key capacity management concerns for UnixTop 5 key capacity management concerns for Unix
Top 5 key capacity management concerns for Unix
 
Capacity Management - Telling the story
Capacity Management -  Telling the storyCapacity Management -  Telling the story
Capacity Management - Telling the story
 
Justifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investmentJustifying capacity management by demonstrating the return on investment
Justifying capacity management by demonstrating the return on investment
 
Top 5 vmware tips
Top 5 vmware tips Top 5 vmware tips
Top 5 vmware tips
 
Data data everywhere
Data data everywhereData data everywhere
Data data everywhere
 
Effective capacity management at the heart of green IT
Effective capacity management  at the heart of green ITEffective capacity management  at the heart of green IT
Effective capacity management at the heart of green IT
 
Why do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usa
Why do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usaWhy do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usa
Why do we_model_in_the_uk_monitor_in_japan_and_manage_in_the_usa
 
A roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_managementA roadmap to_success_in_capacity_management
A roadmap to_success_in_capacity_management
 

Kürzlich hochgeladen

In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime GiridihGiridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridihmeghakumariji156
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxAniqa Zai
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numberssuginr1
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...HyderabadDolls
 
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service AvailableVastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Availablegargpaaro
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...
Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...
Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...HyderabadDolls
 
Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?RemarkSemacio
 
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...HyderabadDolls
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...HyderabadDolls
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareGraham Ware
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangeThinkInnovation
 

Kürzlich hochgeladen (20)

In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime GiridihGiridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
Giridih Escorts Service Girl ^ 9332606886, WhatsApp Anytime Giridih
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptx
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbers
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service AvailableVastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Nandurbar [ 7014168258 ] Call Me For Genuine Models...
 
Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...
Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...
Kalyani ? Call Girl in Kolkata | Service-oriented sexy call girls 8005736733 ...
 
Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?
 
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
Lake Town / Independent Kolkata Call Girls Phone No 8005736733 Elite Escort S...
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
 

Vmware vsphere taking_a_trip_down_memory_lane

  • 1. www.metron-athene.com Taking a Trip Down “vSphere” Memory Lane Jamie Baker Principal Consultant jamie.baker@metron-athene.com
  • 2. www.metron-athene.com Agenda •  Memory Management Concepts •  Memory Reclamation / Overcommitment •  Resource Pool – Limits and Enforcement •  Performance Management Reporting •  Troubleshooting and Best Practices •  References www.metron-athene.com
  • 3. www.metron-athene.com Memory Management Concepts •  Memory virtualization is next critical component •  Processes see virtual memory •  Guest operating systems use page tables to map virtual memory addresses to physical memory addresses •  The Memory Management Unit (MMU) translates virtual addresses to physical addresses and the Translation Look-aside Buffer cache help the MMU speed up these translations. •  Page table is consulted if a TLB hit is not achievable. •  The TLB is updated with virtual/physical address map, when page table walk is completed. 324/07/2014
  • 4. www.metron-athene.com MMU Virtualization •  Hosting multiple virtual machines on a single host requires: –  Another level of virtualization – Host Physical Memory •  Virtual Machine Monitor (VMM) maps “guest” physical addresses (PA) to host physical addresses (MA) •  To support the Guest operating system, the MMU must be virtualized by using: –  Software technique: shadow page tables –  Hardware technique: Intel EPT and AMD RVI 424/07/2014
  • 5. www.metron-athene.com Software MMU - Shadow Page Tables •  Are created for each primary page table •  Consist of two mappings: VA -> PA and PA -> MA •  Accelerate memory access –  VMM points the hardware MMU directly at Shadow Page Tables –  Memory access runs as native speed –  Ensures VM cannot access host physical memory that is not associated 524/07/2014
  • 6. www.metron-athene.com Hardware MMU Virtualization •  AMD RVI and Intel EPT permit two levels of address mapping –  Guest page tables –  Nested page tables •  When a virtual address is accessed, the hardware walks both the guest page and nested page tables •  Eliminates the need for VMM to synchronize shadow page tables with guest page tables •  Can affect performance of applications that stress the TLB –  Increases the cost of a page walk –  Can be mitigated by use of Large Pages 624/07/2014
  • 7. www.metron-athene.com Memory Virtualization Overhead •  Software MMU virtualization incurs CPU overhead: –  When new processes are created •  New address spaces created –  When context switching occurs •  Address spaces are switched –  Running large numbers of processes •  Shadow page tables need updating –  Allocating or deallocating pages •  Hardware MMU virtualization incurs CPU overhead –  When there is a TLB miss –  Overall performance win over Shadow Page Tables 724/07/2014
  • 8. www.metron-athene.com Memory Reclamation Challenges •  VM physical memory is not “freed” –  Memory is moved to the “free” list •  The hypervisor is not aware when the VM releases memory –  It has no access to the VMs “free” list –  The VM can accrue lots of host physical memory •  Therefore, the hypervisor cannot reclaim released VM memory 824/07/2014
  • 9. www.metron-athene.com VM Memory Reclamation Techniques •  The hypervisor relies on these techniques to “free” the host physical memory •  Transparent page sharing (default) –  redundant copies reclaimed •  Ballooning –  Forces guest OS to “free” up guest physical memory when the physical host memory is low –  Balloon driver installed with VMware Tools •  Memory Compression –  Reduce number of memory pages it needs to swap out –  Decompression latency is much smaller than swap-in latency –  Compressing memory pages has significant less performance impact •  Swap to Host Cache –  Allows users to configure a special swap-cache on SSD storage –  Much faster access than regular host-level swap area, significantly reducing access latency •  Host-level (hypervisor) swapping –  Used when TPS and Ballooning are not enough –  Swaps out guest physical memory to the swap file –  Might severely penalize guest performance 9
  • 10. www.metron-athene.com Memory Management Reporting 0 1,000 2,000 3,000 4,000 5,000 Average Swap space in use MB Average Amount of memory used by memory control MB Average Memory shared across VMs MB Production Cluster Memory Shared, Ballooned and Swapped VIXEN (ESX) 1024/07/2014
  • 11. www.metron-athene.com Why does the Hypervisor Reclaim Memory? •  Hypervisor reclaims memory to support memory overcommitment •  ESX host memory is overcommitted when the total amount of VM physical memory exceeds the total amount of host 1124/07/2014
  • 12. www.metron-athene.com When to Reclaim Host Memory •  ESX/ESXi maintains four host free memory states and associated thresholds: –  High (6%), Soft (4%), Hard (2%), Low (1%) •  If the host free memory drops towards the stated thresholds, the following reclamation technique is used: 1224/07/2014 High   So(   Hard   Low   None   Ballooning   Swapping  and  Ballooning   Swapping  
  • 13. www.metron-athene.com vSwp file usage and placement guidelines •  Used when memory is overcommitted •  vSwp file is created for every VM •  Default placement is with VM files •  Can affect vMotion performance if vSwp file is not located on Shared Storage 1324/07/2014
  • 14. www.metron-athene.com VMkernel Swap 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% VM  Memory Balloon Swap  File Reservation   MB Example: •  Assume maximum memory contention •  Default 65% can be Balloon driver •  Example Reservation is 30% •  5% In the VMkernel (.vSwp) file.
  • 15. www.metron-athene.com Resource Pool – Memory Reporting 0 5,000 10,000 15,000 20,000 25,000 ESX Host (Vixen) Priority Guests RP Memory Limit vs. Memory Used Per Guest 05/17/2010 • Pool  Limit   • Guest  Memory  Usage   • Pool  Memory  Usage  
  • 19. www.metron-athene.com ESX Host (Web2) – VM Active Memory 1924/07/2014
  • 20. www.metron-athene.com ESX Host (Web 3) – VM Active Memory 2024/07/2014 Additional VM hosted Awacs-­‐web3  (Yell  VM  Data)  
  • 22. www.metron-athene.com Memory Limits – A guide •  Granted Memory overruled by Resource Pool limit •  Enforces limits by reclaiming memory from VM •  Be aware of any limits –  Resource Pool or VM •  Monitor your VM Active and Host Consumed VM Memory •  Reduce the Granted Memory rather than enforce limits •  Use Reservations where necessary 2224/07/2014
  • 23. www.metron-athene.com Monitoring VM and Host Memory Usage •  Active –  amount of physical host memory currently used by the guest –  displayed as “Guest Memory Usage” in vCenter at Guest level •  Consumed –  amount of physical ESX memory allocated (granted) to the guest, accounting for savings from memory sharing with other guests. –  includes memory used by Service Console & VMKernel –  displayed as “Memory Usage” in vCenter at Host level –  displayed as “Host Memory Usage” in vCenter at Guest level •  If consumed host memory > active memory –  Host physical memory not overcommitted –  Active guest usage low but high host physical memory assigned –  Perfectly normal •  If consumed host memory <= active memory –  Active guest memory might not completely reside in host physical memory –  This might point to potential performance degradation 2324/07/2014
  • 24. www.metron-athene.com Active and Consumed - Report 2424/07/2014 0 500 1000 1500 2000 2500 3000 3500 4000 4500 22/11/2011 Amount  of  host  memory  consumed  by  the  VM  MB Windows  Used  Memory  MB Active  Memory  MB Total  Physical  Memory  MB ORMNVAT01 VM Host Consumed vs. Active VM Memory MB
  • 25. www.metron-athene.com Memory Troubleshooting 1.  Active host-level swapping –  Cause: excessive memory overcommitment –  Resolution: •  reduce memory overcommitment (add physical memory / reduce VMs) •  enable balloon driver in all VMs •  reduce memory reservations and use shares 2. Guest operating system paging –  Monitor the hosts ballooning activity –  If host ballooning > 0 look at the VM ballooning activity –  If VM ballooning > 0 check for high paging activity within the guest OS 3. When swapping occurs before ballooning –  Many VMs are powered on at same time •  VMs might access a large portion of their allocated memory •  At the same time, the balloon drivers have not started yet •  This causes the host to swap VMs 2524/07/2014
  • 26. www.metron-athene.com Memory Performance Best Practices •  Allocate enough memory to hold the working set of applications running in the virtual machine, thus minimizing swapping •  Never disable the balloon driver •  Keep transparent page sharing enabled •  Avoid over committing memory to the point that it results in heavy memory reclamation 2624/07/2014
  • 28. www.metron-athene.com Taking a Trip Down “vSphere” Memory Lane Jamie Baker Principal Consultant jamie.baker@metron-athene.com