CS FundamentalsHardGATE CS
A computer has 48-bit virtual addresses, 4 KB pages and 8-byte PTEs. With a single-level page table, how large would one process's table be, and why do real systems not do this?
- A. 256 GB; tables are always paged out
- B. 512 GB; it is far larger than physical memory, so multi-level or hashed tables are used
- C. 2 GB; this is acceptable
- D. 512 MB; this is acceptable
Correct answer: B. 512 GB; it is far larger than physical memory, so multi-level or hashed tables are used
2⁴⁸ / 2¹² = 2³⁶ entries × 8 B = 2³⁹ B = 512 GB per process. Multi-level tables allocate inner tables only for regions in use.
More Operating Systems questions
- x86-64 style 4-level paging: TLB lookup 1 ns, memory access 60 ns, TLB hit ratio 99%, no page-walk caches. What is the effective access…
- Physical memory is 64 MB with 4 KB frames; virtual addresses are 32-bit. Each PTE holds a frame number plus 4 control bits, and PTE size…
- A process has page-fault rate p. Memory access = 100 ns; fault service = 20 ms. To keep the effective access time below 200 ns, p must be…
- Cylinders 0–49, head at 20, previous request was at 25 (so the head is moving toward 0). Requests: 10, 22, 20, 2, 40, 6, 38. What is the…
- A disk spins at 15,000 RPM; average seek is 3.5 ms; transfer rate is 200 MB/s. What is the average time for a random 64 KB read?
- How many times is "x" printed? (Every fork() succeeds.) c int main() { if (fork() == 0) { if (fork() == 0) fork(); } printf("xn"); }