看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《starbury8 (馬不理不思議)》之銘言: : Assume that we have an array of four disks. : Eacg disk has 16 sectors per track, each track holds 1KB of data, 這裡應該是sector吧 : and the revolves at 3750 RPM. : Assume that the seek time is 6ms, : the delay of the disk controller is 1ms per transaction. : Assume that the requests are random reads of : 4KB of data from sequential sectors. : Please calculate the performance in KB per second for this system. : 請問這題的transfer time怎麼看?? 我找到題目了0.0 我們先算一個disk傳送4KB所需要花的時間 分成seek time(讀寫頭移到所需要資料在的track之時間) 6ms Rotation time 是開始旋轉中間的磁盤 找到資料一開始的sector 課本都是假設要轉0.5圈才能找到 轉一圈需要花的時間是1/(3750/60)=16ms 秒 =>轉半圈花8ms 然後就開始傳輸了transfer time 轉一圈是16KB (一圈有16個sector) 而傳輸的資料量是4KB 所以要轉的圈數是4/16=1/4 轉一圈花的時間是16ms =>transfer time = 1/4*16ms=4ms 還有control time (其他雜項控制時間)=1ms 總共的access time = seek time+rotation time+transfer time+ control time =19ms(這是一個disk傳輸4KB所需的total time) 而這整個系統的速率為4(4個硬碟)*4KB*(1/19ms)= 842KB/s 這樣應該就對了 有問題再說吧 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.224.78.191
daniel770624:轉一圈16ms 半圈 16/2= 8 = 0.8? 10/08 21:51
筆誤xd ※ 編輯: hunter0904 來自: 61.224.78.191 (10/08 22:00)
starbury8:謝謝!! 我原本是不知道cake大式子裡的track要帶什麼啦XD 10/09 16:12
starbury8:所以跟4個DISK無關囉? 是因為存在sequential sectors嗎? 10/09 16:48
starbury8:所以也跟cylinder無關了 就是一圈可以讀一個track 10/09 16:48
cakeboy:建議你去看一下硬碟的構造,因為這題數據就這樣,實際上,還 10/09 21:00
cakeboy:是跟cylinder有關,因為這題給的數據就track跟sector 10/09 21:01
cakeboy:如果有給是用幾片"磁片"組的硬碟,就要考慮了 10/09 21:02
hunter0904:應該是沒關係cylinder就算給說幾片 磁頭一次也只能在 10/09 21:38
hunter0904:一片上讀取 10/09 21:38
starbury8:所以cake大的式子要說 一個cylinder=platter*sector*1kB 10/10 01:10
starbury8:如果是那我還可以接受 因為帶track讓我想不透 10/10 01:11
starbury8:目前剩下的問題就是這題跟cylinder到底有沒有關係了 10/10 01:12
hunter0904:cylinder通常都不會影響...我還沒看過題目出變化超大的 10/10 09:35
sneak: 目前剩下的問題就是這題 https://noxiv.com 08/09 10:44
sneak: 所以跟4個DISK無關 https://daxiv.com 09/11 14:00
sneak: cylinder通常都 https://muxiv.com 12/15 00:25