More Memory Flashcards
What is temporal locality?
If an item is referenced it may be referenced again soon
What are 2 examples of where temporal locality may be used?
Loops, local variables
What is spatial locality?
If an item is referenced, items with nearby addresses may be referenced soon
What are 2 examples of where spatial locality may be used?
Instructions, data arrays
What is 1st (5) in the memory hierarchy?
CPU
What is 2nd (5) in the memory hierarchy?
CPU cache
What is 3rd (5) in the memory hierarchy?
RAM
What is 4th (5) in the memory hierarchy?
SSD
What is 5th (5) in the memory hierarchy?
HDD
What is a unit of information called within each level of the hierarchy?
Block
What is a block?
The minimum unit of information which ca neither be present or not present in a cache
What is a hit?
When data requested appears in some block in an upper level
What is hit rate?
The fraction of hits that are successful
What is miss rate?
The fraction of data requests that aren’t found in upper levels. 1 - hit rate
What is the time required in order to fetch a block from the lower level of the memory hierarchy known as?
Miss penalty