Virtual Memory Flashcards

1
Q

What is the benefit of using sparse addresses in virtual memory?

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

Explain the distinction between a demand-paging system and a paging system with swapping

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

Explain the sequence of events that happens when a page-fault occurs

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

How is the effective access time computed for a demand-paged memory system?

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

Explain how copy-on-write operates

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

Explain the usefulness of a modify bit

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

How does the second-chance algorithm for page replacement differ from the FIFO page replacement algorithm?

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

Explain the distinction between global allocation versus local allocation

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

Why doesn’t a local replacement algorithm solve the problem of thrashing entirely?

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

What are the benefits of using slab allocation to allocate kernel memory?

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

Explain the concept behind prepaging

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

Discuss two strategies for increasing TLB reach

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

How are lock bits useful in I/O requests?

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

Explain how working set model works.

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

T/F - A page fault must be preceded by a TLB miss

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

T/F - The instruction that causes a page fault needs to be re-executed after the fault has been handled.

A
17
Q

T/F - Stack algorithms can never exhibit Belady’s anomaly.

A

True
examples of Stack Algorithms: LRU, Optimal Replacement

18
Q

T/F - Some operating systems keep a pool of free frames so that the frequency of page faults is lowered.

A
19
Q

T/F - Some operating systems provide raw disk, so that special applications can bypass file system when accessing secondary storage.

A
20
Q

T/F - A reaper starts reclaiming pages as soon as the number of free frames falls below the maximum threshold.

A
21
Q

T/F - The current best practice to avoid thrashing is to include enough physical memory.

A
22
Q

T/F - The buddy system for allocating kernel memory is very likely to cause fragmentation within the allocated segments.

A
23
Q

T/F - In Linux, a slab may only be either full or empty.

A
24
Q

T/F - Prepaging an executable program is much easier than prepaging a text file.

A
25
Q

T/F - Solaris uses both a local and global page replacement policy.

A
26
Q

T/F - Windows uses both a local and global page replacement policy.

A