MEGATRON 777 Disk: Capacity, Seek Time, and Performance Analysis
The MEGATRON 777 disk has the following characteristics:
- five platters, ten surfaces
- 10,000 cylinders
- 1000 sectors/track
- 2^9 bytes/sector
- 10,000 rpm
- Seek time = 1 ms plus another 1 ms per 1000 cylinders moved.
(1) Calculate the following parameters.
a) The total capacity of the disk.
b) The average seek time.
c) The average rotational latency.
d) The transfer time of a block (2^14 bytes).
e) The average time for accessing 10 continuous blocks in one track on the disk.
(2) Suppose you are told that half of the data on the disk are accessed much more frequently than another half, and you are given the choice to place the data on the disk to reduce the average seek time. Where do you propose to place the hot data, considering each of the following two cases? (Hint: Inner-most tracks, outer-most tracks, middle tracks, random tracks, etc). State your assumptions and show your reasoning.
a) There are the same number of sectors in all tracks (the densities of inner tracks are higher than those of the outer tracks).
b) The densities of all tracks are the same (there are fewer sectors in the inner tracks than in the outer tracks).
Explanation
(1)
a) Disk total capacity = bytes per sector x number of sectors x number of surfaces x number of platters = 2^9 x 1000 x 10 x 5 = 10^12 bytes = 1 TB
b) Average seek time = Seek time + 1/2 rotational latency Seek time = 1ms + (10000/1000) x 1ms = 11ms Rotational latency = 1/2 x (1/10000) x 60 x 1000 = 3ms Average seek time = 11ms + 3ms = 14ms
c) Average rotational latency = 1/2 x rotational latency = 1.5ms
d) Block transfer time = Block size / bytes per second transferred Bytes per second transferred = sector size x disk rotational speed x sectors per track x number of heads = 2^9 x 10000 x 1000/100 x 2 = 2^20 bytes/s Block transfer time = 2^14/2^20 = 2^-6 s = 0.0625 s
e) Average time for accessing 10 continuous blocks in one track = 10 x transfer time + seek time + rotational latency = 10 x 0.0625 s + 11 ms + 1.5 ms = 1.16 s
(2)
a) If the number of sectors is the same in all tracks, then the inner tracks have a higher density, which means data is stored more densely on the inner tracks. Therefore, storing hot data on the inner tracks will reduce the average seek time because the head won't have to move as far to access hot data. Assuming that the frequency of access to data is unrelated to its location on the disk, storing hot data on the innermost track would be the best option.
b) If the densities of all tracks are the same, then the outer tracks have more sectors, which means that data is stored less densely on the outer tracks. Therefore, storing hot data on the outer tracks will reduce the average seek time because the head won't have to move as far to access hot data. Assuming that the frequency of access to data is unrelated to its location on the disk, storing hot data on the outermost track would be the best option.
AI 优化版
原文地址:https://www.cveoy.top/t/topic/nVMn 著作权归作者所有。请勿转载和采集!