[理工] [計組]-清大93-page計算

看板Grad-ProbAsk作者 (XD)時間16年前 (2010/01/11 10:21), 編輯推噓1(102)
留言3則, 1人參與, 最新討論串6/7 (看更多)
※ 引述《polomoss (小澤)》之銘言: : Consider a logical address of 2048 pages of 1024 words (4byte) each, mapped onto a physical of 64 frames. Assume the smallest memory allocation unit is one byte ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : a. How many bits in the logical and physical address : b. one-level page table is used, how many bytes are required by PT : c. two-level PT is used, and first level table has 32 entries, : what is the minimal amount of memory required by PT. 剛好寫到有問題 借標題問一下 他說最小配置是 1 byte 那個1-level的page table的entry ( 1(valid) + 6 ) bits 因為最小配置為1byte 所以配給他 每個entry 1 byte 我覺得很怪 到底是在entry的時候就配給1 btye 還是page table配完再以byte算 可是我覺得page table配完再以byte算 如此他幹麻還特別說明最小配置是 1 byte 直接答案就是有bits 跟 bytes兩種答案 所以2-level的inner P.T.的entry也是1 byte 歡迎討論 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.127.208.96 ※ 編輯: yesa315 來自: 140.127.208.96 (01/11 10:23)

01/13 00:40, , 1F
我覺得應該是每個entry都要以byte來計算
01/13 00:40, 1F

01/13 00:41, , 2F
因為既然allocation是以byte那麼access應該也要以byte當
01/13 00:41, 2F

01/13 00:41, , 3F
unit
01/13 00:41, 3F
文章代碼(AID): #1BIei_1D (Grad-ProbAsk)
討論串 (同標題文章)
文章代碼(AID): #1BIei_1D (Grad-ProbAsk)