A Principled Technologies report: Hands-on testing. Real-world results.

Run more VMs and get better performance with VMware vSphere 8

Compared to Red Hat OpenShift Virtualization 4.16.2, the VMware virtualization platform supported 62% more database transactions and sustained consistent database performance while scaling up VMs due to efficient memory management methods

Peak workloads can strain physical data center resources, potentially causing performance loss without proper configuration. In virtual environments, the memory management strategies of memory oversubscription and memory overcommitment can help maximize the use of physical resources, increase VM density, and meet workload demand. Different virtualization solutions manage memory in various ways, and VMware® vSphere® 8 Update 3 offers a dedicated memory overcommitment feature for helping balance VM performance with density. But how does the memory management of a vSphere solution stack up against its competitors?

We compared the performance and VM density of a VMware vSphere 8 Update 3 solution to that of a Red Hat® OpenShift Virtualization 4.16.2 solution. After measuring online transaction processing (OLTP) performance at a baseline level using memory oversubscription but without using memory overcommitment, we began overcommitting memory on both solutions and increased the VM density until we saw significant (10 percent or more) performance degradation.

At every level of VM density, including the baseline, the vSphere solution supported more database transactions in NOPM than the OpenShift solution. Additionally, the OpenShift solution supported fewer VMs before experiencing significant degradation whereas the vSphere solution ran double the number of VMs over baseline before crossing the performance threshold. By supporting more VMs and better OLTP performance, organizations with a vSphere environment can meet more transactional database demand without adding more servers and licenses.

Higher VM density with consistent performance: Support 1.5 times the VMs and maintain consistent performance for longer under load. Better total OLTP performance: Up to 62 percent more SQL Server new orders per minute. No configuration: vSphere enables memory overcommitment by default.

Benefits of memory oversubscription

In virtualized environments, memory oversubscription allows organizations to allocate more virtual memory to VMs than the host system physically has. The memory management technique assumes that all VMs will not use their full allocated memory simultaneously, which allows the virtual environment to better use physical memory resources. Memory overcommitment can also help with peak workloads but can incur a serious performance penalty. Organizations can consider memory operationally overcommitted if the combined working memory footprint of all VMs exceeds the host memory sizes. This approach to memory management offers a number of benefits:

  • Cost savings – Running more workloads without additional hardware could translate to lower first- and second-order equipment, operational, and staff costs. Organizations could do more with existing infrastructure.
  • Increased VM density – Supporting more VMs on a physical host can mean fewer necessary physical servers to meet workload demand, thus potentially saving on operating costs, such as power, cooling, and server management and monitoring. Our baseline testing scenario demonstrates this potential; we offered the 10 VMs more memory than the server physically had, but the VMs did not fully use the allocated memory. We oversubscribed memory, but we did not overcommit it.
  • Improved resource utilization – Memory overcommitment enables better utilization of physical memory resources. The system can run more processes when all VMs are not using all their allocated memory.
  • Flexibility in resource management – Memory overcommitment provides flexibility to scale virtual environments quickly and efficiently. It allows administrators to allocate and adjust memory resources based on the dynamic needs of workloads.
  • Enhanced performance – When managed properly, memory overcommitment can lead to enhanced performance by ensuring critical workloads have access to the memory they need when they need it, while less critical workloads share available resources.

While memory oversubscription and overcommitment offer significant advantages, organizations must ensure proper VM configuration, management, and monitoring to prevent potential performance issues or system instability.

How we tested

Data center and infrastructure admins commonly aim to maximize the number of VMs that can run well, and they must balance performance with VM density. Efficiently using a server’s resources helps achieve necessary performance levels while making data centers more efficient overall, but when demand overburdens resources, such as memory, performance can degrade.

We started with 10 SQL Server VMs and used the TPROC-C workload to measure the level of OLTP performance (in NOPM) each solution achieved while oversubscribed with memory but without overcommitting it or stressing other server resources. This created a baseline scenario against which we could compare results from our overcommitment scenarios.

