arrow
Return

Counter-based cache replacement and bypassing algorithms

delete2008-04-01
delete161
PRE
AI
M
Mazen Kharbutli *
Y
Yan Solihin
DOI:10.1109/TC.2007.70816delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Recent studies have shown that, in highly associative caches, the performance gap between the Least Recently Used (LRU) and the theoretical optimal replacement algorithms is large, motivating the design of alternative replacement algorithms to improve cache performance. In LRU replacement, a line, after its last use, remains in the cache for a long time until it becomes the LRU line. Such deadlines unnecessarily reduce the cache capacity available for other lines. In addition, in multilevel caches, temporal reuse patterns are often inverted, showing in the L1 cache but, due to the filtering effect of the L1 cache, not showing in the L2 cache. At the L2, these lines appear to be brought in the cache but are never reaccessed until they are replaced. These lines unnecessarily pollute the L2 cache. This paper proposes a new counter-based approach to deal with the above problems. For the former problem, we predict lines that have become dead and replace them early from the L2 cache. For the latter problem, we identify never-reaccessed lines, bypass the L2 cache, and place them directly in the L1 cache. Both techniques are achieved through a single counter-based mechanism. In our approach, each line in the L2 cache is augmented with an event counter that is incremented when an event of interest such as certain cache accesses occurs. When the counter reaches a threshold, the line expires and becomes replaceable. Each line's threshold is unique and is dynamically learned. We propose and evaluate two new replacement algorithms: Access Interval Predictor (AIP) and Live-time Predictor (LvP). AIP and LvP speed up 10 capacity-constrained SPEC2000 benchmarks by up to 48 percent and 15 percent on average (7 percent on average for the whole 21 Spec2000 benchmarks). Cache bypassing further reduces L2 cache pollution and improves the average speedups to 17 percent (8 percent for the whole 21 Spec2000 benchmarks).
Keywords:
caches
counter-based algorithms
cache replacement algorithms
cache bypassing
cache misses

Journal

IEEE Transactions on Computers cover
IEEE Transactions on Computers
IF:
3.8
Papers:
5.3K
Citations:
9.8K

Organization

N
North Carolina State University
Scholars:
2.6W
Papers: 2.3W
Citations: 3.7W
Cited Papers

Cited Papers

First Capture of Antiprotons in a Penning Trap: A Kiloelectronvolt Source
err1986-11-17
err0
errOAAI
errG. Gabrielse; X. Fei; K. Helmerson; S. L. Rolston; R. Tjoelker; T. A. Trainor; H. Kalinowsky; J. Haas; W. Kells
errShare
errSave
Suppression of sleep-related prolactin secretion and enhancement of sleep-related growth hormone secretion.
err1975-09-01
err0
errOAAI
errW B Mendelson; L S Jacobs; J D Reichman; E Othmer; P E Cryer; B Trivedi; W H Daughaday
errShare
errSave
Active management of data caches by exploiting reuse information
err1999-01-01
err22
PREAI
errTam, ES; Rivers, JA; Srinivasan, V; Tyson, GS; Davidson, ES
errShare
errSave
Training Perceptual Skill by Orienting Visual Attention
err2006-06-01
err0
errOAAI
errNorbert Hagemann; Bernd Strauss; Rouwen Cañal-Bruland
errShare
errSave
The acquisition of tone in Mandarin-speaking children
err2008-09-26
err0
PREAI
errCharles N. Li; Sandra A. Thompson
errShare
errSave
Treatment with medications affecting dopaminergic and serotonergic mechanisms: Effects on fluency and anxiety in persons who stutter
err2005-01-01
err0
PREAI
errSheila V. Stager; Karim Calis; Dale Grothe; Meir Bloch; Nannette M. Berensen; Paul J. Smith; Allen Braun
errShare
errSave
Iridoschisis and Keratoconus
err1994-01-01
err0
PREAI
errRichard A. Eiferman; Mark Law; Leon Lane
errShare
errSave
researcher View more