Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/2597809.2597814acmconferencesArticle/Chapter ViewAbstractPublication PagescpsweekConference Proceedingsconference-collections
research-article

Cache-related preemption delay analysis for FIFO caches

Published: 12 June 2014 Publication History

Abstract

Hard real-time systems are typically composed of multiple tasks, subjected to timing constraints. To guarantee that these constraints will be respected, the Worst-Case Response Time (WCRT) of each task is needed. In the presence of systems supporting preemptible tasks, we need to take into account the time lost due to task preemption. A major part of this delay is the Cache-Related Preemption Delay (CRPD), which represents the penalties due to cache block evictions by preempting tasks. Previous works on CRPD have focused on caches with Least Recently used (LRU) replacement policy. However, for many real-world processors such as ARM9 or ARM11, the use of First-in-first-out (FIFO) cache replacement policy is common.
In this paper, we propose an approach to compute CRPD in the presence of instruction caches with FIFO replacement policy. We use the result of a FIFO instruction cache categorization analysis to account for single-task cache misses, and we model as an Integer Linear Programming (ILP) system the additional preemption-related cache misses. We study the effect of cache related timing anomalies, our work is the first to deal with the effect of timing anomalies in CRPD computation. We also present a WCRT computation method that takes advantage of the fact that our computed CRPD does not increase linearly with respect to the preemption count. We evaluated our method by computing the CRPD with realistic benchmarks (e.g. drone control application, robot controller application), under various cache configuration parameters. The experimentation shows that our method is able to compute tight CRPD bound for benchmark tasks.

References

[1]
S. Altmeyer and C. Burguiere. A new notion of useful cache block to improve the bounds of cache-related preemption delay. In ECRTS, 2009.
[2]
S. Altmeyer, R. I. Davis, and C. Maiza. Cache related pre-emption delay aware response time analysis for fixed priority pre-emptive systems. In RTSS, 2011.
[3]
C. Berg. Plru cache domino effects. In WCET, 2006.
[4]
C. Burgui'ere, J. Reineke, and S. Altmeyer. Cache-related preemption delay computation for set-associative caches - pitfalls and solutions. In WCET, 2009.
[5]
F. Cassez, R. R. Hansen, and M. C. Olesen. What is a timing anomaly? In WCET, 2012.
[6]
L. K. Chong, C. Ballabriga, V.-T. Pham, S. Chattopadhyay, and A. Roychoudhury. Integrated timing analysis of application and operating systems code. In RTSS, 2013.
[7]
D. Grund and J. Reineke. Precise and efficient FIFO-replacement analysis based on static phase detection. In ECRTS, 2010.
[8]
J. Gustafsson, A. Betts, A. Ermedahl, and B. Lisper. The mälardalen wcet benchmarks: Past, present and future. In WCET, 2010.
[9]
C.-G. Lee, H. Hahn, Y.-M. Seo, S. L.Min, R. Ha, S. Hong, C. Y. Park, M. Lee, and C. S. Kim. Analysis of cache-related preemption delay in fixed-priority preemptive scheduling. IEEE Trans. Comput., 47(6), 1998.
[10]
X. Li, A. Roychoudhury, and T. Mitra. Modeling out-of-order processors for wcet analysis. Real-Time Systems, 34(3), 2006.
[11]
X. Li, Y. Liang, T. Mitra, and A. Roychoudhury. Chronos: A timing analyzer for embedded software. Science of Computer Programming, 2007.
[12]
T. Lundqvist. A WCET Analysis Method for Pipelined Microprocessors with Cache Memories. PhD thesis, Chalmers University of Technology, 2002.
[13]
T. Lundqvist and P. Stenström. Timing anomalies in dynamically scheduled microprocessors. In RTSS, 1999.
[14]
H. S. Negi, T. Mitra, and A. Roychoudhury. Accurate estimation of cache-related preemption delay. In CODES+ISSS, 2003.
[15]
F. Nemer, H. Cassé, P. Sainrat, J.-P. Bahsoun, and M. De Michiel. Papabench: a free real-time benchmark. In WCET, 2006.
[16]
J. Reineke and D. Grund. Relative competitive analysis of cache replacement policies. In LCTES, 2008.
[17]
J. Staschulat and R. Ernst. Scalable precision cache analysis for real-time software. ACM TECS, 6(4), 2007.
[18]
Y. Tan and V. J.Mooney. Integrated intra- and inter-task cache analysis for preemptive multi-tasking real-time systems. In SCOPES, 2004.
[19]
H. Tomiyama and N. D. Dutt. Program path analysis to bound cacherelated preemption delay in preemptive real-time systems. In CODES, 2000.

Cited By

View all
  • (2016)Cache-related preemption delay analysis for multi-level inclusive cachesProceedings of the 13th International Conference on Embedded Software10.1145/2968478.2968481(1-10)Online publication date: 1-Oct-2016

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
LCTES '14: Proceedings of the 2014 SIGPLAN/SIGBED conference on Languages, compilers and tools for embedded systems
June 2014
174 pages
ISBN:9781450328777
DOI:10.1145/2597809
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 12 June 2014

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. crpd
  2. fifo caches
  3. timing anomalies
  4. wcrt

Qualifiers

  • Research-article

Funding Sources

Conference

LCTES '14

Acceptance Rates

LCTES '14 Paper Acceptance Rate 16 of 51 submissions, 31%;
Overall Acceptance Rate 116 of 438 submissions, 26%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 04 Oct 2024

Other Metrics

Citations

Cited By

View all
  • (2016)Cache-related preemption delay analysis for multi-level inclusive cachesProceedings of the 13th International Conference on Embedded Software10.1145/2968478.2968481(1-10)Online publication date: 1-Oct-2016

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media