问一问关于LRU算法的问题

braveman82 2005-01-26 09:58:16
LRU works well because it tends to remove cold pages
from the buffer to make space for the faulted page. If
the faulting page is cold, however, then LRU may dis-
place a warmer page to make space for the cold one.
Furthermore, the cold page will reside in the buffer
for a considerable amount of time. LRU/2 improves
on LRU by using a more aggressive exit rule, thereby
quickly removing cold pages from the buffer. Impl+
menting the exit rule requires priority queue manipu-
lations.

题中的faulted page如何理解?
为什么LRU对faulted page反应比较迟钝?
...全文
71 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qinxiaolin 2005-01-27
  • 打赏
  • 举报
回复
楼上的说的很清楚了!
zdwaiter 2005-01-26
  • 打赏
  • 举报
回复
faulted page 指引起缺页中断的那页

不是说反应迟钝, 而是如果换进来的新页面A只是用一会就没用了(faulting page is cold),LRU可能会选择换出在A之前换入内存的页面B,但是B却可能是需要频繁再用的(dispalce a warmer page)

所以LRU在某些特殊情况,反而可能效果更差

3,882

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