skip to main content
10.1145/2392987.2393008acmotherconferencesArticle/Chapter ViewAbstractPublication PagesrtnsConference Proceedingsconference-collections
research-article

Optimising task layout to increase schedulability via reduced cache related pre-emption delays

Published:08 November 2012Publication History

ABSTRACT

Cache memories have been introduced into embedded systems to prevent memory access times from becoming an unacceptable performance bottleneck. For hard real-time systems, it is vital that an accurate estimate of the worst-case response time for each task can be determined. Memory and cache are split into blocks containing instructions and data. During a pre-emption, blocks from the pre-empting task can evict those of the pre-empted task. When the pre-empted task is resumed, if it then has to re-load the evicited blocks, cache related pre-emption delays (CRPD) are introduced which then affect the worst-case response times of the task. Because the position of code in memory determines where the code will be placed in cache, different layouts result in different CRPD and worst-case response times for tasks. We introduce an approach that uses simulated annealing to find layouts that minimise the CRPD incurred due to a pre-emption. This in turn reduces the worst-case response times of tasks, which increases the schedulability of the taskset. We use schedulability analysis that captures whether a block will have to be re-loaded after a pre-emption, to drive the algorithm towards a near optimal solution. After explaining our approach, we present a number of experiments which demonstrate its effectiveness for a number of different system, task and cache configurations.

References

  1. Altmeyer, S. and Burguière, C. Cache-related Preemption Delay via Useful Cache Blocks: Survey and Redefinition. Journal of Systems Architecture (2010). Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Altmeyer, S., Davis, R. I., and Maiza, C. Cache Related Pre-emption Delay Aware Response Time Analysis for Fixed Priority Pre-emptive Systems. In Proceedings of the 32nd IEEE Real-Time Systems Symposium (RTSS) (Vienna, Austria 2011), 261--271. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Altmeyer, S., Davis, R. I., and Maiza, C. Improved Cache Related Pre-emption Delay Aware Response Time Analysis for Fixed Priority Pre-emptive Systems. Real-Time Systems, 48, 5 (September 2012), 499--512. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Arnaud, A. and Puaut, I. Dynamic Instruction Cache Locking in Hard Real-Time Systems. In The 14th International Conference on Real-Time and Network Systems (2006).Google ScholarGoogle Scholar
  5. Audsley, N. C., Burns, A., Richardson, M., and Wellings, A. J. Applying new Scheduling Theory to Static Priority Preemptive Scheduling. Software Engineering Journal, 8, 5 (1993), 284--292.Google ScholarGoogle Scholar
  6. Bastoni, A., Brandenburg, B., and Anderson, J. Cache-Related Preemption and Migration Delays: Empirical Approximation and Impact on Schedulability. In Proceedings of OSPERT (Brussels, Belgum 2010), 33--44.Google ScholarGoogle Scholar
  7. Bertogna, M., Xhani, O., Marinoni, M., Esposito, F., and Buttazzo, G. Optimal Selection of Preemption Points to Minimize Preemption Overhead. In Proceedings of 23rd Euromicro Conference on Real-Time Systems (ECRTS) (Porto, Portugal 2011), 217--227. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Bini, E. and Buttazzo, G. Measuring the Performance of Schedulability Tests. Real-Time Systems, 30, 1 (2005), 129--154. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Burns, A. Preemptive Priority-Based Scheduling: An Appropriate Engineering Approach. In Advances in Real-Time Systems. 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Busquets-Mataix, J. V., Serrano, J. J., Ors, R., Gil, P., and Wellings, A. Adding Instruction Cache Effect to Schedulability Analysis of Preemptive Real-Time Systems. In Proceedings of the 2nd IEEE Real-Time Technology and Applications Symposium (RTAS) (1996), 204--212. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Campoy, A. M., Ivars, A. P., and Busquets-Mataix, J. V. Dynamic Use of Locking Caches in Multitask, Preemptive Real-Time Systems. In Proceedings of the 15th Triennial World Congress of the International Federation of Automatic Control (Barcelona 2002).Google ScholarGoogle ScholarCross RefCross Ref
  12. Campoy, A. M., Ivars, A. P., and Busquets-Mataix, J. V. Static Use of Locking Caches in Multitask Preemptive Real-Time Systems. In Proceedings of the IEEE/IEE Real-Time Embedded Systems Workshop (2001).Google ScholarGoogle Scholar
  13. Campoy, A. M., Puaut, I., Ivars, A. P., and Busquets-Mataix, J. V. Cache Contents Selection for Statically-locked Instrction Caches: An Algorithm Comparison. In Proceedings of the 17th Euromicro Conference on Real-Time Systems (ECRTS) (Palma de Mallorca, Balearic Islands, Spain 2005), 49--56. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Davis, R. I., Zabos, A., and Burns, A. Efficient Exact Schedulability Tests for Fixed Priority Real-Time Systems. IEEE Transactions on Computers, 57, 9 (September 2008), 1261--1276. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Falk, H. and Kotthaus, H. WCET-driven Cache-aware Code Positioning. In Proceedings of the International Conference on Compilers, Architectures and Synthesis for Embedded Systems (CASES) (Taipei, Taiwan 2011), 145--154. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Gebhard, G. and Altmeyer, S. Optimal Task Placement to Improve Cache Performance. In Proceedings of the 7th ACM & IEEE International Conference on Embedded Software (EMSOFT) (Salzburg, Austria 2007), 259--268. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Gustafsson, J., Betts, A., Ermedah, A., and Lisper, B. The Mälardalen WCET benchmarks -- past, present and future. In Proceedings of the 10th International Workshop on Worst-Case Execution Time Analysis (WCET'2010) (Brussels, Belgium September 2010), 137--147.Google ScholarGoogle Scholar
  18. Lee, C., Hahn, J., Seo, Y., Min, S., Ha, H., Hong, S., Park, C., Lee, M., and Kim, C. Analysis of Cache-related Preemption Delay in Fixed-priority Preemptive Scheduling. IEEE Transactions on Computers, 47, 6 (June 1998), 700--713. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Lehoczky, J. The Rate Monotonic Scheduling Algorithm: Exact Characterization and Average Case Behavior. In Proceedings of the 10th Real Time Systems Symposium (RTSS) (Santa Monica, California, USA 1989), 166--171.Google ScholarGoogle Scholar
  20. Liu, T., Li, M., and Xue, C. J. Instruction Cache Locking for Multi-task Real-Time Embedded Systems. Real-Time Systems, 48, 2 (2011), 166--197. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Lokuciejewski, P., Falk, H., and Marwedel, P. WCET-driven Cache-based Procedure Positioning Optimizations. In Proceedings of the 20th Euromicro Conference on Real-Time Systems (ECRTS) (Prague, Czech Republic 2008), 321--330. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Puaut, I. and Decotigny, D. Low-complexity Algorithms for Static Cache Locking in Multitasking Hard Real-Time Systems. In Proceedings of the 23rd IEEE Real-Time Systems Symposium (RTSS) (2002), 114--123. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Tan, Y. and Mooney, V. Timing Analysis for Preemptive Multitasking Real-Time Systems with Caches. ACM Transactions on Embedded Computing Systems (TECS), 6, 1 (February 2007). Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Optimising task layout to increase schedulability via reduced cache related pre-emption delays

      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 Other conferences
        RTNS '12: Proceedings of the 20th International Conference on Real-Time and Network Systems
        November 2012
        216 pages
        ISBN:9781450314091
        DOI:10.1145/2392987

        Copyright © 2012 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: 8 November 2012

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate119of255submissions,47%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader