作者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/m.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