TL;DR
Cloud platforms are notoriously underutilized, with resources often sitting idle. This paper introduces "Coach," a system that intelligently oversubscribes all VM resources (CPU, memory, network, etc.) by exploiting predictable, complementary temporal usage patterns across VMs. Coach enables cloud providers to host significantly more VMs with minimal performance impact, offering a more efficient and cost-effective cloud infrastructure.
What Problem Does This Paper Address?
Cloud providers like AWS, Azure, and GCP offer computing resources as Virtual Machines (VMs). Despite efforts to improve utilization, these platforms often suffer from low resource utilization. This is due to several factors:
- Unallocated Resources: Providers reserve resources for future demand, ensuring high availability and performance.
- Stranded Resources: Resources are allocated but cannot be used for new VMs because another resource on the server is fully utilized.
- Underutilized Resources: VMs are allocated more resources than they actively use, often as a buffer for unpredictable workloads or due to limited VM configuration options.
Prior work has focused on oversubscribing individual resources (like CPU) or specific VM types. However, a holistic approach to oversubscribing all resources, while ensuring performance and transparency for users, has been missing. The challenge lies in managing the complexity of diverse VM workloads, their temporal patterns, and the inherent difficulties of oversubscribing non-fungible resources like memory without impacting performance.
Methods
Coach tackles this problem with a multi-pronged approach:
- Temporal Pattern Analysis: Coach analyzes historical VM resource utilization data to identify predictable daily and weekly patterns. It observes that many VMs exhibit complementary patterns (e.g., one VM peaks during the day, another at night).
- CoachVM (CVM): A new general-purpose VM type is introduced. Each resource within a CVM is divided into a guaranteed portion (always allocated for performance) and an oversubscribed portion (shared across VMs for savings). This is transparent to the user and requires no workload modification.
- Time-Windowed Scheduling: Instead of a single allocation for a VM's lifetime, Coach divides the day into time windows. It predicts resource needs for each window and schedules VMs to exploit temporal complementarity.
- Holistic Resource Management: Coach considers all resources (CPU, memory, network, etc.) for oversubscription, not just one.
- Memory Oversubscription Focus: While addressing all resources, the paper highlights memory as a particularly challenging non-fungible resource. Coach uses a combination of physically addressed (PA) memory for the guaranteed portion and virtually addressed (VA) memory for the oversubscribed portion, with a backing store for VA memory.
- Contention Monitoring and Mitigation: Coach includes proactive and reactive mechanisms to monitor for and mitigate resource contention, ensuring performance SLOs are met. This involves predicting contention and employing strategies like memory trimming or VM migration.
Datasets
The study uses traces from over one million opaque VMs in Azure collected over two weeks in May 2024. These traces span ten popular clusters across seven Azure regions and include data from four hardware generations. The paper also uses production workloads representing common cloud applications (e.g., Cache, Database, Big Data, Web, KV-Store, Graph, Microservices, LLM-FT, Video Conf) for evaluation.
Key Insights and Ideas
- Complementary Temporal Patterns are Ubiquitous: The most significant insight is that VMs exhibit predictable, complementary temporal resource usage patterns, which can be effectively leveraged for oversubscription. This is not just a niche phenomenon but a widespread opportunity.
- Holistic Oversubscription is Necessary: Focusing on only one resource (like CPU) can simply shift the bottleneck to another (like memory). Coach's approach of managing all resources simultaneously is crucial for true efficiency gains.
- VM Opacity is a Challenge, but Solvable: VMs are "opaque" to the platform, meaning their internal workings are not directly visible. Coach overcomes this by using hypervisor-level metrics and a transparent VM type (CoachVM) that doesn't require user modification.
- Memory is the Bottleneck for Oversubscription: While CPU is often underutilized, memory's non-fungible nature makes its oversubscription particularly tricky. Coach's PA/VA memory management strategy is key to balancing performance and savings.
- Predictive Mitigation is Key: Proactive prediction of contention and timely mitigation are essential to prevent performance degradation, especially for sensitive workloads.
Key Results
- Increased VM Density: Coach enables platforms to host up to ~26% more VMs with minimal performance degradation.
- Minimal Performance Degradation: For sensitive workloads, Coach introduces at most a 10% slowdown (e.g., from 0.41ms to 0.45ms for KV-STORE), significantly better than naive oversubscription (up to 2.35x slowdown).
- Effective Contention Mitigation: Proactive mitigation policies reduce performance degradation during contention to only 1.3x, compared to up to 4.3x without mitigation.
- Resource Savings: Using time-windowed scheduling, Coach can achieve significant savings, with potential savings of ~15% for memory and ~20% for CPU using 4x6-hour windows.
- Low Platform Overhead: Coach introduces minimal overhead, with scheduling adding less than 1ms per VM and memory tracking requiring negligible resources.
Limitations and Future Work
- Prediction Accuracy: While Coach's predictions are effective, there's still an error margin (e.g., 23-30% for CPU over-allocation error). Under-allocations are rare but can occur.
- Workload Diversity: The study focuses on existing cloud workloads. Future work could explore how Coach handles entirely new or highly dynamic workload types.
- Proactive Policies: While proactive policies are effective, they might sometimes over-allocate resources, slightly reducing potential savings.
- Future Work: The authors suggest exploring more sophisticated prediction models, integrating user-defined metrics for finer-grained contention monitoring, and further optimizing mitigation strategies. They also plan to expand Coach's adoption by making it an opt-in feature with discounts.
Summary updated