作者eefat (ffff)
看板Grad-ProbAsk
标题[理工] os page replacement
时间Fri Aug 16 20:21:10 2019
请问一下使用制作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://webptt.com/cn.aspx?n=bbs/Grad-ProbAsk/M.1565958072.A.DE5.html
※ 编辑: eefat (118.150.176.120 台湾), 08/16/2019 20:51:01
1F:→ james80351: 不是纪录使用几次 是把当下的时间或counter之类的加上08/16 20:44
2F:→ james80351: 所以要替换的时候 找count最小的即可08/16 20:44
3F:→ eefat: 请问一下J大 当下的counter是什麽意思08/16 20:52
※ 编辑: eefat (118.150.176.120 台湾), 08/16/2019 20:53:08
4F:→ bochengchen: 上面大大讲的,记录当下counter就是记录当下时间,要 08/16 23:01
5F:→ bochengchen: 替换的话找时间最小的替换 08/16 23:01
6F:→ bochengchen: Tree frame pool 是为了让page fault的时候,不用等待 08/16 23:06
7F:→ bochengchen: victim写回,可以直接给出free frame, 然後victim就 08/16 23:06
8F:→ bochengchen: 进入free frame pool 慢慢写回main memory。 08/16 23:06
9F:→ bochengchen: 如果没有free frame pool,找到victim之後,如果vict 08/16 23:06
10F:→ bochengchen: im需要写回,这样new data要等victim写回之後才能够 08/16 23:06
11F:→ bochengchen: 把资料移入,要等很久。 08/16 23:06
12F:→ eefat: 谢谢上面大大们 08/17 21:12