Skip to main content
QUICK REVIEW

[Paper Review] A WCET-aware cache coloring technique for reducing interference in real-time systems

Fabien Bouquillon, Clément Ballabriga|arXiv (Cornell University)|Mar 22, 2019
Real-Time Systems SchedulingComputer Science5 references1 citations
TL;DR

This paper proposes a WCET-aware cache coloring technique that uses integer linear programming (ILP) and heuristics to minimize inter-task cache interference in real-time systems. By intelligently assigning virtual memory pages to physical cache colors based on task-specific WCET needs, the method increases schedulability by up to 20% compared to random partitioning, especially under constrained deadlines and high utilization.

ABSTRACT

The predictability of a system is the condition to give saferbound on worst case execution timeof real-time tasks which are running on it. Commercial off-the-shelf(COTS) processors are in-creasingly used in embedded systems and contain shared cache memory. This component hasa hard predictable behavior because its state depends of theexecution history of the systems.To increase predictability of COTS component we use cache coloring, a technique widely usedto partition cache memory. Our main contribution is a WCET aware heuristic which parti-tion task according to the needs of each task. Our experiments are made with CPLEX an ILPsolver with random tasks set generated running on preemptive system scheduled with earliestdeadline first(EDF).

Motivation & Objective

  • To reduce inter-task cache interference in multi-core real-time systems with shared caches.
  • To improve worst-case execution time (WCET) predictability by accounting for task-specific cache access patterns.
  • To develop a cache partitioning strategy that minimizes interference while respecting timing constraints.
  • To explore the trade-off between inter-task and intra-task cache conflicts in set-associative caches.
  • To evaluate the effectiveness of ILP-based and heuristic-driven cache coloring under EDF scheduling.

Proposed method

  • Uses integer linear programming (ILP) to model cache coloring as a variant of the multiple-choice knapsack problem with interdependent object values.
  • Applies a heuristic-based approach to explore cache coloring configurations that minimize WCET while respecting task timing constraints.
  • Integrates task-specific WCET estimates into the coloring process to prioritize critical pages.
  • Employs a hybrid approach combining ILP for optimal configuration and heuristics for scalability.
  • Uses EDF scheduling with constrained deadlines and evaluates performance on synthetic task sets.
  • Evaluates three heuristics: random, federated, and fair coloring, with fair coloring showing superior performance.

Experimental results

Research questions

  • RQ1How can cache coloring be optimized to reduce inter-task interference in preemptive real-time systems?
  • RQ2What is the impact of different page coloring heuristics on system schedulability under high utilization?
  • RQ3How does WCET-aware cache partitioning compare to random or fixed partitioning in terms of schedulability?
  • RQ4To what extent can ILP-based optimization improve cache utilization and reduce interference?
  • RQ5Which heuristic provides the best trade-off between performance and complexity in cache coloring?

Key findings

  • The proposed ILP-based method increases the percentage of schedulable task sets by up to 20% compared to random cache partitioning.
  • The fair coloring heuristic outperforms random and federated heuristics by reducing intra-task cache conflicts and evictions.
  • Under constrained deadlines and high utilization, the fair coloring heuristic achieves the highest schedulability rate.
  • The number of cache partitions used is minimized with the fair coloring heuristic, indicating better resource utilization.
  • The ILP approach combined with heuristics effectively reduces inter-task interference while maintaining WCET predictability.
  • The results show that task-specific WCET-aware coloring significantly improves system predictability and schedulability in multi-core real-time systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.