Computing Systems Final Flashcards

1
Q

valid

A

Cache component that is set when the cache entry is being used

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

Tag

A

The memory address mapped to the entry

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

Hit ratio (h)

A

Percentage of accesses that hit the cache

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

Miss ratio (1 – h)

A

Percentage of access that miss the cache

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

Cache access time (c)

A

Time to access the cache (Both hit and miss)

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

Main memory access time (m)

A

Time to access main memory

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

Average memory latency

A

c + (1 – h) * m

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

How do you improve the average memory latency?

A

Increase hit rate
Decrease cache access time
Decrease memory access time

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

Principle of Spatial Locality

A

If we reference a memory location (e.g., 1000),
we are more likely to reference a location near it (e.g., 1001) than some random location

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

Examples of spatial locality in programs?

A
  • Arrays
  • Instructions (PC + 1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

cache blocks

A

store multiple words in a single cache line

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

write through

A

Store instructions write to both memory and the cache

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

Write policy disadvantage

A

cache and memory inconsistent

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

Write policy advantage

A

fewer stores to memory

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

write back

A

Only write the contents back to memory once cache block is evicted

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

write allocate advantage

A

it exploits spatial and temporal
locality

14
Q

dirty bit

A

set to 1 anytime a store instruction modified memory

14
Q

Write allocate

A

Stores that miss the cache are brought into the cache

15
Q

write no-allocate

A

Stores that miss the cache will not be brought into the
cache

16
Q

content addressable memory

A

Search for an element by content instead of by address

ex. Cache

17
Q

Fully associative

A

Any memory location can be stored in any block (cache line)

18
Q

Fully associative disadvantages

A

Must check every tag in the cache

19
Q

Direct Mapped

A

A memory location can only reside in one particular block.

Data from memory address is mapped to cache
block using a modular approach

20
Q

Direct mapped advantages

A

Only need to check one tag. improves cache access time

21
Q

N-way set associative

A

A memory location can only reside in a particular set of
N blocks

22
Q

Direct mapped example

A

data from memory address 11 maps to cache block 3, since 11 mod 4 = 3

23
Q

Direct Mapped Disadvantage

A

Several block addresses can compete for a cache line while other cache
lines are unused