Lecture 3 Flashcards

1
Q

Why is a memory hierarchy necessary in computer systems?

A

To efficiently manage storage and retrieval of data using a combination of faster, smaller memories and larger, slower ones, optimizing cost and performance.

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

What are the three main levels of memory hierarchy and their characteristics?

A

Primary (fast, solid-state), Secondary (larger, slower, hard disks), Tertiary (tapes for backup).

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

Define cycle time, latency, and bandwidth in the context of memory systems.

A

Cycle time: Time from one read operation to the next.
Latency: Time from request to access. Bandwidth: Bits accessed per second.

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

What is the main idea behind cache memory?

A

To keep frequently used information close to the CPU in a small, fast memory to improve access times.

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

What happens during a cache hit and a cache miss?

A

Cache hit: Data is found in the cache.
Cache miss: Data must be retrieved from main memory, and potentially neighboring blocks.

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

Explain direct mapping in cache memory.

A

Each main memory block maps to a specific cache block based on a fixed relation, simplifying placement but potentially causing low cache hit ratios due to competition for blocks.

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

How does fully associative mapping differ from direct mapping?

A

An incoming block can be placed in any available cache block, providing flexibility but requiring more complex management.

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

Describe set-associative mapping.

A

Cache is divided into sets, and each main memory block maps to a specific set. This is a compromise between direct and fully associative mapping.

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

What is memory interleaving and its purpose?

A

A technique to increase bandwidth by distributing memory blocks across multiple memory modules, allowing faster block transfers.

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

What role does the cache mapping function play in memory management?

A

It translates processor addresses to determine if the requested data is in the cache and manages data placement and retrieval.

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