Memory Allocation (11) Flashcards

1
Q

Goal of page frame allocation

A

ensure that each process that is scheduled to execute has minimum number of frames allocated so that enough of its pages can be loaded into main mem and that the process can run

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

local replacement

A

each process selects replacement frames from only its own set of allocated frames

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

global replacement

A

process selects replacement frame from the set of all frames

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

Advantage of global page replacement

A

page frames are dynamically allocated among processes - number of page frames assigned to a process can vary - more effficient

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

issue with global replacement

A

large computationally expensive programs can be assigned too many frames and can monopolize memory usage

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

Disadvantage of local replacement

A

under utilization of memory - some processes have lower mem demands but their frames are inaccessible to other programs that may have better use for them (computationally larger programs).

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

relationship between memory references between page faults and number of frames allocated

A

more allocated frames = more memory references between page faults = fewer page faults

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

Free frames list

A

pool of free frames for when a desired page is brought from secondary storage to main mem (when a page fault occurs). List of free frames in memory

When OS starts up all available memory is usually placed in free frames list

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

What happens to the free frames list that triggers page replacement

A

Page replacement is triggered when free frames list falls below a certain threshold

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

How does the free frames list operate

A

connecting unallocated regions in memory together in a linked list, using the first word of each unallocated frame as a pointer to the next frame

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

Equal page frame allocation

A

each process receives equal share of frames from free frame list
No one process can monopolize

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

Proportional page frame allocation

A

assigns number of page frames proportional to the size (required number of pages) for each process.
Ensures that larger programs dont run too slowly

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

Priority allocation

A

all frames are assigned a priority number. The frame with the lowest priority is the one that is selected to have its residing page swapped out of main memory so that another process’ page can be swapped in

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

Main issue with priority allocation

A

each page needs to have priority number - best assignment of priorities can be an issue

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

What is the PFF (Page Fault Frequency)

A

another way to handle the allocation of main mem frames between processes
Used with local page replacement and works via monitoring the PFF of each process
Method of reducing page faults by dynamically changing the number of frames assigned per process.

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

What happens if the PFF is too low vs too high

A

low - process loses a frame to the free frames list

high - gains a frame from free frame list