Realizing Compositional Scheduling through Virtualization

Jaewoo Lee, Sisu Xi, Sanjian Chen, Linh T. X. Phan, Christopher D. Gill, Insup Lee, Chenyang Lu, Oleg Sokolsky

TL;DR

This paper introduces the Compositional Scheduling Architecture (CSA), a novel framework that brings the benefits of compositional scheduling theory to real-time systems running on the Xen virtualization platform. By integrating periodic resource models as component interfaces within Xen, CSA enables timing isolation and guarantees for virtualized real-time applications, paving the way for consolidating legacy systems and improving resource utilization.

What Problem Does This Paper Address?

Modern real-time systems are increasingly complex, leading to the adoption of component-based design. Compositional Scheduling Frameworks (CSFs) aim to manage this complexity by allowing schedulability analysis and design at the component level, independent of the rest of the system. However, a significant gap existed between the theoretical advancements in CSFs and their practical implementation, particularly within virtualization platforms. This paper addresses this gap by presenting an architecture that bridges theoretical CSF concepts with the practical realities of the Xen hypervisor, enabling real-time guarantees for virtualized workloads without requiring modifications to guest operating systems.

Methods

The core of the paper is the Compositional Scheduling Architecture (CSA), built upon the Xen virtualization platform. CSA treats the Xen Virtual Machine Monitor (VMM) as the root component and guest operating systems (domains) as its subcomponents. The key innovations include:

  • Periodic Resource Models (PRMs) as Component Interfaces: CSA utilizes PRMs, specifically periodic servers, to define the resource needs of components. These PRMs act as interfaces, allowing the VMM to schedule domains based on their declared resource requirements.
  • Enhanced Periodic Server Designs: To address limitations of traditional periodic servers, the authors introduce two new work-conserving variants:
  • Work-Conserving Periodic Server (WCPS): This variant allows lower-priority non-idle servers to utilize the CPU when a higher-priority server is idle, improving response times without sacrificing schedulability.
  • Capacity-Reclaiming Periodic Server (CRPS): This further enhances WCPS by allowing idle server budgets to be reclaimed by any other non-idle server, leading to even greater performance improvements.
  • Quantum-Based Interface Computation: Recognizing that Xen operates with a fixed scheduling quantum, the authors developed a new algorithm to compute optimal integer-valued PRM interfaces. This algorithm accounts for the quantum's impact on schedulability and avoids sub-optimal interface choices that can arise from naive scaling.

Datasets

The paper evaluates CSA using two types of workloads:

  • Synthetic Workloads: These were generated to systematically test various system conditions, including different total utilizations (Uw), task period ranges (to vary interface overhead), and execution time factors (ETF) to simulate varying job execution times.
  • ARINC-653 Workloads: These are real-world workloads derived from an avionics system, providing a more realistic evaluation scenario. These workloads consist of harmonic task sets within components.

Key Insights and Ideas

  • Virtualization as a Natural Fit for CSFs: The paper demonstrates that virtualization platforms like Xen are well-suited for implementing CSFs, offering a clean separation of concerns and enabling modularity.
  • Work-Conserving Servers Significantly Improve Performance: The WCPS and CRPS variants, by effectively utilizing idle CPU time, show substantial improvements in response times and deadline miss ratios compared to the traditional non-work-conserving PTPS. This is particularly true when interface overheads are present.
  • CRPS is the Most Effective: The CRPS, by reclaiming capacity from idle servers, consistently provides the best performance gains, especially in scenarios with high interface overheads.
  • Quantum-Based Interface Computation is Crucial: The need for a quantum-aware interface computation algorithm is highlighted, as it directly impacts the ability to achieve optimal and feasible resource allocations in a real system like Xen.
  • Interface Overhead Trade-offs: The experiments reveal an interesting trade-off: higher interface overheads, while seemingly inefficient, can provide more "slack" that work-conserving servers can exploit to improve the performance of lower-priority components.

Key Results

  • Performance Improvements: The CRPS consistently outperformed WCPS, which in turn outperformed the baseline PTPS in terms of response times and deadline miss ratios across both synthetic and ARINC workloads.
  • Reduced Deadline Misses: In overloaded situations (Uw = 0.9), the CRPS achieved near-zero deadline misses, while PTPS and WCPS still experienced significant misses. For ARINC workloads with high interface overhead, CRPS incurred no deadline misses, whereas PTPS and WCPS did.
  • Responsiveness Gains: CRPS showed the greatest improvement in responsiveness, especially when interface overhead was high, demonstrating its ability to leverage available idle time.
  • Feasibility Demonstrated: The paper successfully demonstrates the feasibility of implementing a compositional scheduling framework on a real-time virtualization platform (Xen) and validates its effectiveness with real-world avionics workloads.

Limitations and Future Work

  • Uniprocessor Focus: The current CSA implementation and evaluation primarily focus on uniprocessor systems.
  • Independent Tasks: The system currently supports only independent periodic CPU-intensive tasks.
  • Future Work: The authors plan to extend CSA to support dependent tasks and multicore processors, which will undoubtedly introduce additional challenges. They also aim to explore further enhancements to the scheduling policies and interface computation methods.

Summary updated

Abstract

We present a co-designed scheduling framework and platform architecture that together support compositional scheduling of real-time systems. The architecture is built on the Xen virtualization platform, and relies on compositional scheduling theory that uses periodic resource models as component interfaces. We implement resource models as periodic servers and consider enhancements to periodic server design that significantly improve response times of tasks and resource utilization in the system while preserving theoretical schedulability results. We present an extensive evaluation of our implementation using workloads from an avionics case study as well as synthetic ones.
BibTeX
@inproceedings{lee2012realizing,
  author = {Jaewoo Lee and Sisu Xi and Sanjian Chen and Linh T. X. Phan and Christopher D. Gill and Insup Lee and Chenyang Lu and Oleg Sokolsky},
  title = {{Realizing Compositional Scheduling through Virtualization}},
  booktitle = {IEEE Real-Time and Embedded Technology and Applications Symposium},
  year = {2012},
  doi = {10.1109/rtas.2012.20},
}
Figure