Cache Flashcards

1
Q

Hardware prefetching

A

using hardware to predict blocks of data that will be used soon and fetch it before it is used.

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

What to prefetch?

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

When to prefetch?

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

Write-through

A

When there is a cache hit for an address that needs to be written to, the value is written in the cache and the lower levels of memory

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

Write-back

A

When there is a cache hit, the block in cache is written and also stored in the Write Back Buffer (WBB). It’ll be written to lower levels of memory when there is a read of the block.

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

Replacement Policies

A

Put blocks into the cache speculatively. Read addresses from a lower level.
exp.
next block prefetching: getting the next block when the current block access has a miss
binding: prefetch data in registers only
non-binding: prefetch data in cache only
only prefetch when there is dead data in the cache

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

Timeliness

A

start prefetch sufficiently in advance

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

Coverage

A

prefetch as many as possible

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

Accurate

A

predict data to prefetch that will be used soon and not fill the cache with unnecessary or non useful data and avoid eviction of useful data!

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

Correlating Predictor

A

a large table of addresses with a miss

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

Stride Prefetcher

A

Uses direct map cache. Every address in the table has an associated stride value.
The new address - old address of the same tag = actual stride.
If no match, update stride state.
The new address + stride in table (aka predicted stride) = prefetch or not.

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