Lecture 2 Flashcards

1
Q

Paging

A

computer stores and retrieves pages from secondary

storage for use in main memory.

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

Describe the general correlation with page size and fragmentation.

A

Large page size = more fragmentation

Small page size = less fragmentation

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

Key data-structure used in any paging algorithm

A

Page table

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

Page Table

A

The page table is a data structure that (for each process) maps page numbers (references to memory chunks in virtual memory) to frame numbers (memory
slots in physical memory)

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

Where is the page table for each process located?

A

Main memory

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

What if a page cant fit into the page table.

A

MMU executes a page already in the page table.

Larger page is entered into page table.

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

Page table size

A

large enough to hold as many pages as we

would expect to have running (concurrently in physical memory).

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

Page Offset

A

Indicates how large the page is.

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

Page Table Entry (P T E)

A
ith entry (row) of a page table and is
implemented as a pointer to an actual memory page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Permission bits of PTE

A

Tell the memory management unit something about the page, for example, whether the page is read-only, read-write, write-only, and valid.

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

Valid-bit = 1

A

Page is in main memory.

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

Valid-bit = 0

A

Page not in main memory and must be swapped in from virtual memory.

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

Dirty bit

A

Tells the memory management unit whether the page has been modified by the processor or not (since
being swapped in)

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

How is access to shared pages dealt with?

A

By changing permission bits in the page table.

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

Protection

A

effectively and efficiently allowing multiple processes to safely access a limited physical memory space

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

SUP (suspended) flag

A

occupies the first column of each page table entry,

17
Q

How is the translation from virtual to physical page addresses usually done?

A

By adding an offset value (given in the page table entry) to the virtual page address