看板 Grad-ProbAsk 關於我們 聯絡資訊
請問一下使用製作LRU的count方式怎麼會知道最後使用時間?他不是只紀錄使用幾次嗎? —————————————————- 還有page buffering機制假如已經有一個P2在 free frame pool然後resident frame pool剛好page fault P2的話 可以把P2移到reside nt frame pool 然後移victim到free frame pool Victim就存在free frame pool了嗎? 不太懂free frame pool的概念 他不能給process配置 卻可以這樣卡位在裡面?有可能 free frame pool全部被卡滿嗎?這樣如果拿出來給process配置的話效能不會比較好嗎? 為什麼要分區 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.150.176.120 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1565958072.A.DE5.html ※ 編輯: eefat (118.150.176.120 臺灣), 08/16/2019 20:51:01
james80351: 不是紀錄使用幾次 是把當下的時間或counter之類的加上08/16 20:44
james80351: 所以要替換的時候 找count最小的即可08/16 20:44
eefat: 請問一下J大 當下的counter是什麼意思08/16 20:52
※ 編輯: eefat (118.150.176.120 臺灣), 08/16/2019 20:53:08
bochengchen: 上面大大講的,記錄當下counter就是記錄當下時間,要 08/16 23:01
bochengchen: 替換的話找時間最小的替換 08/16 23:01
bochengchen: Tree frame pool 是為了讓page fault的時候,不用等待 08/16 23:06
bochengchen: victim寫回,可以直接給出free frame, 然後victim就 08/16 23:06
bochengchen: 進入free frame pool 慢慢寫回main memory。 08/16 23:06
bochengchen: 如果沒有free frame pool,找到victim之後,如果vict 08/16 23:06
bochengchen: im需要寫回,這樣new data要等victim寫回之後才能夠 08/16 23:06
bochengchen: 把資料移入,要等很久。 08/16 23:06
eefat: 謝謝上面大大們 08/17 21:12