LRU Replacement Policy Counters Method Example

Slides:



Advertisements
Similar presentations
361 Computer Architecture Lecture 15: Cache Memory
Advertisements

1 Cache and Caching David Sands CS 147 Spring 08 Dr. Sin-Min Lee.
Topics covered: Memory subsystem CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
Quiz 4 Solution. n Frequency = 2.5GHz, CLK = 0.4ns n CPI = 0.4, 30% loads and stores, n L1 hit =0, n L1-ICACHE : 2% miss rate, 32-byte blocks n L1-DCACHE.
CSCE614 HW4: Implementing Pseudo-LRU Cache Replacement Policy
Virtual Memory main memory can act as a cache for secondary storage motivation: Allow programs to use more memory that there is available transparent to.
Lecture 34: Chapter 5 Today’s topic –Virtual Memories 1.
1 The 3P and 4P cache replacement policies Pierre Michaud INRIA Cache Replacement Championship June 20, 2010.
On-Chip Cache Analysis A Parameterized Cache Implementation for a System-on-Chip RISC CPU.
Recitation 7 Caching By yzhuang. Announcements Pick up your exam from ECE course hub ◦ Average is 43/60 ◦ Final Grade computation? See syllabus
Using one level of Cache:
The Lord of the Cache Project 3. Caches Three common cache designs: Direct-Mapped store in exactly one cache line Fully Associative store in any cache.
How caches take advantage of Temporal locality
CS61C Midterm #2 Review Session
Distributed Parity Cache Table. Motivation Parity updating is a high cost operation  Especially for small write operations Read old data 、 Read Old Parity.
Cache Organization Topics Background Simple examples.
5/27/99 Ashish Sabharwal1 Cache Misses - The 3 C’s n Compulsory misses –cold start –don’t have a choice –except that by increasing block size, can reduce.
CSCE 212 Quiz 11 – 4/13/11 Given a direct-mapped cache with 8 one-word blocks and the following 32-bit memory address references: 1 2, ,
COEN 180 Main Memory Cache Architectures. Basics Speed difference between cache and memory is small. Therefore:  Cache algorithms need to be implemented.
Maninder Kaur CACHE MEMORY 24-Nov
CacheLab 10/10/2011 By Gennady Pekhimenko. Outline Memory organization Caching – Different types of locality – Cache organization Cachelab – Warnings.
CacheLab Recitation 7 10/8/2012. Outline Memory organization Caching – Different types of locality – Cache organization Cachelab – Tips (warnings, getopt,
Computer Architecture Lecture 26 Fasih ur Rehman.
Computer Science and Engineering Copyright by Hesham El-Rewini Advanced Computer Architecture CSE 8383 January Session 2.
By Andrew Yee. Virtual Memory Memory Management What is Page Replacement?
Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.
B. Ramamurthy.  12 stage pipeline  At peak speed, the processor can request both an instruction and a data word on every clock.  We cannot afford pipeline.
Time Parallel Simulations I Problem-Specific Approach to Create Massively Parallel Simulations.
11 Intro to cache memory Kosarev Nikolay MIPT Nov, 2009.
Project 11: Influence of the Number of Processors on the Miss Rate Prepared By: Suhaimi bin Mohd Sukor M
Computer Organization CS224 Fall 2012 Lessons 41 & 42.
Lecture 20 Last lecture: Today’s lecture: Types of memory
Cache Operation.
CAM Content Addressable Memory
The Improvement of LRU Liao Yansong The Weakness of LRU “Only Time, No Frequency”
Cache Small amount of fast memory Sits between normal main memory and CPU May be located on CPU chip or module.
Summary of caches: The Principle of Locality: –Program likely to access a relatively small portion of the address space at any instant of time. Temporal.
林仲祥, 李苡嬋 CSIE, NTU 11 / 03, 2008 Simplescalar: Victim Cache 1 ACA2008 HW3.
ECE462/562 Class Project Intelligent Cache Replacement Policy Team member : Chen, Kemeng Gregory A Reida.
Cache Data Compaction: Milestone 2 Edward Ma, Siva Penke, Abhijeeth Nuthan.
Chapter 9 Memory Organization. 9.1 Hierarchical Memory Systems Figure 9.1.
1 Memory Systems Caching Lecture 24 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
Cache Memory Yi-Ning Huang. Principle of Locality Principle of Locality A phenomenon that the recent used memory location is more likely to be used again.
Clustered Web Server Model
Two Dimensional Highly Associative Level-Two Cache Design
Virtual Memory Chapter 7.4.
CS2100 Computer Organization
Replacement Policy Replacement policy:
Consider a Direct Mapped Cache with 4 word blocks
Cache Miss Rate Computations
Adaptive Cache Replacement Policy
Directory-based Protocol
TLC: A Tag-less Cache for reducing dynamic first level Cache Energy
CMPT 886: Computer Architecture Primer
Chapter 5 Memory CSE 820.
Set-Associative Cache
Direct Mapping.
Module IV Memory Organization.
Virtual Memory فصل هشتم.
CDA 5155 Caches.
Cache Replacement in Modern Processors
Jazan University, Jazan KSA
Module IV Memory Organization.
Cache - Optimization.
Cache Memory and Performance
Count by 10’s, 5’s and 2’s and then fill in the missing numbers!
Lecture 13: Cache Basics Topics: terminology, cache organization (Sections )
Consider the following code segment for a loop: int a = 3, b = 4;
Sarah Diesburg Operating Systems CS 3430
Overview Problem Solution CPU vs Memory performance imbalance
Presentation transcript:

LRU Replacement Policy Counters Method Example 4-way set associative cache  Need 2-bit counter for each block Address Subsequent Tag Hit/Miss C0 C1 C2 C3 Actions Initial. 0 0 0 0 4 Miss 0 1 1 1 Block 0 filled 5 Miss 1 0 2 2 Block 1 filled 4 Hit 0 1 2 2 Block 0 accessed 6 Miss 1 2 0 3 Block 2 filled 7 Miss 2 3 1 0 Block 3 filled 5 Hit 3 0 2 1 Block 1 accessed 8 Miss 0 1 3 2 Block 0 replaced 9 Miss 1 2 0 3 Block 2 replaced

LRU Replacement Policy Reference Matrix Method Example 4-way set associative cache  Need 4 x 4 Matrix 1 1 1 1 3 3

LRU Replacement Policy Reference Matrix Method Example (Contd.) 1 1 1 1 1 1 1 1 1 1 2 2

LRU Replacement Policy Reference Matrix Method Example (Contd.) 1 1 1 1 1 1 1 1