Logotype Mälardalenn University

MRTC publications



Data Caches in Multitasking Hard Real-Time Systems

Full text:  
Full text:
Authors: Xavier Vera (former), Björn Lisper, Jingling Xue (external)
Source: International Real-Time Systems Symposium (RTSS), IEEE, Cancun, MX
 

Abstract

Data caches are essential in modern processors, bridging the widening gap between main memory and processor speeds. However, they yield very complex performance models, which makes it hard to bound execution times tightly. This paper contributes a new technique to obtain predictability in preemptive multitasking systems in the presence of data caches. We explore the use of cache partitioning, dynamic cache locking and it static cache analysis to provide worst-case performance estimates in a safe and tight way. Cache partitioning divides the cache among tasks to eliminate inter-task cache interferences. We combine static cache analysis and cache locking mechanisms to ensure that all intra-task conflicts, and consequently, memory access times, are exactly predictable. To minimize the performance degradation due to cache partitioning and locking, two strategies are employed. First, the cache is loaded with data likely to be accessed so that their cache utilization is maximized. Second, compiler optimizations such as tiling and padding are applied in order to reduce cache replacement misses. Experimental results show that this scheme is fully predictable, without compromising the performance of the transformed programs. Our method outperforms static cache locking for all analyzed task sets under various cache architectures, with a CPU utilization reduction ranging between 3.8 and 20.0 times for a high performance system.
 

BibTeX entry

@inproceedings{Vera_0602:2003,
   author = {Xavier Vera and Bj{\"o}rn Lisper and Jingling Xue},
   title = {Data Caches in Multitasking Hard Real-Time Systems},
   booktitle = {International Real-Time Systems Symposium (RTSS)},
   month = {December},
   year = {2003},
   publisher = {IEEE},
   url = {http://www.mrtc.mdh.se/index.php?choice=publications&id=0602},
}

  • Mälardalen University |
  • Box 883 |
  • 721 23 Västerås/Eskilstuna |
  • 021-101300, 016-153600 |
  • webmaster |
  • Latest update: 2012.08.24