Skip to content

Midterm 1, Section 02, Problem 5: The Free List and a Page Table

Midterm 1, Section 02, problem 5 of 5 · Length: 12:40 · Exercises: 32k_physical_memory (Week 7) · 33k_paging (Week 7) · Exam: Section 02 (PDF) · Answer key: Solutions (PDF)

Four parts, worked on pages 10 and 11: (a) four kalloc and kfree calls traced on the free list; (b) the three PTEs map_page writes as it takes fresh tables from kalloc; (c) a translation by hand through those tables, and an address that faults; (d) a PTE decoded by hand: its flags, its physical address, leaf or branch, and where an entry sits in its table. The answer key's handwriting is written onto the exam page as each step is worked.

Download the video (MP4, 23 MB) · Captions (WebVTT) · All five problems