W8 - Virtual Memory (2) Flashcards

1
Q

What are the two policies required for fetch policy?

A

1) demand paging

2) prepaging

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

What actions are taken when page fault occurs?

A

1) find free frame
2) swap page into memory frame via scheduled disk operation
3) reset tables to indicate page now in memory
4) restart instruction that caused the page fault

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

Describe demand paging.

A

Only brings pages into main memory when a reference is made to a location on the page.
Starts process with no pages in memory

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

Describe prepaging.

A

Pages other than the one demanded by a page fault are brought in.
If pages of a process are stored contiguously in secondary memory it is more efficient to bring in a number of pages at one time
INEFFICIENT if extra pages are not referenced

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

Describe placement policy.

A

Important in segmentation system.

Determines where real memory a process piece is to reside.

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

Describe replacement policy.

A

When all of the frames in main memory are occupied new pages are brought in. Replacement policy determines which page currently in memory is to be replaced: page least likely to be referenced in future.

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

Briefly explain the basic process to page replacement

A

Page replacement based on clock algorithm.

1) Use modify bit to reduce overhead of page transfers
2) Locate desired page on disk
3) Find free frame
4) Bring desired page into free frame
5) Restart instruction that caused trap

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

What is frame locking?

A

When a frame is locked the page currently stored in that frame may not be replaced

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

Name three basic replacement algorithms.

A

Optimal
Least recently used (LRU)
Clock
First-In-First-Out (FIFO)

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

Explain the Least Recently Used (LRU).

A

Replaces the page that has not been referenced for the longest time
CON - difficult to implement due to high overhead requirement

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

Explain FIFO as a replacement algorithm.

A

Treats page frames allocated to a process as a circular buffer.
Pages removed in RR style
IMPORTANT: Pages that have been in memory the longest is replaced

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

Explain the Clock policy.

A

Each page has a ‘use bit’
If it is 0 replace it
If it is 1 give it a second chance

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

Explain Enhanced Clock policy.

A
Take ordered pair (use, modify).
(0,0) neither used, neither modified
(0,1) neither used, but modified
(1,0) used, but not modified
(1,1) use and modified
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is page buffering?

A

Keeps a small number of frames free at all time.
Required when a page fault occurs. Page is brought into memory, read into one unmodified free frame list to start process

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

Resident Set Management Summary.

A

Check printed document.

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

Variable-Interval Sampled Working Set (VSWS) are driven by what 3 parameters?

A

1) minimum duration of the sampling interval
2) maximum duration of sampling interval
3) number of page faults that are allowed to occur between sampling instances

17
Q

What is cleaning policy concerned about?

A

It is determining when a replaced page should be written out to secondary memory

18
Q

What is load control?

A

Determining the number of processes that will reside in main memory.
Too few processes, many occasions when all processes will be blocks and much time will be spent on swapping.
Too many processes will lead to thrashing.

19
Q

When would a process be suspended?

A

1) lowest priority process
2) largest process
3) faulting
4) last process

20
Q

What is kernel memory allocator?

A

Kernel generates and destroys small tables and buffers during course of execution - requires dynamic memory allocation