458 views

2 Answers

2 votes
2 votes

Given Page size (PS) = 16KB

Physical address (PA) = 32 bit so physical address space (PAS) = 232 Bytes

Page table size (PTS) = 22M

No. frames= $\frac{PAS}{PS}$

No.of frames= 232 /214​​​​​ = 218 frames, hence no of bits used for frames i.e f= 18 bits.

Entry size (e) = f + 1(valid bit) + 1(modified bit) + 2(modified bit)= 22 bit = 3B(approx)

Page table size PTS = 22MB = 2​​​​​​2 * 220 bytes

PTS = 22 * 220 = No. of pages * entry size

No. of pages =(22 * 220)/3 = 223 pages (approx) 

Offset = log​​​​2(PS) = 14 bits 

Logical address = 23+ 14 = 37 bits

Hence 37 bits is the correct answer

edited by
0 votes
0 votes

Given Page size = 16KB

Physical address size = 32 bits (2^32 Bytes)

Page table size PTS => 2​​​​​​2 * 2^20 bytes(  22MB)

No.of frames= 2^32 /2^14​​​​​ = 2^18 frames, hence no of bits used for frames i.e f= 18 bits.

Entry size (e) = f + 1(valid bit) + 1(modified bit) + 2(modified bit)= 22 bit

let the virtual address space = x + 14 ( 2^x is number of page entries and 2^14 is page size )

size of page table = 2^x * 22 = 22MB

from here x = 20 

so virtual address space = 20 + 14 (34) ans

Related questions

0 votes
0 votes
0 answers
2
Overflow04 asked Sep 1, 2022
331 views
How to solve this question.
2 votes
2 votes
0 answers
4