Virtual Memory Flashcards

1
Q

Explain a multi-level page table address

A

(outer page number)(inner page number)(offset)

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

What is internal fragmentation?

A

When we have unused portions of memory that have been allocated because the page size was too large for its needs

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

What are the pros/cons of smaller/larger page sizes?

A

Smaller pages ==> larger page table

Larger pages ==> smaller page table, but more internal fragmentation

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

What is a TLB and why do we need it?

A

Translation Look-Aside Buffer. Because the page table is stored in memory, we must do a memory access to translate a VA->PA ==> very slow ==> use TLB

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

What happens on a TLB miss?

A
  1. Software TLB Miss handling - control goes to OS to find the correct page table(s) and translation (embedded)
  2. Hardware TLB miss handling - processor finds the correct translation by accessing tables directly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Properties of a TLB

A
  • Smaller and therefore faster than the cache
  • Can store exact translation
  • Usually fully or highly associative
  • 64 - 512 entries
  • Can have an L1 and L2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly