TL;DR
While containers are widely considered the "lightweight" successor to virtual machines (VMs), this paper reveals that the performance gap isn't always a slam dunk for containers. Through rigorous benchmarking, the authors show that while Docker generally outperforms VMware, containers can actually be significantly slower in specific storage tasks and introduce massive performance "jitter" or variability.
What Problem Does This Paper Address?
Virtualization is the backbone of cloud computing, but it isn't free—it imposes a "performance tax" or overhead. The industry has shifted from hypervisor-based VMs (like VMware) toward container-based solutions (like Docker) under the assumption that containers are inherently more efficient.
However, much of this sentiment is based on qualitative discussion rather than "apple-to-apple" quantitative data. The authors argue that we need to understand exactly how much overhead these technologies add across different types of workloads (CPU, Memory, Storage, and Network) to help cloud providers and consumers make informed architectural choices.
Methods
The researchers employed a structured approach called the Domain Knowledge-driven Methodology (DoKnowMe). To ensure the virtualization layers were actually being stressed, they used a "just-enough" hardware baseline: an older physical machine (Intel Core 2 Duo, 3GB RAM) rather than a high-end server.
Key aspects of the setup included:
- Baseline: A bare-metal physical machine (PM) running Ubuntu 15.10.
- Virtualization: Docker (representing containers) vs. VMware Workstation 12 Pro (representing Type-2 hypervisors).
- Consistency: All environments used the same Ubuntu 15.10 64-bit OS to minimize configuration noise.
- Duration: Each test ran for 25 hours to capture how performance fluctuates over time.
Datasets (Benchmarks)
The study utilized several industry-standard, lightweight benchmarking utilities:
- Communication: Iperf for measuring network data throughput.
- Computation: HardInfo, which includes six micro-benchmarks (Blowfish, CryptoHash, Fibonacci, N-Queens, FPU FFT, and FPU Raytracing).
- Memory: STREAM to measure sustainable memory throughput (Copy, Scale, Add, Triad).
- Storage: Bonnie++ to test both byte-by-byte transactions and block-level data transfers.
Key Insights and Ideas
- The Variability Trap: The most significant "overhead" isn't always a drop in average speed, but a massive increase in performance variability. For example, while a VM might solve a math problem nearly as fast as a physical machine on average, its performance "jitter" (variability) was nearly 2500% higher in some cases.
- Docker’s Storage Bottleneck: Contrary to the "containers are faster" narrative, Docker exhibited much lower Quality of Service (QoS) in storage transaction speeds. When reading or writing data byte-by-byte, Docker incurred a 40% to 50% overhead, likely due to the complexities of the container storage driver.
- Task-Specific Tax: Virtualization overhead is not a flat rate. It varies wildly depending on the "job." Fourier transform jobs (FFT) showed high overhead for both Docker and VMware, while other CPU tasks like the N-Queens problem showed almost no difference between the physical machine and the virtualized ones.
Key Results
- Network: Docker was highly efficient with only ~2% throughput overhead. Surprisingly, the VM showed a >55% loss in throughput, which the authors flagged for further investigation (potentially due to NAT overhead).
- Memory: Average throughput was similar across all three (PM, Docker, VM), but the variability was staggering. Docker’s variability overhead for the "Triad" operation was over 500%, while the VM's was nearly 1400%.
- Storage: Docker was the clear loser in byte-level I/O. However, in block-level I/O (handling large chunks of data), Docker barely incurred any overhead, while the VM suffered a ~30% performance hit.
- Computation: Docker generally computed faster than the VM, but the gap was narrow and highly dependent on the specific micro-benchmark used.
Limitations and Future Work
The authors acknowledge that their study used a "standalone" setup on relatively dated hardware. Real-world cloud environments involve multi-tenancy (multiple users sharing one machine), which adds another layer of complexity.
The researchers suggest that this work serves as a foundation. Future studies should move from these "first-stage" feature evaluations to "second-stage" evaluations involving real-world application cases (like web servers or databases) to see if these micro-benchmark trends hold up in production-like scenarios.
Summary updated