Before we commence this blog post, do a few things to see if this issue affects you:
1. Check what processors you have in your ESX server – if you have the 55xx series of Xeon processors, whether they are L, E or X variants, you may be affected. Some AMD servers are also affected – haven’t confirmed which.
2. You must be running vSphere (ESX 4.0) – I haven’t verified this on ESXi 4.0 – comments would be appreciated.
3. Select a host, verify that the amount of RAM allocated to all VMs running on that host is equal to the amount of RAM usage displayed in the Summary tab
What’s going on?
Basically, Transparent Page Sharing is “broken” as the vMMU likes Large Pages. As memory gets scarce, these Large Pages will be broken up into Smaller Pages and transparently page shared – this is different behaviour to previous VMware installations on non-Nehalem processors. Transparent page sharing works only for small pages (VMware are investigating an efficient way to implement it for Large Pages). On Nehalem CPU systems using large pages offers better MMU performance and so ESX takes advantage of Large Pages transparently.
So what you’re saying is that disabling Large Pages allocation lowers performance?
In a word: yes. In a more winded explanation – no, not hugely. VMware have a PDF on Large Pages performance:
In ESX Server 3.5 and ESX Server 3i v3.5, large pages cannot be shared as copy‐on‐write pages. This means, the ESX Server page sharing technique might share less memory when large pages are used instead of small pages.
In other words, if you have an ESX farm full of XenApp and Terminal Servers, then yes, you will see a performance decrease by disabling Large Pages. For infrastructure servers such as your Active Directory, your Web Sites, your databases, Exchange and file servers, you should see almost no impact – that has certainly been my experience.
So how do I disable it?

1. Set Mem.AllocGuestLargePage to 0 on all hosts (in Advanced Settings)
2. VMotion all VMs off
3. Put host into Maintenance Mode
4. Take host out of Maintenance Mode
5. VMotion the VMs back onto the host
6. Repeat 1-5 for all hosts affected.
Thanks to Duncan’s post for informing me on where to find the Large Pages performance PDF.
Cheers,
Leo


