7,537 views
4 votes
4 votes
Consider a paging system with page size of 8 KB. If a process of size 34 KB is in logical address space, find the internal fragmentation in Kbytes.

a - 4

b- 5

c -6

d -7

 

Internal fragmentation is always half the page size I guess So the answer should be 4 KB but it is 6 KB

How????

5 Answers

Best answer
6 votes
6 votes
Page size is 8KB  and process size is 34KB

so  require  5 pages =   4 pages having no internal fragmentation  and 1 page for remaining 2KB of the process

so 6 KB is  wasted in the last page
selected by
1 votes
1 votes
Internal Fragmentation  arises when the memory allocated to a program is not fully utilized by it.

Now here process size is 34kb and page size is 8kb

hence process requires 5 pages (4 page for 32kb and 1 more page for 2kb more i.e. 4+1=5 pages )for process out of which 6kb will not be utilized by the process hence internal fragmentation will be 6kb
0 votes
0 votes

Page size=8kB

Process size=34KB

number of the pages=34KB/8KB=5

but 4 pages will take proper space but one last process will not fit in 2kB.

So required space which is waste is =4KB+2KB=6KB.

0 votes
0 votes
You can do this without pen/paper see we have 8kb of the page size which can be equally distributed towards 32kb but here the size is 34 kb so every time it will have +2 more internal fragmentation so 1/2(8)+2.

Related questions

0 votes
0 votes
0 answers
2
SSR17 asked Feb 8
211 views
we have 8 pages (each side 32B) to store in physical memory of 2^32 bits how many bits are required to identify each page , according to me 3 bits are required but that i...