Read the following and answer the questions: Consider a machine with 16 GB…
2021
Read the following and answer the questions:
Consider a machine with 16 GB main memory and 32‐bits virtual address space, with page size as 4KB. Frame size and page size is same for the given machine.
If a process of size 34KB is to be executed on this machine, then what will be the size of internal fragmentation for this process?
- A.
4KB
- B.
Zero
- C.
1KB
- D.
2KB
Attempted by 171 students.
Show answer & explanation
Correct answer: D
Final answer: 2KB
Explanation:
Page size = 4 KB. Process size = 34 KB.
Number of pages required = ceil(34 ÷ 4) = 9 pages.
Data stored in full pages = 8 × 4 KB = 32 KB. Data on last page = 34 KB − 32 KB = 2 KB.
Internal fragmentation = page size − data on last page = 4 KB − 2 KB = 2 KB
Therefore, the size of internal fragmentation for this process is 2 KB.
A video solution is available for this question — log in and enroll to watch it.