SlideShare a Scribd company logo
Adaptive Insertion Policies for
High Performance Caching
Qureshi, et al.
EECE527 - Paper Summary
Jose Pinilla
Cache Replacement Policies
● Victim Selection Policy
○ LRU
● Insertion Policy
○ MRU
○ LRU
LRU (Baseline)
LRU replacement (commonly used):
Belady’s OPT
Optimal page replacement algorithm (Changes Victim Selection Policy):
LRU replacement (commonly used):
LIP (LRU Insertion Policy)
LIP (LRU Insertion Policy)
LRU replacement (commonly used):
7 7
0
7
1
0
2
1
0
3
1
0
4
1
0
2
1
0
3
1
0
3
2
0
3
2
1
0
2
1
0
7
1
Belady’s OPT
LIP (LRU Insertion Policy)
LRU replacement (commonly used):
7 7
0
7
1
0
2
1
0
3
1
0
4
1
0
2
1
0
3
1
0
3
2
0
3
2
1
0
2
1
0
7
1
Cyclic Reference Model
for j = 1 to N
instructions read (a1
...aT
)
for j = 1 to N
instructions read (b1
...bT
)
Let there be an access pattern in which (a1
· · · aT
)N
is followed by (b1
· · · bT
)N
Cache Size K (K < T)
N >> T N >> K/ϵ
Access Pattern: LRU Step 1
a1
a2
a3
aT
K
TN
Access Pattern: LRU Step 2
a1
a2
a3
aT
K
TN
Access Pattern: LRU Step X
a1
a2
a3
aT
K
TN
Access Pattern: LRU Step X>T*N
a1
a2
a3
aT
TN
b1
b2
b3
bT
K
TN
T
Access Pattern: LIP Step 1
a1
a2
a3
aT
TN
b1
b2
b3
bT
N
K
T
Access Pattern: LIP Step 2
a1
a2
a3
aT
TN
b1
b2
b3
bT
N
K-1
T
Access Pattern: LIP Step X>T*N
a1
a2
a3
aT
TN
b1
b2
b3
bT
N
K-1
Bimodal Insertion
Control the percentage of incoming lines placed as MRU
ϵ = Bimodal throttle parameter
ϵ=1 => LRU
ϵ=0 => LIP
T
Access Pattern: BIP
a1
a2
a3
aT
TN
b1
b2
b3
bT
N
K-1
T
Access Pattern: BIP
a1
a2
a3
aT
TN
b1
b2
b3
bT
N
T
Access Pattern: BIP
a1
a2
a3
aT
TN
b1
b2
b3
bT
N
T
Access Pattern: BIP
a1
a2
a3
aT
TN
b1
b2
b3
bT
N
Hit Rate
Cache Size K (K < T)
ϵ = Bimodal throttle parameter
ϵ=1 => LRU
ϵ=0 => LIP
N >> T N >> K/ϵ
Benchmarks
mcf art
health
250M instructions obtained with SimPoint
Results 1
So they proved that it works…
Results 1
So they proved that it works…
...but don’t over do it (ϵ)...
Results 1
So they proved that it works…
...but don’t over do it (ϵ)...
...actually, let’s choose LRU on run-time sometimes.
DIP: Select Mechanism
DIP - Global / DSS DIP - Set Dueling
ATD: Auxiliary
Tag Directory
MTD: Main Tag
Directory
DIP: Select Mechanism
DIP - Global / DSS DIP - Set Dueling
Dedicated-Set
Selection
Policy
Static
or
Dynamic
(+2 bits)
DIP: Select Mechanism
DIP - Global / DSS DIP - Set Dueling
Dedicated-Set
Size
Selection
Policy
Run-time adaptation: PSEL values
PSEL>=512 then LIP PSEL<512 then LRU
Hardware advantages
● LIP, BIP and DIP similar to current LRU approximations
● DIP does not require extra bits in the tag-store entry
● No major logic overhead means the cache access time
is unaffected
Related Work
R: Random, N: Random from the less recent half, F: Frequently
● Bypass
● Early Eviction
● Dynamic Exclusion
Remarks
Retain some fraction of the working set
Dynamically adapt to workloads and patterns
Low overhead (Set dueling)
Questions?
Questions?
What would be the behaviour if DIP used ATDs
dedicated to LRU and LIP?
● Compare Amean
Dynamic ϵ
● Can ϵ be extracted from PSEL?
References
“Cache Replacement with Dynamic Exclusion”. Scott McFarling
“Set-Dueling-Controlled Adaptive Insertion for High-Performance Caching”.
Qureshi et al.
“Using SimPoint for Accurate and Efficient Simulation”. Perelman et al.
“Adaptive Caching for High-Performance Memory Systems”. PhD Dissertation.
Qureshi et al.
McFarling: Conflict Between Loops
for i = 1 to 10
for j = 1 to 10
instruction a
for j = 1 to 10
instruction b
*(a10
b10
)10
= 0%
(am
ah
9
bm
bh
9
)10
= 10%
* ignoring loop
Source: “Cache Replacement with Dynamic Exclusion”. Scott McFarling
McFarling: Conflict Between Loops
Levels
for i = 1 to 10
for j = 1 to 10
instruction a
instruction b
Direct-mapped
(am
ah
9
bm
)10
= 18%
Optimal
am
ah
9
bm
(ah
10
bm
)9
= 10%
Source: “Cache Replacement with Dynamic Exclusion”. Scott McFarling
McFarling: Conflict within Loops
for i = 1 to 10
instruction a
instruction b
Direct-mapped
(am
bm
)10
= 100%
Optimal
am
bm
(ah
bm
)9
= 55%
Source: “Cache Replacement with Dynamic Exclusion”. Scott McFarling

