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

Improving the Precision of Abstract Interpretation Based Cache Persistence Analysis

Authors Info & Claims
Published:04 June 2015Publication History

ABSTRACT

When designing hard real-time embedded systems, it is required to estimate the worst-case execution time (WCET) of each task for schedulability analysis. Precise cache persistence analysis can significantly tighten the WCET estimation, especially when the program has many loops. Methods for persistence analysis should safely and precisely classify memory references as persistent. Existing safe approaches suffer from multiple sources of pessimism and may not provide precise results. In this paper, we first identify some sources of pessimism that two recent approaches based on younger set and may analysis may encounter. Then, we propose two methods to eliminate these sources of pessimism. The first method improves the update function of the may analysis-based approach; and the second method integrates the younger set-based and may analysis-based approaches together to further reduce pessimism. We also prove the two proposed methods are still safe. We evaluate the approaches on a set of benchmarks and observe the number of memory references classified as persistent is increased by the proposed methods. Moreover, we empirically compare the storage space and analysis time used by different methods.

References

  1. M. Alt, C. Ferdinand, F. Martin, and R. Wilhelm. Cache behavior prediction by abstract interpretation. In R. Cousot and D. Schmidt, editors, Static Analysis, volume 1145 of Lecture Notes in Computer Science, pages 52--66. Springer Berlin Heidelberg, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. C. Ballabriga and H. Casse. Improving the First-Miss Computation in Set-Associative Instruction Caches. In Proceedings of the 2008 Euromicro Conference on Real-Time Systems, ECRTS '08, pages 341--350, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. S. Chattopadhyay, A. Banerjee, and A. Roychoudhury. Precise Micro-architectural Modeling for WCET Analysis via AI+SAT. In Proceedings of the 2013 IEEE 19th Real-Time and Embedded Technology and Applications Symposium (RTAS), RTAS '13, pages 87--96, 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. P. Cousot and R. Cousot. Abstract Interpretation: A Unified Lattice Model for Static Analysis of Programs by Construction or Approximation of Fixpoints. In Proceedings of the 4th ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages, POPL '77, pages 238--252, 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. C. Cullmann. Cache Persistence Analysis: A Novel Approach Theory and Practice. In Proceedings of the 2011 SIGPLAN/SIGBED Conference on Languages, Compilers and Tools for Embedded Systems, LCTES '11, pages 121--130, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. C. Cullmann. Cache Persistence Analysis: Theory and Practice. ACM Trans. Embed. Comput. Syst., 12(1s):40:1--40:25, Mar. 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. C. Ferdinand. A fast and efficient cache persistence analysis. Technical report, Universitat des Saarlandes, 1997.Google ScholarGoogle Scholar
  8. C. Ferdinand, F. Martin, and R. Wilhelm. Applying compiler techniques to cache behavior prediction. In Proceedings of the ACM SIGPLAN 1997 Workshop on Languages, Compilers, and Tools for Real-Time Systems, pages 37--46, 1997.Google ScholarGoogle Scholar
  9. C. Ferdinand and R. Wilhelm. On Predicting Data Cache Behavior for Real-Time Systems. In Proceedings of the ACM SIGPLAN Workshop on Languages, Compilers, and Tools for Embedded Systems LCTES '98, pages 16--30, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. J. Gustafsson, A. Betts, A. Ermedahl, and B. Lisper. The Mälardalen WCET benchmarks -- past, present and future. In WCET 2010, pages 137--147, 2010.Google ScholarGoogle Scholar
  11. B. K. Huynh, L. Ju, and A. Roychoudhury. Scope-Aware Data Cache Analysis for WCET Estimation. In Proceedings of the 2011 17th IEEE Real-Time and Embedded Technology and Applications Symposium, RTAS '11, pages 203--212, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. M. Lv, W. Yi, N. Guan, and G. Yu. Combining Abstract Interpretation with Model Checking for Timing Analysis of Multicore Software. In Proceedings of the 2010 31st IEEE Real-Time Systems Symposium, RTSS '10, pages 339--349, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. F. Mueller. Timing Analysis for Instruction Caches. Real-Time Syst., 18(2/3):217--247, May 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. R. Sen and Y. N. Srikant. WCET Estimation for Executables in the Presence of Data Caches. In Proceedings of the 7th ACM & IEEE International Conference on Embedded Software, EMSOFT '07, pages 203--212, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. H. Theiling, C. Ferdinand, and R. Wilhelm. Fast and Precise WCET Prediction by Separated Cache andPath Analyses. Real-Time Syst., 18(2/3):157--179, May 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. R. Wilhelm. Why AI+ ILP is good for WCET, but MC is not, nor ILP alone. In Verification, Model Checking, and Abstract Interpretation pages 309--322. Springer, 2004.Google ScholarGoogle ScholarCross RefCross Ref
  17. R.Wilhelm, J. Engblom, A. Ermedahl, N. Holsti, S. Thesing, D. Whalley, G. Bernat, C. Ferdinand, R. Heckmann, T. Mitra, F. Mueller, I. Puaut, P. Puschner, J. Staschulat, and P. Stenström. The Worst-case Execution-time Problem -- Overview of Methods and Survey of Tools. ACM Trans. Embed. Comput. Syst., 7(3):36:1--36:53, May 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Improving the Precision of Abstract Interpretation Based Cache Persistence Analysis

    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'15: Proceedings of the 16th ACM SIGPLAN/SIGBED Conference on Languages, Compilers and Tools for Embedded Systems 2015 CD-ROM
      June 2015
      149 pages
      ISBN:9781450332576
      DOI:10.1145/2670529
      • cover image ACM SIGPLAN Notices
        ACM SIGPLAN Notices  Volume 50, Issue 5
        LCTES '15
        May 2015
        141 pages
        ISSN:0362-1340
        EISSN:1558-1160
        DOI:10.1145/2808704
        • Editor:
        • Andy Gill
        Issue’s Table of Contents

      Copyright © 2015 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: 4 June 2015

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed limited

      Acceptance Rates

      Overall Acceptance Rate116of438submissions,26%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader