The memory architecture of a machine has:
+-----------------------+-------+
| Virtual address: | 48-bit|
| Page size | 8 KB |
| Page table entry size | 32 bit|
+-----------------------+-------+
Let's pretend that 4 bits from page table entry are used by OS to determine the access rights for each page
- Virtual memory size ?
- Max physical memory size allowed by page table
- Page table size
I've tried the following setup:
- Virtual memory size = 2^48 B
- Physical memory size = 2^41 B
PPN = 32-4=28 bits physical address= 28+ offset bits=28+13=41 bits - Page table size= 2^35 * 32 bits
the number of page entries= 48-13=35
page table size= page table entry size* number of page entries
I'm confused about PPN. Should it be 28 bits or 32 bits? I don't know if my solution is correct. Could someone provide me suggestion(s).
Thank you.