[理工] [計組]-memory

看板Grad-ProbAsk作者 (心安即自在)時間16年前 (2010/02/10 23:53), 編輯推噓8(801)
留言9則, 5人參與, 最新討論串4/6 (看更多)
想請問下面這題 : Consider a logical-address of 2048 words each,mapped onto a physical memory of 64 frames. Please answer the following questions assuming that the smallest memory allocation unit is one byte (c)Assuning a 2-level page table is used and the first-level table has 32 entries, what is the minimal amount of memory (in bytes) required by the page tables? 手邊的答案為 : level-1 : 2^5*(3+6(for L2))= 32*9 bit= 36 bytes level-2 : 2^6*(3+6(for physical address)) = 64*9 bit= 72 bytes total= 36 bytes + 72 bytes = 108 bytes 想請問它這樣解對嗎?? 對這種題目好頭痛orz 麻煩高手解答一下 感謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.134.213.201

02/10 23:56, , 1F
這種題目好像都是OS的,比較難算
02/10 23:56, 1F

02/10 23:59, , 2F
我也對OS的計算page tables 很頭痛 尤其是2-level的
02/10 23:59, 2F

02/11 00:04, , 3F
每次算的答案都不同~解答也不同XD
02/11 00:04, 3F

02/11 00:17, , 4F
他有加3bit 是 valid dirty 和 ref bit 嗎 ?
02/11 00:17, 4F

02/11 00:24, , 5F
02/11 00:24, 5F

02/11 00:25, , 6F
真的!!有同感......跟樓樓上那一位
02/11 00:25, 6F

02/11 01:06, , 7F
喔喔
02/11 01:06, 7F

02/11 01:37, , 8F
其實我覺得他level 1 放那3bit怪怪的 頂多放valid就好...
02/11 01:37, 8F

02/11 01:37, , 9F
level 2 再放那3bit比較合理... @@...
02/11 01:37, 9F
文章代碼(AID): #1BSjPc3V (Grad-ProbAsk)
文章代碼(AID): #1BSjPc3V (Grad-ProbAsk)