Virtual Memory Flashcards
1
Q
Explain a multi-level page table address
A
(outer page number)(inner page number)(offset)
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
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
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
5
Q
What happens on a TLB miss?
A
- Software TLB Miss handling - control goes to OS to find the correct page table(s) and translation (embedded)
- Hardware TLB miss handling - processor finds the correct translation by accessing tables directly
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