More Related Content

PPTX
Quantum cryptography
PPTX
Data Encryption Standard (DES)
PDF
BERT: Bidirectional Encoder Representations from Transformers
PDF
The Forward-Forward Algorithm
PDF
Morris Mano Chapter 08 (Register Transfer Logic).pdf
PPT
Key management.ppt
Quantum cryptography
Data Encryption Standard (DES)
BERT: Bidirectional Encoder Representations from Transformers
The Forward-Forward Algorithm
Morris Mano Chapter 08 (Register Transfer Logic).pdf
Key management.ppt

What's hot (20)

PPTX
PDF
Part 01 Linux Kernel Compilation (Ubuntu)
PDF
Cs8792 cns - unit i
PDF
Advanced Comuter Architecture Ch6 Problem Solutions
PPT
Pipelining
PPTX
3 public key cryptography
PDF
Seminar Report on Quantum Key Distribution
PDF
INTERFACING WITH INTEL 8251A (USART)
PDF
Getting started with BeagleBone Black - Embedded Linux
PDF
Performance Evaluation of Different Data Mining Classification Algorithm and ...
PDF
RoFormer: Enhanced Transformer with Rotary Position Embedding
PDF
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
PPTX
Object classification using CNN & VGG16 Model (Keras and Tensorflow)
PPT
AES Cryptosystem
PDF
CPU Verification
PPTX
Chapter 5 of 1
PDF
AES-Advanced Encryption Standard
PPT
Basic MIPS implementation
PPTX
2 STM32's Interrupts.pptx
PPT
SHA 1 Algorithm.ppt
Part 01 Linux Kernel Compilation (Ubuntu)
Cs8792 cns - unit i
Advanced Comuter Architecture Ch6 Problem Solutions
Pipelining
3 public key cryptography
Seminar Report on Quantum Key Distribution
INTERFACING WITH INTEL 8251A (USART)
Getting started with BeagleBone Black - Embedded Linux
Performance Evaluation of Different Data Mining Classification Algorithm and ...
RoFormer: Enhanced Transformer with Rotary Position Embedding
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Object classification using CNN & VGG16 Model (Keras and Tensorflow)
AES Cryptosystem
CPU Verification
Chapter 5 of 1
AES-Advanced Encryption Standard
Basic MIPS implementation
2 STM32's Interrupts.pptx
SHA 1 Algorithm.ppt
Ad

Similar to Summary - Adaptive Insertion Policies for High Performance Caching. Qureshi, et al. (20)

