Performance Exploration of Virtualization Systems

Joel Mandebi Mbongue, Danielle Tchuinkou Kwadjo, Christophe BobdaarXiv 2021

Virtualization serves as the foundational technology for modern cloud computing, enabling efficient resource utilization and isolation. However, this abstraction layer is not without cost. Every layer between an application and the physical hardware introduces latency and overhead. This paper, authored by researchers at the University of Florida, provides a quantitative analysis of the performance trade-offs between three primary virtualization technologies: KVM, VMware, and Docker.

The Virtualization Landscape

While virtualization allows for better resource management, it often leads to performance degradation. System architects must frequently decide between different architectural models based on their specific workload requirements. The study explores three distinct approaches:

  1. Type-1 Hypervisors (Bare Metal): Such as KVM, which integrates directly with the hardware or host kernel to manage virtual machines.
  2. Type-2 Hypervisors (Hosted): Such as VMware Workstation, which operates as an application on top of a conventional host operating system.
  3. Containers: Such as Docker, which provides OS-level virtualization by sharing the host's kernel, avoiding the need for a full guest OS.
Comparison of Type-1 Hypervisor (a), Type-2 Hypervisor (b), and Container (c) architectures.

Methodology

The researchers conducted a head-to-head comparison using a consistent hardware environment: a Dell R7415l EMC server equipped with an AMD Epyc 7251 CPU (16 cores) and 64GB of RAM. The study compared four environments:

  • Native: CentOS-7 running directly on the hardware.
  • Docker (v1.13.1): Representing containerization.
  • VMware Workstation (v15.5.2): Representing Type-2 hypervisors.
  • KVM/QEMU: Representing Type-1 hypervisors.

Using the Phoronix Test Suite, the team gathered objective measurements across processor stress, disk I/O, and system-level performance.

Key Insights and Architectural Overhead

The "Trap and Emulate" Tax

Traditional Virtual Machines (VMs) like KVM and VMware must intercept privileged instructions from the guest OS and emulate them on the hardware. This "world switch" is a primary source of latency, particularly in I/O-heavy tasks where the system frequently requests hardware access.

Container Efficiency

In contrast, Docker containers do not run a separate guest kernel; they share the host kernel. This allows them to bypass the emulation layer entirely, leading to performance that is often indistinguishable from native execution. This efficiency is particularly evident in memory scaling, where Docker's footprint scales directly with application needs rather than requiring a fixed allocation for a guest OS.

Performance Results

The benchmarks revealed a stark contrast between containerized and virtualized environments, especially regarding disk throughput and compute speed.

Disk throughput comparison showing Docker's near-native performance versus significant VM overhead across various benchmarks.
  • Disk Throughput: In disk-intensive tests, Docker achieved throughput as high as 8000 MB/s, matching or even slightly exceeding native performance in certain read operations. Conversely, VMware and KVM struggled to exceed 2000 MB/s, representing a nearly 4x performance penalty for traditional VMs in I/O-heavy scenarios.
  • Compute Speed: In rendering tests (e.g., aobench), Docker finished in 51 seconds, nearly matching the native time. KVM and VMware took significantly longer (~73-74 seconds), indicating a ~45% overhead.
  • System Benchmarks: The phpbench results were even more dramatic; Docker scored over 400,000, while KVM and VMware hovered around 100,000, suggesting a 4x throughput advantage for web-stack applications using containers.

Limitations and Future Work

The authors highlight that while containers offer superior performance, they provide weaker isolation than VMs, as they share the host kernel. The study also noted a core scaling disparity: while Native and Docker utilized all 16 cores, VM configurations were tested with 4 cores, reflecting common "right-sizing" practices that can exacerbate performance gaps in multi-threaded workloads.

Future research will focus on the security-performance trade-off and the implications of "nested virtualization" (e.g., running Docker inside a KVM VM), a configuration common in public cloud environments like AWS and GCP.

Summary updated

BibTeX
@misc{mbongue2021performance,
  author = {Joel Mandebi Mbongue and Danielle Tchuinkou Kwadjo and Christophe Bobda},
  title = {{Performance Exploration of Virtualization Systems}},
  year = {2021},
  eprint = {2103.07092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.07092},
}
Figure