Data Cache Locking for Higher Program Predictability
Publication Type:
Conference/Workshop Paper
Venue:
International Conference on Measurement and Modeling of Computer Systems (SIGMETRICS)
Abstract
Caches have become increasingly important with the widening gap
between main memory and processor speeds. However, they are a
source of unpredictability due to their characteristics, resulting
in programs behaving in a different way than expected.Cache locking mechanisms adapt caches to the needs of real-time
systems. Locking the cache is a solution that trades performance
for predictability: at a cost of generally lower performance, the
time of accessing the memory becomes predictable.This paper combines {it compile-time cache analysis} with {it
data cache locking} to estimate the worst-case memory performance
(WCMP) in a safe, tight and fast way. In order to get predictable
cache behavior, we first lock the cache for those parts of the
code where the static analysis fails. To minimize the performance
degradation, our method loads the cache, if necessary, with data
likely to be accessed.
%method detects those references that are likely
%to be accessed, and loads the cache only when necessary.
%Eventually, we compute the worst-case execution time (WCET) of the
%transformed program.Experimental results show that this scheme is fully predictable,
without compromising the performance of the transformed program.
When compared to an algorithm that assumes compulsory misses when
the state of the cache is unknown, our approach eliminates all
overestimation for the set of benchmarks, giving an exact WCMP of
the transformed program without any significant decrease in
performance.
Bibtex
@inproceedings{Vera438,
author = {Xavier Vera and Bj{\"o}rn Lisper and Jingling Xue},
title = {Data Cache Locking for Higher Program Predictability},
pages = {272--282},
month = {June},
year = {2003},
booktitle = {International Conference on Measurement and Modeling of Computer Systems (SIGMETRICS)},
publisher = {ACM Press},
url = {http://www.es.mdu.se/publications/438-}
}