CS FundamentalsVery hardGATE CS
A system has 32-bit virtual addresses, 1 GB of physical memory, 4 KB pages, and each page-table entry holds the frame number plus a valid bit, a dirty bit, a reference bit and 3 protection bits, rounded up to a whole number of bytes. What is the size of a single-level page table for one process?
- A. 4 MB
- B. 2 MB
- C. 3 MB
- D. 1.5 MB
Correct answer: C. 3 MB
Frames = 2³⁰ / 2¹² = 2¹⁸, so the frame number needs 18 bits; plus 6 control bits = 24 bits = 3 bytes. Entries = 2³² / 2¹² = 2²⁰, so the table is 2²⁰ × 3 B = 3 MB. Rounding the entry to 4 bytes gives the 4 MB trap.
More Operating Systems questions
- Page size is 2 KB. The page table maps page 0 → frame 6, page 1 → frame 2, page 2 → frame 9, page 3 → frame 4. What physical address does…
- A process's size is uniformly distributed and much larger than the page size P. On average, how much memory per process is lost to…
- Average process size s = 1 MB and each page-table entry is e = 8 bytes. Using the classic overhead model s·e/p + p/2 (page-table space…
- int A[128][128] (4-byte ints) is stored row-major in pages of 512 bytes; the array starts on a page boundary and the process has only 2…
- Same array int A[128][128], one row per 512-byte page, 2 frames (LRU), but the loop is for i in 0..127: for j in 0..127: A[i][j] = 0;. How…
- A TLB has 128 entries and pages are 4 KB. A process's working set is 2 MB and is accessed uniformly at random. Approximately what fraction…