免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2045 | 回复: 3
打印 上一主题 下一主题

Page replacement and Demand Paging(需求分頁問題) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-12 17:12 |只看该作者 |倒序浏览
我有几个关于”需求分页”的问题要请问前辈们,希望可以得到解答

Consider a system that uses demand paging to bring pages of a process into main memory. Suppose normal memory access time are 10 naoseconds and page faults are serviced in a total of 5 milliseconds.

A. If one memory access in 10000 causes a page fault, what is the effective access time(EAT)?
我的计算方法如下:
EAT=(1-P)*ma+P*处理分页错误的时间

=(1-P)*10ns+P*5ms
=(1-P)*10+p*5000000
=10+4999990P
这一题这样子解对吗?
我不了解的地方是题目里指出的10000是什么?


B.By what factors does demand paging slow the system down, compared to a system in which pages are always in main memory?


請前輩們指導,用中文就可以了,非常感謝

论坛徽章:
0
2 [报告]
发表于 2009-01-12 20:00 |只看该作者
A.
EAT = (1–p) x memory access+ p x page fault
p=1/10000

B.内存大小,磁盘速度

论坛徽章:
0
3 [报告]
发表于 2009-01-12 20:14 |只看该作者

回复 #1 ckjboy2003 的帖子

第一道题实际上就是一个概率中的求数学期望的问题。求解方法2楼已经给了。

论坛徽章:
0
4 [报告]
发表于 2009-01-13 06:26 |只看该作者
謝謝前輩們指導,我了解了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP