[理工] 一題EAT

作者: kamihane (也無風雨也無晴)   2014-10-19 08:31:06
題目:
Consider a demand-paging system with a paging disk that has an average access
and transfer time of 10 milliseconds ( you can ignore extra time to swap a
page out to make a free frame). Addresses are translated through a page table
in real memory, with an access time of 1 micrsecond per memory access. Thus,
each memory reference through the page table take two accesses. To improve
this time, we have added a TLB that reduces access time to one memory referenc
if the page-table entry is in the TLB. The TLB lookup time is 10 nanoseconds.
Assume that 99 percent of the accesses are in the TLB and that, of those
remaining, 20 percent (or 0.2 percent of th total) cause page faults.
What is the effiective memory access time in microseconds?
我的答案是:
我算出了0.99*1us + 0.01*(1us+(1-0.2)*(1us)+(0.1)*(10ms)
= 0.99 + 0.01*(1+0.8*1+1000)
= 0.99 + 10.018 = 11.008us
不太確定對不對,有人可以幫忙看一下嗎Orz
作者: qoojordon (穎川琦)   2014-10-23 20:42:00
(10ns+1us)+(0.01*0.8*1us)+(0.01*0.2*1ms)=3.018us(查TLB+存取data)+(TLB miss,hit in MEM)+(MEM miss,PF你題目有出處嗎 ? 想看看原本出現的地方 , 謝謝

Links booklink

Contact Us: admin [ a t ] ucptt.com