cs.sakib.dev

Files related to my CS self study

View the Project on GitHub sjsakib/cs

Operating systems Three Easy Pieces: Chapter 20 solution

Question 1

Just one should be enough. Because only address to the first level page directory base address needs to be stored in a register. The page directory entries can point to other page directories or tables.

Question 2

So that’s three memory access as expected.

Question 3

If I understand the question correctly, the way multi level page directories work so far, memory references to page tables aren’t stored in TLB. TLB stores physical address against VPN. Page directories don’t have VPN, they are stored outside the memory space of the current program by the system.

So every TLB miss will result in two more TLB miss.