D
0.85(10+110)+0.15(13/15(10+100+100)+2/15(10+100+2000000+100)=40125
85% time there will be a TLB hit so it will take (10+100) ns.
15% of the time two things can happen:
- X% of the time page fault will occur that is it will take (10+100+2000000+100) ns.
- (1-X)% of the time no page fault so it will take (10+100+100) ns.
Page fault occurs 2% of the total memory accesses so X% of 15 should be equal to 2.
i.e. 15 * X/100 = 2 X=200/15.