,
Bryan C. Ward
Creative Commons Attribution 4.0 International license
Cache-related preemption delay (CRPD) analysis bounds the additional execution time caused by cache evictions during preemptions. Tightly bounding CRPDs is challenging as there are many possible preemption patterns that can occur at runtime, and thus there has been continuous work over three decades to refine these bounds. This paper presents CacheFlow, a framework that formulates total CRPD as a maximum-flow problem. In the flow network, nodes and edge capacities can be constructed to model certain eviction patterns that can occur. Therefore, by (safely) removing nodes or edges, or reducing edge capacities, tighter CRPD bounds can be derived. This is demonstrated with different CacheFlow refinements, some of which include insights from prior analyses, as well as a refinement for simply periodic systems. An iterative max-flow formulation is also described to more efficiently integrate the max-flow solving in the context of standard fixed-priority response-time analysis. Experiments on synthetic task systems demonstrate significant schedulability improvements across a range of system configurations, while also having reasonable solving times.
@InProceedings{he_et_al:LIPIcs.ECRTS.2026.13,
author = {He, Tiancheng and Ward, Bryan C.},
title = {{CacheFlow: Using Maximum Flow to Bound Cache-Based Preemption Delays}},
booktitle = {38th European Conference on Real-Time Systems (ECRTS 2026)},
pages = {13:1--13:22},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-429-1},
ISSN = {1868-8969},
year = {2026},
volume = {375},
editor = {Kritikakou, Angeliki},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ECRTS.2026.13},
URN = {urn:nbn:de:0030-drops-266058},
doi = {10.4230/LIPIcs.ECRTS.2026.13},
annote = {Keywords: Cache-related Preemption Delay, Real-Time Systems, Maximum Flow}
}