CS FundamentalsModerateGATE CS
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 internal fragmentation, and what is the trade-off when choosing P?
- A. P/2; larger pages waste more memory per process but need smaller page tables
- B. P; larger pages waste less memory but need bigger page tables
- C. P/2; smaller pages need smaller page tables
- D. 0; paging has no fragmentation of any kind
Correct answer: A. P/2; larger pages waste more memory per process but need smaller page tables
Only the last page is partly used, and on average half of it is empty: P/2. Bigger pages mean fewer entries (smaller page table, larger TLB reach) but more internal fragmentation.
More Operating Systems questions
- 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…
- A system uses segmentation with paging: a 32-bit logical address has a 4-bit segment number, and each segment is paged with 4 KB pages and…
- A machine has 2 GB of physical memory with 8 KB frames, uses 48-bit virtual addresses, and an inverted page table with 16-byte entries…