Scheduling for Cloud-Based Computing Systems to Support Soft Real-Time Applications

Yuhuan Du, Gustavo de Veciana · DOI

TL;DR

This paper introduces a framework for scheduling Soft Real-Time (SRT) applications—like 5G baseband processing or video conferencing—on shared cloud infrastructure. By using a "Largest Deficit First" (LDF) prioritization strategy, the authors prove that simple, dynamic scheduling policies can achieve near-optimal resource efficiency, offering massive savings over traditional static reservation-based designs.

What Problem Does This Paper Address?

As we move toward "Cloud-Native" everything, even time-sensitive applications like Radio Access Networks (C-RAN) and interactive multimedia are migrating to the cloud. These are Soft Real-Time (SRT) applications: they have strict deadlines, but they can tolerate the occasional missed frame or delayed packet without the whole system failing.

The traditional way to handle this is static reservation: you figure out the worst-case workload for each user and set aside dedicated hardware. The problem? It’s incredibly wasteful. Because workloads are variable, those reserved cores often sit idle.

The challenge this paper tackles is how to multiplex these SRT applications on shared compute resources (like a multi-core server) to maximize efficiency while still guaranteeing a specific long-term Quality of Service (QoS)—specifically, the fraction of tasks completed on time.

Methods

The authors model the system as $m$ identical cores serving $n$ users. Each user has a QoS target (e.g., "95% of my tasks must finish on time").

Key technical components include:

  • NBUE Workloads: They assume task workloads follow a "New Better than Used in Expectation" (NBUE) distribution. This is a broad class of distributions (including Exponential and Gamma) where a task that has already been running for a while isn't expected to finish any sooner than a brand-new task.
  • Largest Deficit First (LDF) Prioritization: Instead of static priorities, the system tracks a "deficit" for each user—essentially, how far behind they are on their QoS target. In each time period, the user with the biggest deficit gets the highest priority.
  • Two Scheduling Flavors:
    1. LDF+Greedy: A simple approach where the highest-priority tasks are shoved onto available cores immediately. No complex preemption or migration is required.
  • LDF+TS/LLREF: A more sophisticated approach for deterministic workloads that uses "Task Selection" and "Largest Local Remaining Execution time First" scheduling to minimize wasted core time.
  • Feasibility Regions: The authors derive mathematical "outer bounds" (the theoretical maximum performance) and "inner bounds" (what their policies can actually achieve) to prove efficiency.

Datasets

The paper does not use external real-world datasets. Instead, it relies on synthetic stochastic simulations to evaluate the policies. They specifically use:

  • Gamma Distributions: Used to model variable workloads (specifically Gamma(5,1) and Gamma(100, 0.05)).
  • Deterministic Workloads: Used to test the limits of task selection algorithms.
  • Simulated C-RAN scenarios: Modeling 200 users over 3,000 time periods to verify long-term QoS stability.

Key Insights and Ideas

  • The Power of Non-Clairvoyance: Most optimal schedulers assume you know exactly how long a task will take before it starts. This paper proves that even "non-clairvoyant" policies (which only know the distribution of task times) can be nearly as good.
  • The "Wasted Time" Bound: The efficiency gap of the LDF+Greedy policy is directly related to the ratio of the maximum average task size to the period length. If your tasks are small relative to your deadlines, simple greedy scheduling is almost perfect.
  • Dynamic vs. Static: The "aha moment" is the visualization of resource savings. By allowing users to "borrow" resources from others who aren't currently peaking, you can reduce the required number of cores by 50% to 90% compared to static reservations.
  • The U-Shaped Savings Curve: Savings are highest when QoS requirements are either very low (easy to multiplex) or very high (where static reservation over-provisions the most).

Key Results

  • Efficiency Ratios: The authors proved that the efficiency ratio of LDF+Greedy exceeds $\gamma_1 = 1 - \frac{\max \mu_i}{\delta}$ (where $\mu$ is mean workload and $\delta$ is period). For LDF+TS/LLREF, the bound is even tighter: $\gamma_2 = 1 - \frac{\max \mu_i}{m\delta}$.
  • Resource Savings: In simulations with 200 users, LDF+Greedy achieved resource savings of roughly 40-60% for moderate QoS targets and up to 80% for low targets compared to the standard reservation benchmark.
  • Near-Optimality: The LDF-based policies were shown to track the theoretical "Outer Bound" of feasibility very closely, especially as the number of cores ($m$) or the period length ($\delta$) increases.

Limitations and Future Work

  • The NBUE Constraint: The mathematical proofs rely on the NBUE assumption. If workloads are "heavy-tailed" (where a task that has run a long time is likely to run much longer), these simple policies might struggle.
  • Identical Cores: The primary model assumes all CPU cores are identical. While they briefly discuss heterogeneous cores (different speeds), a more detailed exploration of specialized hardware (GPUs, NPUs) is left for future work.
  • Overhead Neglect: The model largely ignores the "context switching" overhead of preempting and migrating tasks between cores, which could be significant in high-frequency real-time systems.
  • Future Direction: The authors suggest exploring "fine-grained" LDF policies that update priorities more frequently than once per super-period.

Summary updated

BibTeX
@article{du2017scheduling,
  author = {Yuhuan Du and Gustavo de Veciana},
  title = {{Scheduling for Cloud-Based Computing Systems to Support Soft Real-Time Applications}},
  journal = {ACM Trans. Model. Perform. Evaluation Comput. Syst.},
  year = {2017},
  doi = {10.1145/3063713},
}
Figure