Re: [問題] OS-memory reference time
昨天看的太快,原po給的寫法也對,還是稍微整理一下:
EAT = p*(TLB + MA) + (1-p)*(TLB + 2MA) ; 比較直覺的做法
p :TLB hit ration
MA:記憶體存取時間 (存取page table 或是 存取data)
觀念是兩個情況:
1.TLB hit:欲存取的page在TLB找到,則到記憶體存取data
2.TLB miss:欲存取的page在TLB沒找到,此時到page table尋找,
之後才到記憶體存取data,故需要兩次MA
兩種寫法:75%*(0+100) + (1-75%)*(100+100) = 125 ; 比較直覺的寫法
75%*0 + (1-75%)*100 + 100 = 125 ; 失誤代價的寫法
↑ ↑
TLB 失誤代價 存取data時間
我是習慣第一個寫法,看個人嘍
※ 引述《bernachom (Terry)》之銘言:
: If we add associative registers , and 75 percent of all page-table
: reference are found in the associative registers, what is teh effective
: memory reference time? justify your answer.
: (Assume that finding a page-table entry in the asociative registers takes
: zero time, if the entry is there. memory reference takes 100ns. )
: 解答寫:
: 75%*0+(1-75%)*100+100=125
: 請教一下,這是不是應該75%*100才對?
: 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.87.226.213
推
04/01 17:20, , 1F
04/01 17:20, 1F
→
04/01 17:22, , 2F
04/01 17:22, 2F
推
04/01 18:15, , 3F
04/01 18:15, 3F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):