Paging Flashcards

1
Q

What makes paging different from segmentation?

A

Instead of splitting memory into variable sized chunks, we have fixed size pieces which are allocated out.

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

What is the difference between a page and a page frame?

A

The virtual address space is divided up into pages, and these pages are placed in page frames in physical memory. The page frames which the pages are placed into do not necessarily have to be next to one another.

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

What is the page table for?

A

The page table keeps track of address translations for each virtual page in a given address space. They let us know how to translate from a virtual page to a physical page frame.

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

How might you translate between a virtual page and a physical page frame?

A

In the virtual address, the first few bits may indicate which virtual page we are dealing with. The remaining bits are an offset. We can use the page table to change the first few bits from the virtual page number to the physical page frame number. The offset remains the same.

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

What is the valid bit on a page table?

A

A valid bit, to indicate if a translation is valid.

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

What are the protection bits on a page table?

A

Protection bits, to indicate a page’s protection level.

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

What is the present bit on a page table?

A

A present bit, to show if a page is in physical memory or the disk.

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

What is the dirty bit on a page table?

A

A dirty bit, to indicate if a page has been modified since last called.

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

What is the reference bit on a page table?

A

A reference bit to track if a page has been accessed.

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

What is the most important field on a page table entry?

A

The translation itself, so the corresponding physical frame number.

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