1 1 vote consider a paging system with 48bit virtual address space.Each address defers to a byte in memory.suppose the size of page is 16KB and the main memory size is 16GB.The minimum size of page table with each entry need 2 protection bits is _____ (in GB) now what should be the aswer? i got PTE as 22bits. should i round it to 3bytes and make answer as 48GB or shuld i keep it as it is and write the answer as 44GB? Operating System operating-system paging + – Anusha Motamarri 1.7k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply vijaycs commented Jan 28, 2017 reply Follow flag "Each address defers to a byte in memory". So, I will go with 48 GB ..( PTE = 3 byte). One more discussion link- https://www.facebook.com/groups/core.cs/permalink/1411897255509190/?comment_id=1413428322022750¬if_t=group_comment_mention¬if_id=1485571013068291 2 2 replyShare Anusha Motamarri commented Jan 28, 2017 reply Follow flag @vijay yes i agree with you that it shuld be 48Bytes. wanted to confirm. :) thank you 2 2 replyShare Aboveallplayer commented Jan 28, 2017 reply Follow flag Yup! i think that means memory is byte adressable! so we should go for 3 byte 2 2 replyShare Please log in or register to add a comment.
Best answer 4 4 votes Already resolved in the above comments: dd answered Jan 28, 2017 • selected Jan 28, 2017 by Anusha Motamarri dd comment Share Follow See all 3 Comments 3 3 Comments reply yg92 commented Jan 28, 2017 reply Follow flag @Debashish / @Anusha whenever the term "Byte addressable memory" comes should we round off? What if there is no mention of byte addressing. We usually by default assume byte addressable and solve. Should we round off in that case too? 1 1 replyShare Vasu_gate2017 commented Jan 28, 2017 reply Follow flag Same doubt.......here 0 0 replyShare yg92 commented Feb 9, 2017 reply Follow flag @Arjun Sir Could you please confirm this ? Should we byte align or leave as it is? 0 0 replyShare Please log in or register to add a comment.
0 0 votes no of entries in page table :2^34 no of frames are 2^20 so PTE size will be 20 +2= 22 bits k now further we have page table size as = 2^34 * 22 bits convert it to BYTE we have (2^34 * 22)/8 = 44GB focus _GATE answered Jan 28, 2017 focus _GATE comment Share Follow See 1 comment 1 1 comment reply Anusha Motamarri commented Jan 28, 2017 reply Follow flag how do we store only some part of a byte? 22/8= 2.75 bytes. (2bytes+3/4th of another byte) are u going to utilize remaining 1/4th part of 3rd byte? 2 2 replyShare Please log in or register to add a comment.