SEGMENT 1 (256 KB) |
SEGMENT 2 (256 KB) |
$\rightarrow$Page Size = $2$ KB
$\rightarrow$Number of Pages in a segement = $\frac{256 KB}{2 KB}$ = $128$ = $2^{7}$
$\rightarrow$Each Table will have its own page table.
$\rightarrow$Number of entries in a page table = Number of pages in a segment = $2^{7}$
$\rightarrow$Page Table Size = (Number of Entries * PTE Size) = $2^{7}*2^{2}$ = $2^{9}$ = $512$ B
$\rightarrow$Size of segement table =( Number of entries in segment table * size of each entry) = $2*2$ B = $4$ B
$\rightarrow$ Total Overhead of $1$ page table = $512$ + $4$ = $516$ B
$\rightarrow$There will be $1$ page table for each segments.i.e. $2$ page table and both page tables will have size=$512$B
$\rightarrow$But in MM only one page table will be present at a time so overhead of one PT is considered in total overhead.
$\rightarrow$The segment table along with one of the page tables will be present in MM.
$\therefore$ Total Overhead = $516$ B