DOCX
LTE Short TTI Feature.docx
PPTX
Microprocessors and Microcontrollers ppt 2
PDF
Recent MIP Performance Improvements in IBM ILOG CPLEX Optimization Studio
PDF
Advanced Techniques for Exploiting ILP
ODP
ARI. HiPEAK 2014
PDF
llm lecture 3 stanford blah blah blah blah
PDF
3.INTEL.Optane_on_ceph_v2.pdf
PDF
Ceph Day Beijing - Optimizing Ceph Performance by Leveraging Intel Optane and...
PDF
Ceph Day Beijing - Optimizing Ceph performance by leveraging Intel Optane and...
PPT
Recent Advances in CPLEX 12.6.1
PPT
Lec13 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Multicore
PDF
Cutting edge hyperparameter tuning made simple with ray tune
PDF
Early Benchmarking Results for Neuromorphic Computing
PPT
Thesis F. Redaelli UIC Slides EN
PPT
Coding style for good synthesis
PPTX
microprocessor ppt (branching and logical instructions)
PPTX
PACT_conference_2019_Tutorial_02_gpgpusim.pptx
PDF
pic_1.pdf
PPSX
HDFEOS.org User Analsys, Updates, and Future
PDF
Enabling Composition in Distributed Reinforcement Learning with Ray RLlib wit...
LTE Short TTI Feature.docx
Microprocessors and Microcontrollers ppt 2
Recent MIP Performance Improvements in IBM ILOG CPLEX Optimization Studio
Advanced Techniques for Exploiting ILP
ARI. HiPEAK 2014
llm lecture 3 stanford blah blah blah blah
3.INTEL.Optane_on_ceph_v2.pdf
Ceph Day Beijing - Optimizing Ceph Performance by Leveraging Intel Optane and...
Ceph Day Beijing - Optimizing Ceph performance by leveraging Intel Optane and...
Recent Advances in CPLEX 12.6.1
Lec13 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Multicore
Cutting edge hyperparameter tuning made simple with ray tune
Early Benchmarking Results for Neuromorphic Computing
Thesis F. Redaelli UIC Slides EN
Coding style for good synthesis
microprocessor ppt (branching and logical instructions)
PACT_conference_2019_Tutorial_02_gpgpusim.pptx
pic_1.pdf
HDFEOS.org User Analsys, Updates, and Future
Enabling Composition in Distributed Reinforcement Learning with Ray RLlib wit...
Ad

More from Jose Pinilla (11)

PDF
Instruction Level Parallelism (ILP) Limitations
PDF
X-ISCKER
PDF
CWCAS X-ISCKER Poster
PDF
Presentación Proyecto de Grado: X-ISCKER
PDF
Medical images compression: JPEG variations for DICOM standard
PDF
Black wednesday SOPA/PIPA Report
PDF
Telemedicine and telecardiology report
PDF
The internet success factors
PDF
FPGA como alternativa
PDF
FPGA @ UPB-BGA
PDF
"Basta de historias" de Andrés Oppenheimer
Instruction Level Parallelism (ILP) Limitations
X-ISCKER
CWCAS X-ISCKER Poster
Presentación Proyecto de Grado: X-ISCKER
Medical images compression: JPEG variations for DICOM standard
Black wednesday SOPA/PIPA Report
Telemedicine and telecardiology report
The internet success factors
FPGA como alternativa
FPGA @ UPB-BGA
"Basta de historias" de Andrés Oppenheimer

Recently uploaded (20)

PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
DOCX
573137875-Attendance-Management-System-original
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Construction Project Organization Group 2.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
Artificial Intelligence
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
PPT on Performance Review to get promotions
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Sustainable Sites - Green Building Construction
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
573137875-Attendance-Management-System-original
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Construction Project Organization Group 2.pptx
OOP with Java - Java Introduction (Basics)
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Safety Seminar civil to be ensured for safe working.
Artificial Intelligence
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT on Performance Review to get promotions
CH1 Production IntroductoryConcepts.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Sustainable Sites - Green Building Construction

Summary - Adaptive Insertion Policies for High Performance Caching. Qureshi, et al.