作者b76516 (阿聪)
看板Grad-ProbAsk
标题[理工] [os]-98交大-资工
时间Sun Dec 13 20:48:35 2009
请问一下
交大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
1F:→ ptttest:TLB只search一次90%*(20+200)+10%*(20+200+200)=240 12/13 21:09
2F:→ ptttest:没看到three-level 我搞错了 12/13 21:14
3F:→ ptttest:90%*(20+200)+10%*(20+200+200+200+200)=280 这样? 12/13 21:17
4F:→ opcan:对 12/13 21:31
5F:推 gensim:第10题会不会是指他档案的存放是以逻辑区块为单位 12/13 21:39
6F:→ gensim:所以原PO算的可能要再除以1024 12/13 21:41
7F:→ gensim:第11题考虑1磁柱有10个磁轨 我会再乘以10=>60MByte/sec 12/13 21:43
8F:推 taitin:转一圈读一个磁轨喔!!所以是6 01/15 23:17