1,506 views
0 votes
0 votes
Suppose: TLB lookup time = 20 ns

TLB hit ratio = 80%

Memory access time = 75 ns

Swap page time = 500,000 ns

50% of pages are dirty

OS uses a single level page table

What is the effective access time (EAT) if we assume the page fault rate is 10%? Assume the cost toupdate the TLB, the page table, and the frame table (if needed) is negligible.

1 Answer

0 votes
0 votes

page fault = 0.1

nopagefault = 0.9

dirtypage = 0.5

nodirtypage = 0.5

tlb hit ratio = 0.8

tlb miss ratio = 0.2

tlb access time = 20ns

memory access time = 75ns

swap page time = swap page from main memory to disk for update = swap update page from disk to main memory = 500,000 ns

EMAT=(TLB hit ratio) * (TLB access time + page access time) + (TLB miss ratio) * [nopagefault*(TLB access time + main memory access time) + pagefault * {(nodirtypage*swap page time) + (dirty page*(swap page from main memory to disk for update)* (swap update page from disk to main memory) )

 

=0.8(20+75)+0.2[0.9(20+75+75)+0.1(0.5×500000+0.5(2×500000))]0.8(20+75)+0.2[0.9(20+75+75)+0.1(0.5×500000+0.5(2×500000))]

=0.8×95+0.2[153+0.1(250000+500000))]

=15106.6ns

Related questions

648
views
0 answers
0 votes
jatin khachane 1 asked Dec 15, 2018
648 views
Page fault rate = pMain memory access time = mPage fault service time = PSEMAT = (1-p) (m) + (p) (PS + m)OREMAT = (1-p) (m) + (p) (PS)which one ... should we consider [ Page fault service time + MM ] OR [ Page fault service time only ]
1.1k
views
1 answers
3 votes
13.4k
views
2 answers
8 votes
rahul sharma 5 asked Aug 29, 2017
13,416 views
I got some doubt while solving previous year questions:-Since While calculating EMAT and question involves page fault service time,we use formulae:-p*s+(1-p)*m ,taken ... doubt we are not using 2m instead of m in case of NOT a page fault?