Multi-Objective Memory Bandwidth Regulation and Cache Partitioning for Multicore Real-Time Systems

Binqi Sun, Zhihang Wei, Andrea Bastoni, Debayan Roy, Mirco Theile, Tomasz Kloda, Rodolfo Pellizzoni, Marco Caccamo · DOI

Abstract

In modern multicore processors, shared resource contention—often termed the "noisy neighbor" problem—poses a significant challenge for real-time systems. This paper introduces a comprehensive framework for the co-allocation of Last-Level Cache (LLC) and memory bandwidth. By combining a 0-1 Integer Linear Programming (ILP) model with a multi-layer heuristic called MMO (Multi-objective Multi-layer Optimization), the researchers achieved up to a 62% increase in schedulable task sets and a 3x speedup in computation time compared to current state-of-the-art methods.

Introduction: The Challenge of Resource Contention

Real-time systems require predictable execution times to guarantee deadlines. However, when multiple cores share hardware resources like the LLC and memory bus, a memory-intensive task on one core can significantly delay a critical task on another. To address this, engineers utilize partitioning techniques such as cache coloring and memory bandwidth regulation.

The primary difficulty lies in the co-allocation problem: a task's execution time is a function of both allocated cache and bandwidth. Finding the optimal distribution of these resources to ensure all tasks meet their deadlines while minimizing hardware usage is an NP-hard optimization puzzle.

The MMO Framework

The authors propose two main contributions to solve the co-allocation challenge efficiently:

1. 0-1 Integer Linear Programming (ILP)

The problem is formulated using a 0-1 ILP model, employing only binary variables and linear constraints. This approach is mathematically cleaner and faster for standard solvers (like Gurobi) to process compared to previous mixed-integer models that relied on non-linear constraints.

2. Multi-layer Heuristic Optimization (MMO)

To maintain scalability for large systems, the MMO heuristic employs a two-layer strategy:

  • Outer Layer (Resource Search): This layer explores various distributions of cache and bandwidth across cores. It uses Pareto-pruning to discard inefficient resource combinations early, preventing the algorithm from wasting time on suboptimal configurations.
  • Inner Layer (Task Allocation): Once a resource budget is set for a core, this layer assigns tasks to it. This is treated as a 0-1 Knapsack Problem and solved optimally using Dynamic Programming.

Experimental Methodology and Profiling

The framework was evaluated using real-world workloads on an AMD UltraScale+ ZCU102 platform. The researchers profiled benchmarks from the San Diego Vision Benchmark Suite (SD-VBS) and PARSEC to create detailed "Slowdown Profiles."

Heatmap of the slowdown profile for the mser-qcif benchmark, showing a 25.3x slowdown when resources are most restricted.

These profiles quantify exactly how much a task slows down as cache and bandwidth are restricted. For instance, the mser benchmark exhibits a dramatic slowdown when both resources are throttled, highlighting the critical need for intelligent allocation.

Line graphs showing the sensitivity of slowdown to memory bandwidth partitions (left) and cache partitions (right).

Key Results and Impact

The MMO framework demonstrates significant improvements over the previous state-of-the-art algorithm, CaM:

  • Schedulability: MMO found valid schedules for 62.67% more task sets in the PARSEC suite and 50.34% more in SD-VBS.
  • Efficiency: The heuristic is approximately 3x faster than competing methods. For large task sets (N=60), it finds solutions in about 5 seconds, whereas other methods often timed out.
  • Resource Savings: MMO consistently identifies solutions that use fewer total cache partitions and less bandwidth, providing designers with a Pareto front of optimal configurations to choose from based on system priorities (e.g., power vs. performance).

Conclusion

By integrating linear modeling with Pareto-based pruning, the MMO framework provides a robust and efficient solution for resource co-allocation in multicore real-time systems. Future work will focus on extending the model to support task dependencies (DAGs), heterogeneous core architectures, and dynamic resource adjustment.

Summary updated

BibTeX
@inproceedings{sun2025multi,
  author = {Binqi Sun and Zhihang Wei and Andrea Bastoni and Debayan Roy and Mirco Theile and Tomasz Kloda and Rodolfo Pellizzoni and Marco Caccamo},
  title = {{Multi-Objective Memory Bandwidth Regulation and Cache Partitioning for Multicore Real-Time Systems}},
  booktitle = {ECRTS},
  year = {2025},
  doi = {10.4230/lipics.ecrts.2025.2},
}
Figure