More Memory Flashcards

1
Q

What is temporal locality?

A

If an item is referenced it may be referenced again soon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 2 examples of where temporal locality may be used?

A

Loops, local variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is spatial locality?

A

If an item is referenced, items with nearby addresses may be referenced soon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are 2 examples of where spatial locality may be used?

A

Instructions, data arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is 1st (5) in the memory hierarchy?

A

CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is 2nd (5) in the memory hierarchy?

A

CPU cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is 3rd (5) in the memory hierarchy?

A

RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is 4th (5) in the memory hierarchy?

A

SSD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is 5th (5) in the memory hierarchy?

A

HDD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a unit of information called within each level of the hierarchy?

A

Block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a block?

A

The minimum unit of information which ca neither be present or not present in a cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a hit?

A

When data requested appears in some block in an upper level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is hit rate?

A

The fraction of hits that are successful

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is miss rate?

A

The fraction of data requests that aren’t found in upper levels. 1 - hit rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the time required in order to fetch a block from the lower level of the memory hierarchy known as?

A

Miss penalty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the extra steps of a miss?

A

Access block
Transmit it up
Insert it
Pass block to requestor