ASCOM: Affordable Sequence-aware COntention Modeling in Crossbar-based MPSoCs

Jeremy Jens Giesen León, Enrico Mezzetti, Jaume Abella, Francisco Javier Cazorla-AlmeidaSAC 2023

Introduction

In high-integrity domains such as automotive and aerospace engineering, determining the Worst-Case Execution Time (WCET) of software is a critical safety requirement. Modern Multicore Processor Systems on Chip (MPSoCs) complicate this task due to shared hardware resources. When multiple cores attempt to access a shared resource, such as memory via a crossbar interconnect, contention occurs, leading to execution delays. Accurately modeling this contention is essential for providing safe yet tight timing guarantees.

The Complexity Wall of Sequence-Aware Modeling

Previous state-of-the-art approaches, such as Sequence-Aware Pairing (SeAP), significantly improved the tightness of contention bounds by considering the specific order of memory requests rather than just their total count. However, SeAP faces a "complexity wall." Its computational requirements grow exponentially with the number of cores ($k$) and the length of request sequences ($n$). For real-world applications generating sequences of 100,000 or more requests, SeAP becomes computationally prohibitive, often requiring days to process data that must be analyzed in minutes. ASCOM aims to bridge this gap between accuracy and scalability.

The ASCOM Methodology

ASCOM (Affordable Sequence-aware COntention Modeling) is designed to make sequence-aware modeling practical for industrial-scale applications. It achieves this through two primary innovations:

1. Leveraging Compositionality (COMP)

Instead of analyzing all $k$ cores simultaneously, which is exponentially expensive, ASCOM decomposes the problem into pairwise interactions. It calculates the contention between the "task under analysis" and each "contender task" individually, then aggregates these results. To maintain a safe upper bound, ASCOM employs a forced linearity weight function ($W^+$). This mathematical adjustment ensures that the sum of pairwise contentions never underestimates the actual total contention, even when the underlying hardware behavior is non-linear.

2. Segmenting Sequences (SEGM)

To further enhance performance, ASCOM introduces sequence segmentation. Long request sequences are divided into fixed-size "chunks" or segments. Contention is calculated for each segment pair and then summed. While this approach might theoretically miss worst-case scenarios that span segment boundaries, the impact on accuracy is minimal for long, realistic sequences.

By combining these techniques, the computational complexity drops from $O(n^k)$ to $O(kn^2)$.

Experimental Evaluation

The researchers evaluated ASCOM using synthetic sequences modeled after the Infineon AURIX TC297, a popular multicore platform in the automotive industry. The evaluation focused on scalability and the trade-off between speed and accuracy.

Scalability and Execution Time

The primary strength of ASCOM is its ability to handle large-scale data. As shown in the execution time analysis, ASCOM dramatically outperforms the SeAP baseline.

Execution time comparison between SeAP, COMP, and various ASCOM configurations.

While SeAP's execution time escalates rapidly, ASCOM can process sequences of 100,000 requests in less than 10 minutes. This makes it a practical tool for analyzing real-time applications that operate in short windows but generate tens of thousands of memory requests.

Accuracy and Tightness

Despite the simplifications introduced by compositionality and segmentation, ASCOM remains highly effective. It exhibits an average overestimation of only 9.68% compared to the exact SeAP model. More importantly, it maintains the core benefit of sequence-aware modeling: significantly tighter bounds than traditional "count-only" models.

Relative accuracy of sequence-aware modeling compared to count-based models (MTO).

As illustrated in the accuracy comparison, sequence-aware models (including ASCOM's variants) provide much tighter bounds than the Maximum Theoretical Overlap (MTO) approach, which only considers access counts. In some scenarios, sequence-aware modeling was found to be 42% tighter than count-only methods.

Conclusion

ASCOM represents a significant step forward in real-time systems research. By transforming an exponentially complex modeling problem into a quadratic one, it enables the use of sophisticated sequence-aware analysis on real-world, large-scale software tasks. The trade-off—a small amount of added pessimism for a massive increase in speed—makes ASCOM a viable and affordable solution for modern MPSoC timing analysis.

Summary updated

BibTeX
@inproceedings{leon2023ascom,
  author = {Jeremy Jens Giesen León and Enrico Mezzetti and Jaume Abella and Francisco Javier Cazorla-Almeida},
  title = {{ASCOM: Affordable Sequence-aware COntention Modeling in Crossbar-based MPSoCs}},
  booktitle = {SAC},
  year = {2023},
  doi = {10.1145/3555776.3577793},
}
Figure