We then increased the VM density using overcommitment to learn how the two virtualization solutions would behave when the total virtual memory for the VMs exceeded the physical memory available on the server. We increased the number of VMs to 12 to serve as a “slightly overcommitted” scenario. We then tested the two solutions with an increasing number of VMs per physical host to see when the two solutions could no longer sustain acceptable performance. We considered a reduction of 10 percent or more to be significant performance degradation. When a solution experienced significant degradation, we ceased scaling up the VM density for that solution.

Both solutions used the same Dell PowerEdge R650 server in the same hardware configuration, differing only in the virtualization platform.

What we found

Achieve better OLTP performance and scale out to more VMs without sacrificing performance

We configured each virtualized environment with 10 VMs. We oversubscribed memory for both solutions, but this baseline level of testing did not require memory overcommitment. We assigned 28 GB of vRAM to each guest (or workload) VM, but the VMs did not use all of the fully assigned memory. So while the workload VMs of both solutions had 280 GB of subscribed memory, the hosts still had 5 to 10 GB of free physical memory during the baseline scenario. Rather than trying to maximize VM density on each platform, as we do in the next phase of testing, we selected HammerDB workload levels that would not stress any server resources and deliver roughly the same number of NOPM. As Figure 1 shows, when executing this constrained OLTP workload, vSphere 8 Update 3 supported 27.6 percent more NOPM.

Chart: Support more database transactions and increase VM density without sacrificing performance. Number of new orders per minute that each virtualization solution supported without memory overcommitment (10 VMs) and with slight memory overcommitment (12 VMs). Higher is better. VMware vSphere 8 Update 3 solution supported 1,435,069 new orders per minute with 10 VMs and 1,124,586 new orders per minute with 12 VMs.  Red Hat OpenShift Virtualization 4.16.2 solution supports 1,521,155 new orders per minute with 10 VMs and 1,046,467 new orders per minute with 12 VMs.
Number of NOPM that each virtualization solution supported without memory overcommitment (10 VMs) and with slight memory overcommitment (12 VMs). Higher is better. Source: Principled Technologies.

In addition to the baseline scenario results with 10 VMs, Figure 1 shows the total NOPM for the next phase of our testing—both solutions running 12 VMs with slight memory overcommitment. For that phase, we enabled memory overcommitment and powered on two additional SQL Server VMs to increase VM count to 12. As we did so, the total virtual memory assigned to the VMs increased to a level that exceeded the physical memory available on the server. After we enabled memory overcommitment on the vSphere 8 Update 3 solution, we did not need to further configure the environment. We configured the OpenShift Virtualization 4.16.2 solution by configuring a higher VM workload density, which Red Hat notes is in Technology Preview and does not support with production-level service level agreements.6 This scenario reflects how infrastructure admins might respond to upticks in production OLTP demand.

Raising the VM density of both virtual environments to 12 VMs increased the total host memory consumed, including hypervisor overhead, to exceed the 256 GB of installed physical memory. This forced a slightly memory-overcommitted environment, and we saw paging from both virtualization platforms at this level.

VMware vSphere 8 Update 3 did not require any changes to its default settings. Using memory overcommitment and running 12 VMs, the overall number of NOPM supported by the vSphere environment increased by 6.0 percent over the baseline environment that was not overcommitted. VMware states that “ESXi [the hypervisor in vSphere] implements various mechanisms such as ballooning, memory sharing, memory compression and swapping to provide reasonable performance even if the host is not heavily memory overcommitted.”7

Overcommitting memory for the OpenShift Virtualization 4.16.2 environment required manual configuration. After configuring a higher workload density, the total NOPM of the OpenShift Virtualization 4.16.2 environment decreased by 6.9 percent from the baseline non-memory overcommitted environment.

As our results demonstrate, vSphere 8 Update 3 supports memory overcommitment at production levels and makes it easier to do so, and enabling memory overcommitment allows you to increase VM density without sacrificing transactional database performance.

Reach higher thresholds in VM density with minimal performance degradation

For the last phase of our testing, we wanted to push the performance of the solutions until we saw significant degradation—a decrease in total NOPM of more than 10 percent. Organizations would likely seek to maintain specific performance levels due to service level agreements (SLAs), so while this scenario might not reflect everyday real-world usage, it could help organizations establish VM density thresholds.

