PDF4PRO ⚡AMP

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

Example: bachelor of science

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?

–Measure: number of misses in an infinite cache model ... 12 0 0 1 0 1 1 1 J F C B X Y A Z Older Newer . Practical Pseudo-LRU In Action 13 J F C B X Y A Z ... “The LRU-K page replacement algorithm for database disk buffering,” in Proc. ACM SIGMOD Conf., pp. 297–306, 1993.

Loading..

Tags:

  Replacement, Pages, Misses, Cache, Cache replacement, Page 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