ANONYMOUS wrote:
> Hello, I am reposting my question as it seems my question has been missed. Could someone please clarify or help with my understanding please? The question is below
>
>
> Hi all! I'm currently on Past Exam 2021 Question 5. I'm wondering if for
>
> """
> A computer system employing 32-bit addresses implements virtual memory
> using a two-level page table.
> The right-most 10 bits of each virtual address are used to specify the required
> offset within a page. The left-most 8 bits are used to index the primary (or
> root) page table, and the remaining ‘middle’ 14 bits are used for the secondary
> page tables.
> (a) What is the page size in this machine?
> (b) What is the size of the primary page table?
> (c) What is the number of secondary page tables?
> (d) Explain why it is sufficient to keep only the primary page table in the
> RAM.
> """
>
>
> (b) What is the size of the primary page table?
> Does it want the amount of entries which would be 2^8 = 256 entries or would it be 2^8 x 4 bytes = 1024 bytes
>
> (c) What is the number of secondary page tables?
> Would this just be 256 since each entry in primary would mean 1 secondary page?
>
> Thanks for the help!
page size is 2^10
primary page table size is 2^8
There are 2^14 secondary page tables, each entry of the primary page table holds the starting address of a secondary page table.
One can bring the secondary page tables on demand (the secondary page tables are paged)