Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Given a 32 bit address space and 32 GB of physical memory, answer the followi

ID: 3710262 • Letter: 1

Question

1. Given a 32 bit address space and 32 GB of physical memory, answer the following questions: a. How many 4K pages of virtual memory exist? b. How many 4K pages of physical memory are present? c. How many bits required for the page offset? d. How many bits required for the page number in the page table? What is the maximum amount of memory that could be required to hold the page table for a single process? Include valid, dirty, protection bits) e. If we had two protection bits and a 'use' bit for a total of 5 extra bits, what is the maximum amount of memory required to hold the page table? f. g. Suppose we add a TLB that can hold 512 entries. How many bits required for each entry?

Explanation / Answer

Given

                Virtual memory is 32 bit address, which is equals to 232 bits which is 4GB

                Physical memory is 32GB, which is equals to 25+230 = 235 which is 35 bit address

a)

Virtual memory is divided into pages.

Given page size is 4K (=212) then

                232/212 = 232-12 = 220 pages will exist

b)

Physical memory is divided into frames, each frame size is equals to page size.

Given page size is 4K (=212) then

                235/212 = 235-12 = 223 pages will exist.

c)

Page offset bits equals to page size bits. Which is 12 bits.

d)

There are totally 220 pages are present, to represent each page in the page table we need 20 bits