Title :
Data caches in multitasking hard real-time systems
Author :
Vera, Xavier ; Lisper, Björn ; Xue, Jingling
Author_Institution :
Institutionen for Datavetenskap, Malardalens Hogskola, Vasteras, Sweden
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 make 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 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.
Keywords :
cache storage; multiprogramming; optimising compilers; program diagnostics; real-time systems; resource allocation; storage management; task analysis; CPU; cache architectures; cache partitioning; cache replacement; cache utilization maximization; compiler optimizations; data caches; dynamic cache locking; execution times; intertask cache interferences; intratask conflicts; memory access times; memory speeds; padding; performance degradation minimization; preemptive multitasking systems; processor speeds; real-time systems; static cache analysis; task analysis; tiling; worst-case performance estimates; Australia; Computer science; Costs; Data engineering; Degradation; Interference elimination; Multitasking; Optimizing compilers; Performance analysis; Real time systems;
Conference_Titel :
Real-Time Systems Symposium, 2003. RTSS 2003. 24th IEEE
Print_ISBN :
0-7695-2044-8
DOI :
10.1109/REAL.2003.1253263