351 views
1 votes
1 votes
Estimate the average time to access data from memory with the following information, page fault service time = $2$ ms, memory access time = $200$ ns, $10$ page faults for every $10^6$accesses, TLB hit rate = $50\%$, TLB lookup latency = $5$ ns, and a two-level page table for v2p (virtual to physical ) mappings. Assume all page table pages are present in the memory. Page fault service time is the time to execute the page fault handler and update the v2p mapping (via possible evictions of other pages, reading from disk etc.)

1 Answer

1 votes
1 votes
Average access time

                              =Average address translation time+Average memory access time+Average page fault service time

                                    $={{\color{Purple} {Address Translation Time}}}\left \{ {5+2\times 0.5\times 200} \right \}

+{{\color{Red} {Address Memory Access Time}}}2\times 200

+{{\color{Blue} {Avg Page Fault Service Time}}}\frac{10}{10^{6}\times 2\times 10^{6}}$

                               $=625ns$
edited by

Related questions

3 votes
3 votes
1 answer
1
khushtak asked Jan 6, 2016
4,491 views
Consider a disk with a rotational rate of 10,000 RPM, an average seek time of 8 ms, and on average of 500 sectors per track. Estimate the average time to read a random se...
0 votes
0 votes
1 answer
3
prathams asked Dec 20, 2015
425 views
Assume memory access time is 10 μs and reading a page from disk takes 10 ms. If page fault occur in 0.5% of the memory references then what is the average memory access ...