PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: barber

Cache Replacement Policies - ECE/CS 752 Fall 2019

Cache Replacement Policies Prof. Mikko H. Lipasti University of Wisconsin-Madison ECE/CS 752 Spring 2016 2 Cache Design: Four Key Issues These are: Placement Where can a block of memory go? Identification How do I find a block of memory? Replacement How do I make space for new blocks? Write Policy How do I propagate changes? Consider these for caches Usually SRAM Also apply to main memory, disks 3 Placement Memory Type Placement Comments Registers Anywhere; Int, FP, SPR Compiler/programmer manages Cache (SRAM) Fixed in H/W Direct-mapped, set-associative, fully-associative DRAM Anywhere O/S manages Disk Anywhere O/S manages 4 Placement Address Range Exceeds Cache capacity Map address to finite capacity Called a hash Usually just masks high-order bits Direct-mapped Block can only exist in one location Hash collisions cause problems SRAM Cache Hash Address Index Data Out Index Offset 32-bit Address Offset Block Size 5 Identification Fully-associative Block can exist anywhere No more hash collisions Identification How do I know I have the right block?

C.-K. Luk et al. Pin: building customized program analysis tools with dynamic instrumentation. In PLDI, pages 190–200, 2005. N. Megiddo and D. S. Modha, “ARC: A self-tuning, low overhead replacement cache,” in FAST, 2003. E. J. O’Neil et al. “The LRU-K page replacement algorithm for database disk buffering,”

Loading..

Tags:

  Replacement, Cache, Cache replacement

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Cache Replacement Policies - ECE/CS 752 Fall 2019

Related search queries