Matrix-DBP for (m, k)-firm Real Time Guarantee

Enrico Poggi, Ye‐Qiong Song, Anis Koubâa, Zhi Wang2002

TL;DR

This paper introduces "Matrix-DBP," an enhanced priority scheduling algorithm for real-time systems that guarantees a certain number of deadlines are met within a window of task executions. Matrix-DBP improves upon existing methods by considering not just a task's proximity to missing its deadline, but also its timing parameters and its interactions with other tasks sharing the same resources, leading to reduced overall system failures.

What Problem Does This Paper Address?

Traditional real-time systems are often categorized as "hard" (all deadlines must be met) or "soft" (some deadline misses are acceptable). However, many real-world systems fall into a middle ground, where occasional deadline misses are tolerable as long as they don't lead to system failure and are distributed in a specific pattern. The "(m, k)-firm" guarantee addresses this by requiring at least 'm' deadlines to be met within any 'k' consecutive task executions.

A prior dynamic priority assignment scheme called DBP (Distance Based Priority) was proposed for (m, k)-firm systems. DBP prioritizes tasks that are closer to violating their (m, k)-firm constraint. However, this paper identifies a key limitation: DBP only considers a task's individual history and its distance to failure, ignoring crucial information like task periods, deadlines, service times, and how tasks interact when competing for the same server. This "self-reference" behavior can lead to suboptimal performance, especially in heterogeneous systems where tasks have diverse characteristics. The paper aims to improve upon DBP by incorporating these missing factors.

Methods

The core contribution is the Matrix-DBP algorithm. It builds upon the DBP approach by introducing a "Mutuality Matrix." This matrix quantifies the minimum number of deadline misses a stream (a set of related tasks or messages) might incur while another stream is being served.

Here's how it works:

  1. DBP Baseline: The algorithm still uses the DBP's concept of prioritizing tasks closer to their (m, k)-firm failure state.
  2. Mutuality Matrix Calculation: A static matrix is computed, where each element m_ij represents the minimum number of deadlines stream 'i' might miss while stream 'j' is being served. This calculation considers stream parameters like service time (c_j), deadline (D_i), and period (T_i).
  3. Matrix-DBP Priority: When deciding which task to schedule, Matrix-DBP adjusts the DBP priority by subtracting the corresponding Mutuality Matrix element. This effectively penalizes tasks that, if prioritized, would cause significant deadline misses in other competing streams.
  4. Schedulability Conditions: The paper also derives two necessary schedulability conditions:
  5. General Schedulability: A condition based on the overall normalized workload of the system.
  6. Mutual Schedulability: A condition that ensures pairs of streams are schedulable with respect to each other, considering the potential impact of one stream's service on another's deadline misses.

Datasets

Not discussed in the paper. The evaluation uses a simulated scenario with defined workload parameters.

Key Insights and Ideas

  • The "Self-Reference" Problem: DBP's focus solely on a task's internal state is a significant limitation in heterogeneous real-time systems. It fails to account for the ripple effects of scheduling decisions on other tasks.
  • Inter-Stream Dependencies Matter: The paper highlights that understanding how tasks interact when sharing resources is crucial for effective scheduling. Prioritizing one task might inadvertently cause critical failures in another.
  • A Balanced Approach: Matrix-DBP strikes a balance between historical information (like DBP) and actual timing requirements (period, deadline, service time) and inter-stream relationships. It doesn't discard history but integrates it with more holistic system information.
  • Non-Preemption Complexity: The non-preemptive nature of the system adds complexity, making it difficult to precisely determine the exact number of deadline misses. The paper acknowledges this by using a lower bound for matrix elements and suggests this is an area for future work.

Key Results

Simulations demonstrate that Matrix-DBP generally outperforms DBP:

  • Reduced Failure States: Matrix-DBP significantly reduces the overall system failure state percentage, especially under heavy server load. For example, Figure 7 shows Matrix-DBP consistently achieving lower failure state percentages than DBP across various server loads.
  • Improved Deadline Miss Ratio: The global deadline miss ratio is also shown to be lower or equal with Matrix-DBP compared to DBP (Figure 9).
  • Per-Stream Performance: While Matrix-DBP generally improves overall performance, it can sometimes lead to slightly worse performance for specific streams (e.g., Stream 1 in the simulation) if those streams are less critical and their resources are reallocated to more critical ones. However, even in these cases, the system remains within its (m, k)-firm constraints.
  • Dynamic Prioritization: The priority updates in Matrix-DBP are dynamic, adapting to the current state of concurrent jobs.

Limitations and Future Work

  • Inaccurate Matrix Element Estimation: The paper acknowledges that due to the non-preemptive nature and unspecified offsets, the exact value of matrix elements (m_ij) can be difficult to determine precisely. It might actually be m_ij or m_ij + 1. The paper suggests that using m_ij + 1 might sometimes yield better performance, but how to conjunctionally use both is an open problem.
  • Fairness Per Stream: Matrix-DBP's focus on reducing overall failure states might lead to an unfair distribution of failure states across individual streams, favoring some over others.
  • Multi-Hop Extension: The authors mention that extending Matrix-DBP to multi-hop networks, considering end-to-end deadlines, is an area of ongoing research.
  • Admission Control: The paper suggests that the algorithm could be integrated into an admission control mechanism for providing (m, k)-firm guarantees in networks.

Summary updated

Abstract

m, k)-firm means at least m deadlines should be met among any k consecutive task invocations or message transmissions. Providing (m, k)-firm guarantee is becoming attractive as it proposes an altemative between hard real-time guarantee (case of m = k) and soft (or probabilistic) real-time guarantee with p = m/k (when m, k - oo) and allows more effective utilization of server resources (processor for task processing or bandwidth for message transmission). A dynamic priority assignment scheme called DBP (Distance Based Priority) has been proposed to handle the (m, k)-firm constraint. This paper shows that DBP combined with EDF (EDF for making choice among tasks/messages of the same priority assigned by DBP) cannot always provide good performance in a MIQSS (Multiple input queues single server) non-preemptive model. The reason is that DBP assignment is only based on the distance to failure state of each individual stream under its own (m, k)-firm constraint. It does not take into account neither the stream timing parameters (period, deadline, service time in server) nor its relationship with other streams sharing the same server. Taking into account these additional parameters, two necessary schedulability conditions are derived and an enhancement of DBP called matrix-DBP is proposed. The performance improvement has been shown by simulations.
BibTeX
@misc{poggi2002matrix,
  author = {Enrico Poggi and Ye‐Qiong Song and Anis Koubâa and Zhi Wang},
  title = {{Matrix-DBP for (m, k)-firm Real Time Guarantee}},
  year = {2002},
}
Figure