vmBBThrPred: A Black-Box Throughput Predictor for Virtual Machines in Cloud Environments

Javid Taheri, Albert Y. Zomaya, Andreas KasslerESOCC 2016

TL;DR

This paper introduces vmBBThrPred, a novel "black-box" system that predicts the throughput of virtual machines (VMs) in cloud environments using only hypervisor-level metrics. This approach bypasses the need for intrusive agents within VMs, offering a more practical and generalizable solution for performance monitoring and management in cloud infrastructures.

What Problem Does This Paper Address?

Cloud computing has exploded, leading to massive data centers packed with virtual machines (VMs) hosting countless online services. A critical challenge in these complex environments is ensuring consistent VM performance, as resource contention between co-located VMs can lead to significant performance degradation and reduced quality of service (QoS). While many solutions exist to monitor VM performance, they often require installing agents directly into the VMs, which is intrusive, impractical for general-purpose VMs, and may not be feasible in all cloud scenarios. This paper addresses the need for a non-intrusive, application-agnostic method to predict VM throughput and performance degradation based solely on readily available hypervisor metrics.

Methods

The core of vmBBThrPred lies in its two main components: vmBBProfiler and vmBBThrPred itself.

  • vmBBProfiler: This component is designed to be application-agnostic and non-intrusive. It works by imposing resource limits (CPU, memory, disk) on a VM and observing its behavior. Through this "limitation" process, it calculates three "sensitivity" values (Sen_CPU, Sen_Mem, Sen_Disk) for each VM. These values quantify how much a VM's throughput is affected by resource starvation in each category. This profiling is done using only hypervisor-level metrics, avoiding any need to access the VM's internal state.
  • vmBBThrPred: This component takes the sensitivity values from vmBBProfiler and uses them to build predictive models. It operates in two modes:
  • Blind Mode: This mode uses only the sensitivity values and hypervisor metrics to create a polynomial formula that predicts throughput based on the VM's current normalized CPU, memory, and disk utilization.
  • Assisted Mode: This mode enhances accuracy by incorporating a user-defined "indirect-metric" that is known to correlate with the VM's performance (e.g., network traffic for a web server). This allows for more precise predictions.

The system uses linear regression on a "ProfTable" (generated during profiling) to derive the coefficients for these polynomial models.

Datasets

The paper does not introduce new benchmarks but utilizes the Phoronix Test Suite for its experiments. They selected 12 benchmarks from this suite, chosen for their diverse resource usage profiles (CPU-intensive, memory-intensive, disk-intensive, and combinations thereof). These benchmarks were run on three different physical machines (PMs) within their VMware vSphere-based private cloud. The actual throughput values provided by Phoronix at the end of each run were used to correlate with hypervisor metrics and validate the accuracy of vmBBThrPred.

Key Insights and Ideas

  • Hypervisor Metrics Suffice: The most significant insight is that accurate VM throughput prediction can be achieved using only hypervisor-level metrics, eliminating the need for intrusive in-VM agents. This dramatically increases the applicability and practicality of performance prediction in cloud environments.
  • Sensitivity as a Predictor: The concept of "sensitivity" (how much a VM's performance changes with resource contention) is a powerful predictor of throughput. This is a novel way to characterize VM behavior without deep application knowledge.
  • Blind vs. Assisted Prediction: The study demonstrates that even the "blind" prediction mode (without specific application knowledge) yields high accuracy. However, incorporating a relevant "indirect-metric" in the "assisted" mode can further boost accuracy, highlighting the value of domain knowledge when available.
  • Resource-Specific Sensitivities: The research shows that VMs have varying sensitivities to CPU, memory, and disk. This nuanced understanding is crucial for accurate prediction, as a VM's overall throughput is a weighted combination of these sensitivities.
  • Transferability Challenges: While formulas are largely transferable across PMs for CPU and disk-intensive tasks, memory-intensive applications show more variability. This is attributed to differences in CPU architecture and cache sizes across PMs, suggesting that hardware characteristics play a significant role in memory performance.

Key Results

The vmBBThrPred system demonstrated impressive accuracy across a range of benchmarks and PMs:

  • Overall Accuracy: The system achieved prediction accuracies of 90% for the Blind mode and 95% for the Assisted mode on average.
  • Benchmark Performance:
    • CPU-intensive applications showed very high accuracy (over 94%).
  • Disk-intensive applications also performed well, with minimum accuracies of 82% (Blind) and 94% (Assisted).
  • Memory-intensive applications were more challenging, with accuracies dropping to 76% (Blind) and 90% (Assisted), aligning with the known complexity of memory subsystem interference.
  • Experimental Setup: The system was validated over 1200 hours of operation on a private cloud, using 12 benchmarks and three different PMs.

Limitations and Future Work

  • Memory-Intensive Applications: The paper acknowledges that memory-intensive applications are more challenging to predict accurately. This is linked to the complex interactions within virtualized memory subsystems and variations in PM cache architectures.
  • Indirect Metric Selection: While the assisted mode improves accuracy, selecting the right indirect metric can be difficult. It requires understanding the application's nature and ensuring the metric has a linear relationship with throughput, which isn't always straightforward.
  • Future Work: The authors suggest that further research could explore more sophisticated modeling techniques and investigate the impact of different hardware architectures on the transferability of prediction models. They also hint at the potential for using these models to dynamically optimize resource allocation and improve overall cloud infrastructure efficiency.

Summary updated

BibTeX
@inproceedings{taheri2016vmbbthrpred,
  author = {Javid Taheri and Albert Y. Zomaya and Andreas Kassler},
  title = {{vmBBThrPred: A Black-Box Throughput Predictor for Virtual Machines in Cloud Environments}},
  booktitle = {ESOCC},
  year = {2016},
  doi = {10.1007/978-3-319-44482-6\_2},
}
Figure