1,212 views
4 4 votes

2 Answers

Best answer
2 2 votes

Case 1) Page fault doesnt occur

Effective time = TLB hit rate * ( TLB access time + Memory access time ) + (1 - TLB hit rate) * ( TLB access time + Page table access time + memory access time )

Effective time = 0.99 ( 20+100) + 0.01*(20+100+100) ---------------( I assumed lvl 1 page table)

Effective time = 121 ns

Case 2) Page fault occurs

Effective time = 121 + 5000000 + 5000000 = 10000121 ns -------------( since the page is dirty we have to write back the result in secondary storage )

So EMAT = 0.0005 * 10000121 + 0.9995 * 121 = 5121 ns

• selected by
0 0 votes

step 1:- converting logical address to physical address.

0.99(tlb) + 0.01(tlb+memory)

step 2: fetching data from retrieved address.In this step there is a chance of Page fault.

(memory access)+5*10-4(page falut service)

Emat=0.99(20)+0.01(20+100) + 100 + 5*10-4(5000000) ns

Position:
Show:

Related questions

1 1 vote
2 2 answers
153
153 views
Tushal_Kumar asked Sep 21
153 views
Q4. A fast-food restaurant has four kinds of employees: (1) order takers, who take customers’ orders; (2)cooks, who prepare the food; (3) packaging specialists, who stuff...