WCET Derivation under Single Core Equivalence with Explicit Memory Budget Assignment

Renato Mancuso, Rodolfo Pellizzoni, Neriman Tokcan, Marco CaccamoECRTS 2017 · OpenReview

TL;DR

This paper introduces a new method for calculating the worst-case execution time (WCET) of tasks on multi-core embedded systems with memory bandwidth regulation. By precisely accounting for how memory budgets are distributed among cores, their approach significantly reduces overestimation compared to existing methods, leading to more accurate real-time system analysis.

What Problem Does This Paper Address?

Modern embedded systems increasingly rely on multi-core processors. While this offers more processing power, it introduces a significant challenge for real-time systems: unpredictability due to shared hardware resources like caches and DRAM. Memory bandwidth, in particular, is a common bottleneck. To manage this, techniques like "budget-based memory regulation" (or throttling) are used to partition memory access bandwidth among cores. However, existing analysis methods often make pessimistic assumptions, either assuming budgets are evenly distributed or that the budgets of other cores are unknown. This leads to an overestimation of the WCET, making schedulability analysis less precise and potentially leading to inefficient resource allocation or missed deadlines. This paper addresses the gap by proposing a more accurate WCET analysis that leverages the exact distribution of memory budgets to each core.

Methods

The core of this paper is a novel WCET analysis strategy that builds upon the Single Core Equivalence (SCE) framework. Key components of their approach include:

  • Explicit Budget Assignment: Unlike previous work that assumed even distribution or unknown budgets for other cores, this method explicitly uses the known per-core memory bandwidth budget assignment ($Q$).
  • Memory/CPU Configurations (M/C Configurations): The analysis models possible combinations of memory transactions and CPU execution slots within a given memory regulation period ($P$). These configurations are derived from the task's isolated WCET ($C$) and residual cache misses ($\mu$), along with the per-core budget ($Q_i$).
  • Continuous Domain Transformation: To handle the discrete nature of M/C configurations, the authors transform the problem into a continuous domain by defining convex curves for computation and memory consumption ($C(r)$ and $M(r)$).
  • Max Length for Memory Access Pattern: The central problem is reframed as finding the maximum length of a memory access pattern (in terms of regulation periods) that a task might experience. This is achieved by analyzing the derived convex curves and identifying the maximum value of a derived function $P(r)$.
  • Convex vs. Non-Convex Cases: The analysis handles two scenarios: when the computation curve $C(r)$ is convex (typically for cores with the highest budget) and when it's non-convex. For the non-convex case, they introduce an additional parameter $k$ to account for regulation-only periods.
  • Theorem and Corollary: The paper formalizes the WCET derivation with Theorem 4 and Corollary 5, which provide a way to calculate an upper bound on the WCET based on the continuous analysis and the task's computational and memory requirements.

Datasets

Not discussed in the paper. The evaluation uses synthetic system and task parameters to demonstrate the effectiveness of the proposed analysis.

Key Insights and Ideas

  • The Power of Exact Budget Knowledge: The most significant insight is that knowing the precise memory budget assigned to each interfering core, not just the core under analysis, dramatically improves WCET estimation accuracy. This is because it allows for a more realistic modeling of interference.
  • Bridging Discrete and Continuous Analysis: Transforming the discrete problem of M/C configurations into a continuous domain using convex curves is a clever mathematical technique that simplifies the analysis while still providing a valid upper bound.
  • Worst-Case Pattern Identification: The core of the problem is identifying the "longest memory access pattern" a task might encounter. This involves understanding how memory requests from different cores interleave and how budget limitations cause cores to be idled.
  • Overestimation Reduction: The paper demonstrates that by leveraging explicit budget information, the pessimism in WCET calculation can be significantly reduced, leading to more efficient system design.

Key Results

  • The proposed WCET derivation method, which explicitly considers per-core budget assignments, can reduce overestimation by 30% on average and up to 60% compared to state-of-the-art analysis methods (specifically referencing [37]).
  • Evaluations show that for low budget differentiation (i.e., budgets are similar across cores), the proposed method performs similarly to existing approaches. However, as budget differentiation increases, the benefits of the proposed method become more pronounced, especially for cores with lower budgets.
  • The absolute overestimation, in terms of additional regulation periods, is shown to be relatively small, typically not exceeding 5 periods, and often around 3 periods for cores with intermediate budgets.

Limitations and Future Work

  • Computational Complexity: The analysis, while more accurate, is pseudo-polynomial with respect to budgets and task parameters. This limits its direct application to systems with very large budgets or many tasks without further optimization.
  • Experimental Validation: The authors plan to validate their analysis on a commercial multi-core platform.
  • Budget Assignment Strategies: They intend to study how different budget assignment strategies (beyond linear) affect WCET estimation performance.
  • Algorithmic Complexity and Optimizations: Further work will focus on reducing the algorithmic complexity and exploring possible optimizations for the analysis.
  • Timing Anomalies: While the paper assumes timing anomalies are embedded in the experimentally derived WCET, it acknowledges that recent studies suggest static analysis can account for them.
  • Cache Contention: The analysis does not explicitly address contention at the shared cache bus and controller level, though it notes this is often less of a bottleneck than DRAM.

Summary updated

Abstract

In the last decade there has been a steady uptrend in the popularity of embedded multi-core platforms. This represents a turning point in the theory and implementation of real-time systems. From a real-time standpoint, however, the extensive sharing of hardware resources (e.g. caches, DRAM subsystem, I/O channels) represents a major source of unpredictability. Budget-based memory regulation (throttling) has been extensively studied to enforce a strict partitioning of the DRAM subsystem’s bandwidth. The common approach to analyze a task under memory bandwidth regulation is to consider the budget of the core where the task is executing, and assume the worst-case about the remaining cores' budgets. In this work, we propose a novel analysis strategy to derive the WCET of a task under memory bandwidth regulation that takes into account the exact distribution of memory budgets to cores. In this sense, the proposed analysis represents a generalization of approaches that consider (i) even budget distribution across cores; and (ii) uneven but unknown (except for the core under analysis) budget assignment. By exploiting the additional piece of information, we show that it is possible to derive a more accurate WCET estimation. Our evaluations highlight that the proposed technique can reduce overestimation by 30% in average, and up to 60%, compared to the state of the art.
BibTeX
@inproceedings{mancuso2017wcet,
  author = {Renato Mancuso and Rodolfo Pellizzoni and Neriman Tokcan and Marco Caccamo},
  title = {{WCET Derivation under Single Core Equivalence with Explicit Memory Budget Assignment}},
  booktitle = {ECRTS},
  year = {2017},
  url = {https://openreview.net/forum?id=hXAFkWO0Tl4},
}
Figure