Optimal Prediction for Prefetching in the Worst Case

View/ Open
Issue Date
1998-12Author
Krishnan, P.
Vitter, Jeffrey Scott
Publisher
Society for Industrial and Applied Mathematics
Type
Article
Article Version
Scholarly/refereed, publisher version
Metadata
Show full item recordAbstract
Response time delays caused by I/O are a major problem in many systems and
database applications. Prefetching and cache replacement methods are attracting renewed attention because of their success in avoiding costly I/Os. Prefetching can be looked upon as a type of online sequential prediction, where the predictions must be accurate as well as made in a computationally
e cient way. Unlike other online problems, prefetching cannot admit a competitive analysis, since the
optimal o ine prefetcher incurs no cost when it knows the future page requests. Previous analytical
work on prefetching [J. Assoc. Comput. Mach., 143 (1996), pp. 771{793] consisted of modeling the
user as a probabilistic Markov source.
In this paper, we look at the much stronger form of worst-case analysis and derive a randomized
algorithm for pure prefetching. We compare our algorithm for every page request sequence with the
important class of nite state prefetchers, making no assumptions as to how the sequence of page
requests is generated. We prove analytically that the fault rate of our online prefetching algorithm
converges almost surely for every page request sequence to the fault rate of the optimal nite state
prefetcher for the sequence. This analysis model can be looked upon as a generalization of the com-
petitive framework, in that it compares an online algorithm in a worst-case manner over all sequences
with a powerful yet nonclairvoyant opponent. We simultaneously achieve the computational goal of
implementing our prefetcher in optimal constant expected time per prefetched page using the optimal
dynamic discrete random variate generator of Matias, Vitter, and Ni [Proc. 4th Annual SIAM/ACM
Symposium on Discrete Algorithms, Austin, TX, January 1993].
Description
AMS subject classi cations. 68Q25, 68T05, 68P20, 68N25, 60J20
PII. S0097539794261817
Collections
Citation
P. Krishnan and J. S. Vitter. “Optimal Prediction for Prefetching in theWorst Case,” SIAM Journal on Computing, 27(6), December 1998, 1617–1636. An extended abstract appears in Proceedings of the 5th Annual SIAM/ACM Symposium on Discrete Algorithms (SODA ’94), Alexandria, VA, January 1994, 392–401. http://dx.doi.org/10.1137/S0097539794261817
Items in KU ScholarWorks are protected by copyright, with all rights reserved, unless otherwise indicated.
We want to hear from you! Please share your stories about how Open Access to this item benefits YOU.