看板 Grad-ProbAsk 關於我們 聯絡資訊
請問一下 交大98年的os 第9.10.11題答案要怎麼解阿 題目如下 9.In a paging system with three-level page tables, suppose that the hit ratio is 90% and it takes 20 nanoseconds to search the TLB (translation look-aside buffer) and 200 nanoseconds to access memory. What is the effective memory-access time? (a) 240 ns (b) 260 ns (c) 280 ns (d) 300 ns (e) none of the above 這一題 我自己是這樣算的 90%(20+20+200)+10%(20+20+200+200)=260ns 可是爬文之後 很多人都解出280ns 請問是怎麼算的 10.An IDE hard disk spins at 7200 RPM, 1000 cylinders, 10 tracks per cylinder, 100 sectors per track, and 512 bytes per sector. The disk is formatted by a file system which the logical block size is 1024 bytes. If we ignore the space to keep directory and indexes, how many 1-byte files that the disk can store? (a) 512000000 1 -byte files (b) 1000000 1-byte files (c) 500000 1-byte files (d) 100000 1 -byte files (e) 50000 1-byte files 請問一下 這題提到logical block size 是要考慮什麼嘛? 不然我是算1000*10*100*512 1-byte files 11.The raw disk speed of the above hard drive is about: (a) 120 MBytes/sec (b) 60 MBytes/sec (c) 12 MBytes/sec (d) 6 MByte/sec. (e) 600 KBytes/sec 請問這題怎麼算呢? 7200RPM=> 1秒120圈 1圈100 sector 1個 sector 512byte 120*100*512=6 MByte/sec 我算的對嘛? 謝謝大家回答 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.230.142.29
ptttest:TLB只search一次90%*(20+200)+10%*(20+200+200)=240 12/13 21:09
ptttest:沒看到three-level 我搞錯了 12/13 21:14
ptttest:90%*(20+200)+10%*(20+200+200+200+200)=280 這樣? 12/13 21:17
opcan:對 12/13 21:31
gensim:第10題會不會是指他檔案的存放是以邏輯區塊為單位 12/13 21:39
gensim:所以原PO算的可能要再除以1024 12/13 21:41
gensim:第11題考慮1磁柱有10個磁軌 我會再乘以10=>60MByte/sec 12/13 21:43
taitin:轉一圈讀一個磁軌喔!!所以是6 01/15 23:17