作者wang19980531 (中立评论员)
看板Grad-ProbAsk
标题[理工] Page/Virtual Memory Management
时间Fri Sep 6 02:32:00 2019
1. Hierarchical Page 适用於32-bit的状况,而64-bit logical address则适合使用hashe
d Page Table之方法;
那32-bit使用hashed page table有什麽缺点吗?
因为2-level paging必然要memory access 2次
觉得时间上来说,hashed page table也不一定花的比较多吧(虽然碰撞可能就要access很多
次了)
2. Demand Page 与 Dynamic Loading有什麽不同吗? Demand Page一开始也是Pure ,读到
什麽才发出Page Fault Trap 请求OS Pager swap in resources.
谢谢大家
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 39.13.192.38 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Grad-ProbAsk/M.1567708322.A.10B.html
1F:→ firejox: 1. 计算hash值也要花时间,相较hierarchical page直接取 09/06 20:51
2F:→ firejox: 固定bit,算hash会比较慢 09/06 20:51
3F:→ firejox: 2. page table中对每个page会有一个bit表示是否在memory 09/06 21:05
4F:→ firejox: 查page table的时候发现没有在memory就会发出trap 09/06 21:06
5F:→ firejox: 不管static linking, dynamic linking, dynamic loading 09/06 22:01
6F:→ firejox: 都可以有demand page,只要呼叫的function跟当前是不同 09/06 22:05
7F:→ firejox: page,就可以执行时才载入 09/06 22:06
8F:→ shinle14: 2 level paging 是memory access是3次还是2次阿? 怎麽 09/06 23:41
9F:→ shinle14: 印象是3 09/06 23:41
10F:→ firejox: 2 level paging算出physical address是要access 2次 09/07 00:05
11F:→ firejox: 光一个page table就要access一次了 09/07 00:06
12F:→ shinle14: 嗯?那洪逸的笔记怎麽写各level1次再加上进入memory再一 09/07 08:30
13F:→ shinle14: 次所以3次呢 09/07 08:30
14F:→ wang19980531: 3次吧 2次page table 1次取data 谢谢楼上回应 09/07 09:52