作者yesa315 (XD)
看板Grad-ProbAsk
标题Re: [理工] [计组]-清大93 page计算
时间Mon Jan 11 10:21:49 2010
※ 引述《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)
1F:推 killerjoe:我觉得应该是每个entry都要以byte来计算 01/13 00:40
2F:→ killerjoe:因为既然allocation是以byte那麽access应该也要以byte当 01/13 00:41
3F:→ killerjoe:unit 01/13 00:41