Chapter 8 (Virtual memory) Flashcards

1
Q

What two characteristics lead to the memory management breakthrough?

A

All memory references are logical addresses translated at runtime

A process can be broken up into pieces and they need not be contiguous

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

What is the portion of the process in main memory at a given time called?

A

Resident set

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

What happens when something is referenced outside of the resident set?

A

Fault

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

T/F Virtual memory can be larger than main memory

A

T

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

What is it called when the OS may consume more CPU time managing the processes than running them

A

Thrashing

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

What acts as an index into the page table?

A

Page number

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

How do you get a physical address from a virtual address in paging?

A

Use the page number to index into the table. This gets the frame number which can be added to the offset to get the real address

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

T/F A page table cannot be stored in virtual memory

A

F, it can

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

What’s the drawback to an inverted page table?

A

The page number can no longer be used as an index into the page table

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

What is a solution to the drawback of an inverted page table?

A

Hash function to map the virtual page number to a hash table. The hash table entry has a pointer to the frame table entry

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

What’s the problem with virtual addresses?

A

Doubles the number of memory accesses

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

What is TLB?

A

Translation Lookaside Buffer

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

How can you help the virtual address problem of doubling the memory accesses?

A

Use a TLB

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

T/F The TLB caches the pages

A

F, only the page table entries

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

What is the “tag” for a cache block?

A

Leftmost bits of the address

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

T/F A small page size increases internal fragmentation

A

F, reduces

17
Q

T/F As the page size grows, locality is strengthened and fewer faults will occur

A

F, locality is weakened and more faults will occur

18
Q

What is the page fault rate also determined by?

A

Number of frames allocated to a process

19
Q

List the benefits of segmentation

A

Ease of handling growing data structures

Modularity by assigning each module to a segment

Sharing and protection can be set per segment

20
Q

What is the fetch policy?

A

Determines when a page should be loaded into memory

21
Q

What are the two approaches to the fetch policy?

A

Demand paging

Prepaging

22
Q

What is the placement policy?

A

Where should a page be placed

23
Q

How can FIFO be improved?

A

Page buffering