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

Resilience analysis: tightening the CRPD bound for set-associative caches

Published:13 April 2010Publication History

ABSTRACT

In preemptive real-time systems, scheduling analyses need - in addition to the worst-case execution time - the context-switch cost. In case of preemption, the preempted and the preempting task may interfere on the cache memory.

This interference leads to additional cache misses in the preempted task. The delay due to these cache misses is referred to as the cache-related preemption delay~(CRPD), which constitutes the major part of the context-switch cost.

In this paper, we present a new approach to compute tight bounds on the CRPD for LRU set-associative caches, based on analyses of both the preempted and the preempting task. Previous approaches analyzing both the preempted and the preempting task were either imprecise or unsound.

As the basis of our approach we introduce the notion of resilience: The resilience of a memory block of the preempted task is the maximal number of memory accesses a preempting task could perform without causing an additional miss to this block. By computing lower bounds on the resilience of blocks and an upper bound on the number of accesses by a preempting task, one can guarantee that some blocks may not contribute to the CRPD. The CRPD analysis based on resilience considerably outperforms previous approaches.

References

  1. Mälardalen WCET benchmark suite. http://www.mrtc.mdh.se/projects/wcet/benchmarks.html.Google ScholarGoogle Scholar
  2. Papabench: a free real-time benchmark. http://www.irit.fr/recherches/ARCHI/MARCH/rubrique.php3?id_rubrique=97.Google ScholarGoogle Scholar
  3. B. Ackland, D. Anesko, D. Brinthaupt, S. J. Daubert, A. Kalavade, J. Knoblock, E. Micca, M. Moturi, C. J. Nicol, J. H. O'Neill, J. Othmer, E. Sackinger, K. J. Singh, J. Sweet, C. J. Terman, and J.Williams. A single-chip, 1.6 billion, 16-b mac/s multiprocessor dsp,. IEEE Journal of Solid-state circuits, 35(3):412--423, 2000.Google ScholarGoogle ScholarCross RefCross Ref
  4. S. Altmeyer and C. Burguiere. A new notion of useful cache block to improve the bounds of cache-related preemption delay. In ECRTS '09, pages 109--118. IEEE Computer Society, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. C. Ballabriga, H. Casse, and P. Sainrat. An improved approach for set-associative instruction cache partial analysis. In SAC '08, pages 360--367, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. C. Burguiere, J. Reineke, and S. Altmeyer. Cache-related preemption delay computation for set-associative caches: Pitfalls and solutions. In WCET '09, 2009.Google ScholarGoogle Scholar
  7. C. Ferdinand and R. Wilhelm. Fast and efficient cache behavior prediction for real-time systems. Real-Time Systems, 17(2/3):131--181, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. C.-G. Lee, J. Hahn, S. L. Min, R. Ha, S. Hong, C. Y. Park, M. Lee, and C. S. Kim. Analysis of cache-related preemption delay in fixedpriority preemptive scheduling. In RTSS'96, page 264. IEEE Computer Society, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. T. Lundqvist and P. Stenstrom. Timing anomalies in dynamically scheduled microprocessors. In RTSS '99, page 12, Washington, DC, USA, 1999. IEEE Computer Society. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. H. S. Negi, T. Mitra, and A. Roychoudhury. Accurate estimation of cache-related preemption delay. In CODES+ISSS'03. ACM, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. F. Nemer, H. Casse, P. Sainrat, J. P. Bahsoun, and M. D. Michiel. Papabench: a free real-time benchmark. In WCET '06, Dagstuhl, Germany, 2006.Google ScholarGoogle Scholar
  12. F. Nemer, H. Casse, P. Sainrat, and J. P. Bahsoun. Inter-task WCET computation for a-way instruction caches. In SIES '08, pages 169--176, 2008.Google ScholarGoogle ScholarCross RefCross Ref
  13. A. Rakib, O. Parshin, S. Thesing, and R. Wilhelm. Component-wise i-cache behavior prediction. In ATVA '04, pages 211--229, 2004.Google ScholarGoogle Scholar
  14. J. Reineke and D. Grund. Relative competitive analysis of cache replacement policies. In LCTES'08, pages 51--60. ACM, June 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. J. Reineke, B. Wachter, S. Thesing, R. Wilhelm, I. Polian, J. Eisinger, and B. Becker. A definition and classification of timing anomalies. In WCET '06, Dagstuhl, Germany, 2006.Google ScholarGoogle Scholar
  16. J. Staschulat and R. Ernst. Multiple process execution in cache related preemption delay analysis. In EMSOFT '04, pages 278--286. ACM, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. J. Staschulat and R. Ernst. Scalable precision cache analysis for realtime software. ACM TECS, 6(4):25, 2007. ISSN 1539-9087. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Y. Tan and V. Mooney. Integrated intra- and inter-task cache analysis for preemptive multi-tasking real-time systems. In SCOPES'04, pages 182--199, 2004.Google ScholarGoogle ScholarCross RefCross Ref
  19. H. Tomiyama and N. D. Dutt. Program path analysis to bound cacherelated preemption delay in preemptive real-time systems. In CODES'00. ACM, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Resilience analysis: tightening the CRPD bound for set-associative caches

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Conferences
          LCTES '10: Proceedings of the ACM SIGPLAN/SIGBED 2010 conference on Languages, compilers, and tools for embedded systems
          April 2010
          184 pages
          ISBN:9781605589534
          DOI:10.1145/1755888
          • cover image ACM SIGPLAN Notices
            ACM SIGPLAN Notices  Volume 45, Issue 4
            LCTES '10
            April 2010
            170 pages
            ISSN:0362-1340
            EISSN:1558-1160
            DOI:10.1145/1755951
            Issue’s Table of Contents

          Copyright © 2010 ACM

          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]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 13 April 2010

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article

          Acceptance Rates

          Overall Acceptance Rate116of438submissions,26%

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader