Container-Based Cloud Virtual Machine Benchmarking

Blesson Varghese, Lawan Thamsuhang Subba, Long Thai, Adam Barker

Introduction

Selecting the optimal Virtual Machine (VM) in a crowded cloud marketplace is a significant challenge for developers aiming to balance performance and cost. Traditional benchmarking methods are "heavyweight," requiring the testing of an entire VM's resource pool. For high-capacity instances, this process can exceed 10 hours, incurring substantial costs and preventing real-time selection. This paper presents DocLite, a lightweight benchmarking tool that utilizes Docker containers to test a fraction of a VM's resources, offering a faster and more cost-effective alternative.

Methodology: The DocLite Framework

DocLite (Docker Container-based Lightweight Benchmarking) shifts the focus from full-VM testing to isolated, resource-restricted environments. By leveraging Docker's resource isolation capabilities, the system spins up containers with minimal resources—such as 100MB of RAM and 1 vCPU—to run the lmbench micro-benchmark suite. This architecture, illustrated below, allows for rapid assessment without the overhead of initializing the entire VM resource pool.

The DocLite system architecture, illustrating the interaction between the Web Portal, Middleware, and Cloud Controller.

The framework categorizes performance into four key groups: Memory/Process, Local Communication, Computation, and Storage. Users can tailor the benchmarking process by assigning weights to these categories based on their application's specific requirements. DocLite supports two operational modes:

  1. Lightweight Method: Ranks VMs using real-time container benchmark scores adjusted by user-defined weights.
  2. Hybrid Method: Integrates real-time data with historical full-VM benchmarks to improve ranking stability.

Experimental Setup

The effectiveness of DocLite was evaluated on Amazon Web Services (AWS) EC2 across various instance types (m1, m2, m3, cr1, cc2, hi1, hs1). To validate the accuracy of the lightweight approach, the authors compared its results against the "ground truth" performance of three complex High-Performance Computing (HPC) applications: a molecular dynamics simulation, a financial risk simulation, and a NAS Parallel Benchmark solver.

Results and Discussion

The primary advantage of DocLite is its efficiency. The lightweight method completed benchmarking across all test VMs in approximately 8 minutes using 100MB containers. In contrast, full-VM benchmarking took up to 822 minutes on larger instances. This represents a speedup of up to 91 times, as shown in the comparison of execution times below.

Comparison of benchmarking time between lightweight containers (100MB, 500MB, 1000MB) and full-VM (Entire VM) approaches across different instance types.

Key findings from the study include:

  • Efficiency and Speed: DocLite is 19 to 91 times faster than traditional methods.
  • Predictive Accuracy: Despite testing only a fraction of resources, the lightweight benchmarks showed over 90% correlation with real-world sequential execution performance and over 86% for parallel execution.
  • Resource Independence: Increasing container size (from 100MB to 1000MB) did not significantly improve ranking accuracy, confirming that minimal resource testing is sufficient.
  • Real-time Sufficiency: The Hybrid method provided only marginal gains (1-2%) over the pure real-time Lightweight method, suggesting that historical data is often unnecessary.

Conclusion and Future Work

DocLite demonstrates that fractional, container-based benchmarking is a viable and highly efficient strategy for cloud VM selection. While currently requiring manual resource weighting, future iterations aim to automate this process through application profiling. Additionally, expanding the tool to include network I/O benchmarking will enhance its utility for distributed cloud applications.

Summary updated

BibTeX
@inproceedings{varghese2016container,
  author = {Blesson Varghese and Lawan Thamsuhang Subba and Long Thai and Adam Barker},
  title = {{Container-Based Cloud Virtual Machine Benchmarking}},
  booktitle = {IC2E},
  year = {2016},
  doi = {10.1109/ic2e.2016.28},
}
Figure