Abstract
Standard cloud hypervisors are optimized for aggregate throughput, frequently leading to deadline misses for real-time applications such as VoIP and streaming. This paper introduces Risa, a framework designed to bridge this gap through multi-core dynamic partitioning. Risa segregates physical CPUs into dedicated real-time (rt-pool) and non-real-time (non-rt-pool) sets, managed by a custom global Earliest Deadline First (vGEDF) scheduler. This architecture ensures strict timing guarantees and hardware-level isolation. Evaluation shows that Risa improves VoIP call quality by 68.1% and reduces kernel latency by 60% compared to the default Xen Credit scheduler.
Introduction
In modern cloud data centers, physical machines host multiple Virtual Machines (VMs) managed by a hypervisor like Xen. The primary objective of standard hypervisor CPU schedulers, such as Xen's default Credit scheduler, is to share resources fairly among tenants and maximize overall system throughput. However, these schedulers are generally unaware of the strict timing constraints required by real-time applications.
Consequently, real-time VMs (RT-VMs) often suffer from frequent deadline misses, resulting in jittery video or dropped VoIP calls. Previous attempts to address this in virtualized environments have often struggled with performance isolation—either favoring RT-VMs so heavily that they starve standard workloads or failing to support the complexities of multi-core VM scheduling. Risa addresses these challenges by dynamically adjusting hardware resources to meet real-time demand without sacrificing overall system efficiency.
The Risa Framework Architecture
The core of Risa is a dynamic partitioning module integrated into the hypervisor. Instead of employing a single complex scheduler for all tasks, Risa dynamically calculates the exact number of physical CPUs (PCPUs) needed for real-time tasks based on EDF schedulability mathematics.
As illustrated in Figure 1, the system maintains two distinct pools: an rt-pool and a non-rt-pool. The rt-pool handles RT-VMs using the vGEDF scheduler, while the non-rt-pool manages standard VMs and the management domain (Domain0) using the default Credit scheduler. To maintain system stability in dynamic environments, the rt-pool expands immediately upon increased demand but utilizes a delayed shrinking mechanism (e.g., a 15-second timer) to prevent thrashing during bursty VM provisioning.
vGEDF Scheduler and Global Queues
The rt-pool utilizes a custom global Earliest Deadline First (vGEDF) scheduler to manage multi-core resources. Global scheduling is often criticized for poor cache locality because virtual CPUs (VCPUs) can migrate frequently between physical cores. Risa mitigates this through a NUMA-aware allocation algorithm, ensuring that all PCPUs assigned to the rt-pool share the same memory node.
Figure 2 details the global queue structure used by vGEDF, consisting of a RunQ for ready tasks, a WaitQ for blocked tasks, and an ExtraQ for tasks that have exhausted their current budget but can still run if resources are idle. By restricting these queues to a dynamically sized pool of CPUs within a single NUMA node, Risa achieves the load-balancing benefits of global scheduling without the typical cache-miss penalties.
Experimental Evaluation
The framework was evaluated using a prototype implemented in Xen 4.2.1. The authors utilized synthetic loads (Lookbusy), VoIP benchmarks (SIPp and Asterisk), and standard latency tests (Cyclictest) to measure performance.
Key Results
- VoIP Quality: Under a heavy load of 50 concurrent calls, Risa maintained high call quality, improving the ITU-T PESQ score by 68.1% compared to the Xen Credit scheduler and by 13.7% compared to a static SEDF setup.
- Kernel Latency: When running a Real-Time OS as a guest, Risa reduced average kernel latency to 2342 microseconds—a 60% reduction compared to the Credit scheduler (5862 µs).
- Resource Efficiency: Unlike static partitioning, which requires manual reservation of peak resources, Risa's dynamic approach successfully reclaimed unused CPUs during low demand, significantly improving overall system utilization.
Conclusion and Future Work
Risa demonstrates that dynamic hardware partitioning combined with specialized global scheduling can effectively support real-time applications in virtualized environments. While global queues face potential scalability limits on massive core counts, the authors argue that the relatively small size of typical rt-pools mitigates this risk. Future work will explore adaptive delay timers for pool resizing and the use of multiple smaller real-time pools for extreme-scale systems.
Summary updated