How to successfully Virtualize MS Exchange – Part 3 – Memory

In Part 1 and Part 2, we discussed how to size and configure Exchange VMs to meet CPU requirements. In Part 3 we will focus on virtual memory (vRAM).

As Exchange 2013 is quite RAM intensive and is not unusual to have memory requirements of >128GB RAM in larger deployments. As such, one of the first things we should consider is Virtual Machine maximums.

Luckily in recent years the maximum VM size in vSphere has increased and is no longer a constraint for virtualizing even the largest of Exchange environments.

The current maximum vRAM configuration per VM is shown below:

vSphere Virtual Machine RAM Maximums

Maximum vRAM per VM1TB (vSphere 5.0 or later)
Maximum vRAM per VM: 255GB (vSphere 4.1)

The key point here is memory is in no way a constraining factor when virtualizing Exchange even in older vSphere 4.1 deployments.

Memory Sizing

For maximum Memory performance, sizing the Exchange VM within a NUMA node gives the maximum benefit from NUMA locality, meaning the latency between the CPU and RAM is minimized.

In the event the memory requirements exceed the NUMA node, consider scaling out until you have at least 4 Exchange VMs (across 4 ESXi hosts) before scaling Exchange VMs up. This ensures higher resiliency and aligns with a Virtualization friendly scale out approach. Once the environment has 4 or more Exchange VMs, scaling up beyond the size of a NUMA node can be a good option to reduce the number of Exchange instances to manage and license without significantly impacting resiliency.

Memory Overcommitment

ESXi has excellent memory overcommitment capabilities which can work very well depending on the Operating system and application running within the guest. However Exchange is generally considered a Business Critical Application and as such, overcommitting memory for Exchange is generally not a good idea and should be avoided where possible.

Memory Reservations

For Exchange VMs, I recommended configuring the VM with “All Memory Locked” or in other words, a 100% memory reservation.

This has two advantages, the first being consistent memory performance for MS Exchange which is critical to ensure a great end user experience.

The second is the potentially large storage saving as the vSwap file is eliminated. For example, if an Exchange VM has 128Gb RAM and no memory reservation, a 128Gb vSwap file will be created by default in the same Datastore as the VMs .vmx file which could impact storage sizing and performance.

ESXi Host / Cluster Sizing Considerations

Exchange VMs are typically larger than the average VM, as a result they can consume a significant percentage of an ESXi hosts memory resources. As a result it is important to size your ESXi hosts to have sufficient RAM for the Exchange VMs.

As such in cases where the Exchange VM is sized to exceed the NUMA node, I recommend sizing ESXi hosts to have at least 25% more physical RAM than the vRAM assigned to your Exchange VMs.

Example: If your Exchange VM is assigned 96Gb, the ESXi hosts in the cluster should have at least 128Gb. This ensures memory for the hypervisor and other smaller VMs such as Domain Controllers to service things like the global catalog requirements for Exchange without contention.

Recommendations:

1. Set “All Memory Locked” (100% Memory Reservation) for Exchange VMs.
2. Where possible, size the Exchange VMs RAM within a NUMA node.
3. Where Exchange RAM requirements exceed that of the NUMA node ensure the size ESXi hosts to have at least 25% more RAM than the Exchange VM (or the largest vRAM VM in the cluster)
4. Ensure VMs vRAM is right sized after deployment to minimize waste (especially considering the recommendation to use memory reservations)

Back to the Index of How to successfully Virtualize MS Exchange.

VMware Certified Associate – Data Center Virtualization , Cloud and Workforce Mobility

Recently VMware has launched 3 new certifications aimed at the foundation layer to demonstrate your fundamental understanding of VMware technology in three key areas, being Datacenter Virtualization, Cloud and Workforce Mobility.

The good news is, these exams can be registered for, and taken online, and if your willing to sit the exams before the end of October 2013 Jan 2014, you can use the below voucher to sit all 3 exams for 50% off!

50% off Voucher

1. VCA13GKN

If the voucher does not work for any reason unfortunately there is nothing I can do to assist.

VMware Certified Associate – VCAC510 – Cloud (VCA-Cloud)

The self-paced e-learning class can be found here and taken for free.

VMware Certified Associate – VCAD510 – Data Center Virtualization (VCA-DCV)

The self-paced e-learning class can be found here and taken for free.

VMware Certified Associate – VCAW510 – Workforce Mobility (VCA-WM)

The self-paced e-learning class can be found here and taken for free.

Coming soon there will also be the VMware Certified Associate – Network Virtualization (VCA-NV) for those folk who are focusing on the emerging network virtualization path with NSX (formally Nicira).

So you have nothing to loose, study the free self-paced e-learning classes, register for the exams and sit them at 50% off, in the comfort of your own home.

I sat and passed all three exams yesterday and I must congratulate VMware Education as I feel they have added a entry level certification for those people either starting in virtualization, non VMware partners (customers) who cannot access the VMware Sales Professional (VSP) or VMware Technical Sales Professional (VTSP) tracks, or for people who do not intend going down the technical certification path of VMware Certified Professional (VCP) , VMware Certified Advanced Professional (VCAP) or VMware Certified Design Expert (VCDX).

I guess for me the exams were pretty easy, but I have had many years experience including administration, implementation and architecture, so the exams are not really designed for people who have already completed, VCP or higher, but the exam questions tests general product knowledge which shows the test taker understands what VMware product helps solve what problem which is a important.

For anyone considering going down the VCP track, VCA is a great starting point and will help build your confidence to tackle the harder VCP (and beyond) exams.

Related Articles

1. My VCDX Journey  

2. The VCDX Application Process

3. My VCAP-DTD (Design Design) Experience

VCAtrifecta