For our vSphere 8 Update 3 solution, we saw significant performance degradation with 20 VMs running OLTP workloads, doubling VM density from the non-memory overcommitted baseline. At 20 VMs, the vSphere solution had a 14.31 percent decrease in NOPM from the slight memory overcommitted performance of 12 VMs.

We saw significant performance degradation for our OpenShift Virtualization 4.16.2 solution enabled with memory overcommitment at 13 VMs running OLTP workloads. That’s three VMs over the non-memory overcommitted baseline and just one VM more than the slight memory overcommitted scenario of 12 VMs. Performance dropped by 23.19 percent for the 13-VM OpenShift solution compared to the 12-VM OpenShift solution. Figure 2 shows the VM counts and NOPM when both virtualization solutions experienced significant performance degradation.

Chart: Reach higher thresholds in VM density with minimal performance degradation. Number of VMs and NOPM that each virtualization solution supported when experiencing significant performance degradation. Higher is better. VMware vSphere 8 Update 3 solution supported 1,303,423 new orders per minute with 20 VMs. Red Hat OpenShift Virtualization 4.16.2 solution supported 803,748 new orders per minute with 13 VMs.
Number of VMs and NOPM that each virtualization solution supported when experiencing significant performance degradation. Higher is better. Source: Principled Technologies.

CPU utilization during testing

At 20 VMs, the vSphere 8 Update 3 solution reached its highest level of CPU utilization at 94.4 percent. CPU utilization for the vSphere reached 91.7 percent while running 12 VMs and 80.1 percent while running 10 VMs.

At 13 VMs, CPU utilization for our OpenShift Virtualization 4.16.2 solution was 58.3 percent. While supporting 12 VMs and 10 VMs, CPU utilization levels for the Red Hat solution were 61.5 and 52.1 percent, respectively. These levels indicate that CPU usage was not a limiting factor for the Red Hat solution and that memory usage likely affected performance of the solution.

Conclusion

Memory oversubscription allows organizations to maximize their existing physical infrastructure by allocating more memory for peak usage than hypervisors typically assign by default. Because hypervisors handle memory management in different ways, we compared VMware vSphere 8 Update 3 to Red Hat OpenShift Virtualization 4.16.2 to see how each handled the memory management techniques of oversubscription and overcommitment. In our tests, vSphere outperformed OpenShift across the board, delivering 62 percent more NOPM at the maximum supported VM density of each solution. The vSphere solution supported 1.5 times more VMs than the OpenShift solution and doubled the VM count before experiencing significant performance degradation. In addition to the better OLTP performance, we found vSphere easier to configure, requiring no additional tuning for memory overcommitment. Our results indicate that VMware vSphere 8 Update 3 helps boost VM density to meet OLTP demand while maximizing server memory utilization.

  1. VMware, “VMware vSphere,” accessed September 13, 2024, https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/vsphere/vmw-vsphere-datasheet.pdf.
  2. VMware, “Announcing VMware vSphere 8 Update 3, with ESXi Live Patching and Integrated Kubernetes Cluster Management,” accessed September 13, 2024, https://blogs.vmware.com/cloud-foundation/2024/06/25/vmware-vsphere-8-u3-initial-availability-announcement/.
  3. GeeksforGeeks, “Paging in Operating System,” accessed September 13, 2024, https://www.geeksforgeeks.org/paging-in-operating-system/.
  4. Wikipedia, “Memory paging,” accessed September 13, 2024, https://en.wikipedia.org/wiki/Memory_paging.
  5. HammerDB, “Understanding the TPROC-C workload derived from TPC-C,” accessed September 13, 2024, https://www.hammerdb.com/docs/ch03s05.html.
  6. Red Hat, “Configuring higher VM workload density,” accessed September 13, 2024, https://docs.openshift.com/container-platform/4.16/virt/post_installation_configuration/virt-configuring-higher-vm-workload-density.html.
  7. VMware vSphere, “Memory Virtualization with vSphere,” accessed September 17, 2024, https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-9D2D0E45-D741-476F-8DB1-F737839C2108.html.

This project was commissioned by Broadcom.

October 2024

Principled Technologies is a registered trademark of Principled Technologies, Inc.

All other product names are the trademarks of their respective owners.

Forgot your password?