I need to find how many hierarchical levels is in hierarchical paging, based on this data:
64-bit computer system that uses pure paging with 16KB page size, if each page table entry is 4 bytes long. Assume that 2-level of hierarchy corresponds to an outer page table and an inner page table
I based my calculation on this question: Multi-level page tables - hierarchical paging . But in the end I get 1 level of hierarchy! It can't be true. Just 1 level. I did this:
Find all entries in 1 page Page size/ entry size = 2^50/2^5 = 2^45 entries in the each page. To address it we need 45 bits. Total number of bit to encode entry is 64 bits. So we need 64/45. It is around 1 and something.
What am I doing wrong?