MEMORY HIERARCHY Flashcards

(18 cards)

1
Q

What is the Principle of Locality?

A

The CPU usually keeps using the same small group of memory locations again and again.

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

What are the two forms of locality?

A

Temporal locality and Spatial locality.

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

Define Temporal Locality.

A

Recently accessed memory locations are likely to be accessed again soon.

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

Define Spatial Locality.

A

Memory locations near recently accessed addresses are likely to be accessed soon.

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

What are the key characteristics of computer memory systems?

A

Location, Capacity, Unit of Transfer, Access Method, Performance, Physical Type, and Organization.

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

What are the types of access methods?

A

Sequential, Random, Direct, and Associative.

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

What is Sequential Access?

A

Data is read or written in order (e.g., magnetic tape).

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

What is Random Access?

A

Any memory location can be accessed directly and instantly (e.g., RAM).

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

What is Direct Access?

A

Combines random and sequential; used in disks.

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

What is Associative Access?

A

Data is located by content rather than address (e.g., cache memory).

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

What are the performance parameters of memory?

A

Access time, Cycle time, and Transfer rate.

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

What is Virtual Memory?

A

A technique allowing a system to use part of secondary storage as an extension of main memory.

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

What are the design principles of memory hierarchy?

A

Locality, Inclusion, and Coherence.

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

What is Inclusion in memory hierarchy?

A

Each level holds a subset of data from the lower (larger) level.

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

What is Coherence?

A

Ensures copies of data across levels are consistent.

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

What is Average Memory Access Time (AMAT) formula?

A

AMAT = (L1 Hit Time) + (L1 Miss Rate) × (L2 Hit Time) + (L1 Miss Rate × L2 Miss Rate × Main Memory Time).

17
Q

How does cost per bit change in the hierarchy?

A

It increases from bottom to top.

18
Q

How does capacity change in the hierarchy?

A

It increases from top to bottom.