[理工] [計組]segment/page...

看板Grad-ProbAsk作者 (jim)時間14年前 (2011/10/31 22:38), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
Consider a computer system with both segmentation and paging. When a segment is in memory, the space overhead of the segment comes from two sources: internal fragmentation and page table entries for the segment. Assume that the segment size is s, and each page table entry occupies 8 bytes. What page size (in bytes) minimizes such overhead? 這一題要怎麼算啊?? 不懂內部碎裂要怎麼假設ㄝ.... 有勞高手指點一下~~ 鋼溫!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 223.139.197.100

11/01 00:45, , 1F
如果要使overhead最小,則page table大小和內部碎裂加起來
11/01 00:45, 1F

11/01 00:46, , 2F
要剛好一個page,好像是在os恐龍裡面看到的
11/01 00:46, 2F

11/01 01:04, , 3F
所以假設頁框大小為n,(s/n)*8=n/2
11/01 01:04, 3F

11/01 21:00, , 4F
請問K大是在哪一頁看到的....
11/01 21:00, 4F
文章代碼(AID): #1EhhC14H (Grad-ProbAsk)