2,388 views
0 0 votes
A computer system has a page size of 1024 bytes and maintains page table for each process in the main memory.The overhead required for doing a lookup in the page table is $500ns$.To reduce this overhead, the computer has a TLB that caches 32 virtual pages to physical page frame mappings.A TLB lookup requires $100ns$.What TLB hit-rate is required to ensure an average virtual address translation time of $200ns$?

3 Answers

5 5 votes
So, Average virtual address translation time(and not Average Memory Access time) is asked.

If TLB hit, it takes only 100ns

otherwise, it takes 100+500=600ns

$200=h(100)+(1-h)(600)$

$h=0.8$
1 1 vote
It should be 0.8

Note that here, we are asked to calculate average virtual address translation time. So the equation would be like this:

Let the hit rate be $x$.

$200 = x(100) + (1-x)(100+500)$.

Solving this should get you the value of $x$ as $0.8$.

Here, we don't add the time to access the page from the memory because we only care about the address translation time.
0 0 votes
OR we can do like this

P>>Hit rate

Avg access Time= Access time for TLB+(1-P)*(500)

200=100+(1-P)*500

100=500-500*P

500*P=400

P=0.8
Position:
Show:

Related questions

4 4 votes
3 answers 3 answers
5.0k
5.0k views
vaibhav101 asked Jul 11, 2017
5,004 views
I am trying to understand the difference between the valid-invalid bit and the modify bit in pagingMy current understanding is that the valid invalid bit is in the page t...
0 0 votes
0 0 answers
555
555 views
Na462 asked Jan 17, 2019
555 views
I have a simple doubt, Given a question that says that memory access time is x and page fault service time is y. We applyT = h*x + (1-h)*yHere assuming single level paget...
2 2 votes
0 0 answers
1.5k
1.5k views
2 2 votes
1 1 answer
2.1k
2.1k views
3lurryface asked Jan 9, 2019
2,062 views
If there is 2 or more level paging for processes, is it possible to have more than 1 page fault while accessing any single addressable unit(byte or word) ?