Virtual Memory Flashcards

1
Q

what is fetch policy?

A

a decision on when to load something into memory

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

what is placement policy?

A

a decision on where to load something into memory

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

what is replacement policy?

A

a decision on which part of something in memory to replace

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

What is effective memory access time? The concept, not the equation.

A

basically, the OS uses a page table to look up the page IDs for the pages it needs to reference. This table has page IDs and their corresponding addresses in memory

The OS system is able to cache some of those pages (pages it believes will be used the most frequently) in registers for quick lookup (a successful lookup is called a cache hit).

If the pageID that it’s looking for is not in cache (a cache miss), it will have to make 1 RAM access to look up the page table for the ID and then another RAM access to actually retrieve the page.

Since some percentage of the time there will be cache misses, then the average access time experienced by the user will always be greater than the time it takes to make 1 RAM access. This average is called the effective memory access time

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

effective memory access time equation

A

(1-p) * RAM access time + p(pf service time + RAM access time)

where p is the page fault rate

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