chapter 22 - beyond physical memory policies Flashcards

1
Q

How is RAM treated in the context of paging?

A

As a cache for virtual memory stored on disk

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

What is the formula for Average Memory Access Time (AMAT)?

A

AMAT = T(M) + P(miss) × T(D)

T(M): Memory access time
T(D): Disk access time
P(miss): Page miss rate

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

What is Belady’s MIN policy?

A

Evict the page that won’t be used for the longest time in the future

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

Why is Belady’s algorithm not used in real systems?

A

It requires future knowledge of memory accesses

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

What is FIFO (First-In, First-Out) replacement?

A

Evict the page that was loaded earliest, regardless of usage

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

What is a downside of FIFO?

A

It may evict heavily-used pages just because they’re old

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

What is Random Replacement?

A

Evict a random page

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

What is LRU (Least Recently Used)?

A

Evict the page that has not been used in the longest time

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