Lecture 3 Flashcards

1
Q

When do ALL algorithms perform badly?

A

When processes have insufficient physical memory.

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

When do algorithms approach optimal task performance?

A

As physical memory allocated to processes approaches virtual memory size.

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

Load-control strategies

A

To decide how many processes

(and pages per process) must concurrently share memory.

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

What is the goal of any page frame allocation?

A

Ensure that each process scheduled to execute has a minimum number of page frames allocated, in order that enough of its pages can be loaded into memory and that the process can run.

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

Global Replacement

A

The process selects replacement frame from the set of all frames,
i.e., one process can take a frame from another process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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
7
Q

Advantage of global-page replacement

A

Global-page replacement algorithms are more efficient in memory allocation because page frames are dynamically allocated among processes.

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

One disadvantage of global-page replacement

A

Large computationally expensive processes

can be assigned too many memory frames.

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

One Disadvantage of local page replacement

A

Processes are allocated a fixed fraction of the page frames. However, some processes may have slightly lower memory demands and other processes slightly
higher memory demands.

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

Which page replacement algorithm (between local and global is generally preferred)?

A

Global page-replacement algorithms generally work better.

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

Increase in memory frame allocation per process and the relationship between page faults.

A

More memory frames allocated per process, less page faults.

Few memory frames allocated per process, more page faults.

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

What is the relationship between memory references (accesses) and page faults.

A

When we have more page faults there is less time for memory references, since most of the time is spent handling faults and not doing memory access.

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

Free frame list

A

OS maintains a list of free memory frames in main memory.

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

What happens when the number of free frames in the list falls below the threshold?

A

Page replacement occurs so that OS always has some free memory frames to assign to newly scheduled processes or processes with increasing memory demands.

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

When is all of the main memory on the free frame list?

A

When the OS starts up.

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

Why do we not want too many free frames to be assigned?

A

Will cause an increase in page faults if new processes are scheduled to execute.

17
Q

What happens if the number of free frames assigned to currently scheduled processes would exceed a maximum threshold?

A

OS (kernel) would suspend the reclaiming of pages until a currently scheduled process
finishes running, and the memory frames assigned to that process can be returned
to the free frame list.

18
Q

What kind of data structure is a free frame list?

A

A linked list

19
Q

Equal allocation

A

Each process receives an equal share of frames from the free frame list.

20
Q

Proportional allocation

A
Assigns a number of frames proportional to
the size (number of required pages) for each process.
21
Q

Advantage of equal allocation

A

No one process (with very large memory

demands) can monopolize memory usage.

22
Q

Advantage of proportional allocation

A

Ensures that large processes do not run too slowly and thus have their pages residing in
main memory for too long.

23
Q

priority memory allocation

A

Use of process priorities instead of process size.

All frames are assigned a priority number.

24
Q

The main issue with priority allocation

A

Priority number has to be assigned to each page and the best way to assign priority is a continuous issue.

25
Q

Page Fault Frequency (PFF)

A

The PFF metric is used with local
page replacement and works via monitoring the P F F of each process (currently
scheduled to run).

26
Q

What are the additional parameters that PFF policy introduces?

A

T and the too low and too high PFF thresholds.

Must be decided in advance and difficult to know the right values for these parameters.

27
Q

How to determine PFF parameters?

A

Measure the PFF over some
time period, where we do test runs across a range of different process load conditions
for the OS, in order to come up with some average upper and lower bound of PFF.