A virtual memory system with 32 bit address space uses a pur
A virtual memory system with 32 bit address space uses a purge paging system. What is the page table size of the page size a) 1k b) 4k c) 1M
Solution
Total number of addresses = 232. Assuming byte level addressing,
a) Page size 1k = 1 kilobit = 1024/8 = 256 Bytes = 28 bytes.
Then, number of entries in page table = 232 / 28 = 224.
Since each address is 32 bit, the page table size = 224 * 25 = 229. Each 32 bit address is mapped to 1 of the 224 pages.
b) Page size 4k = 4 kilobit = 4096/8 = 1024 Bytes = 210 bytes.
Then, number of entries in page table = 232 / 210 = 222.
Since each address is 32 bit, the page table size = 222 * 25 = 227. Each 32 bit address is mapped to 1 of the 222 pages.
c) Page size 1M = 1024 Kilobytes = 220 bytes.
Then, number of entries in page table = 232 / 220 = 212.
Since each address is 32 bit, the page table size = 212 * 25 = 217. Each 32 bit address is mapped to 1 of the 212 pages.
