Docsity

Computer Organization Homework 6 Solutions: Seek Time, Data Requirements, I/O Rates - Prof, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
SYCS 201: Computer Organization
Homework 6 Solutions
8.5 (20 pts)
After reading sector 7, a seek is necessary to get to the track with sector 8 on it. This
will take some time (on the order of a millisecond, typically), during which the disk
will continue to revolve under the head assembly. Thus, in the version where sector 8
is in the same angular position as sector 0, sector 8 will have already revolved past the
head by the time the seek is completed and some large fraction of an additional
revolution time will be needed to wait for it to come back again. By skewing the
sectors so that sector 8 starts later on the second track, the seek will have time to
complete, and then the sector will soon thereafter appear under the head without the
additional revolution.
8.8 (20 pts)
a. System A requires 10 terabytes for data and another 10 terabytes for a copy of the
data, thus requires in total 20 terabytes. System B requires 10 for data and 10 ×
1/4 = 2.5 terabytes for parity, and thus 12.5 terabytes in total. Therefore, System A
requires 7.5 terabytes more.
b. In system A, 2 blocks need to be written (one for the original data, one for the
copy). In the worse case, the two blocks are written sequentially, and takes 30 × 2
= 60 ms. In system B, before writing, the old data block and the parity block have
to be read for calculating new parity block. After that, the new data block and new
parity are written. If all these happen one by one, it takes 30 × 4 = 120 ms
c. Yes. System A can potentially accommodate more failures since it has more
redundant disks. System A has n data disks and n check disks. System B has n data
disks and n/4 check disks. However, two failures in the same group will cause a
loss of data in both systems.
8.16 (20 pts)
The total time for processing one block
= (Seek time + Rotational delay + Transfer time + Overhead) × 2 + Processing time
= (0.008 sec + 0.5 / (10000 RPM / 60) sec + 0.002 sec + 4000 / (50 × 106)) × 2
+ (20 × 106 cycles) / (5 × 109 cycles per sec)
= (0.008 + 0.003 + 0.002 + 0.08 × 10-3) × 2 + 0.004
= 0.03016 seconds
Block processed/second = 1/0.03016 ≈ 33
pf2

Partial preview of the text

Download Computer Organization Homework 6 Solutions: Seek Time, Data Requirements, I/O Rates - Prof and more Assignments Computer Architecture and Organization in PDF only on Docsity!

SYCS 201: Computer Organization Homework 6 Solutions

8.5 (20 pts)

After reading sector 7, a seek is necessary to get to the track with sector 8 on it. This will take some time (on the order of a millisecond, typically), during which the disk will continue to revolve under the head assembly. Thus, in the version where sector 8 is in the same angular position as sector 0, sector 8 will have already revolved past the head by the time the seek is completed and some large fraction of an additional revolution time will be needed to wait for it to come back again. By skewing the sectors so that sector 8 starts later on the second track, the seek will have time to complete, and then the sector will soon thereafter appear under the head without the additional revolution.

8.8 (20 pts) a. System A requires 10 terabytes for data and another 10 terabytes for a copy of the data, thus requires in total 20 terabytes. System B requires 10 for data and 10 × 1/4 = 2.5 terabytes for parity, and thus 12.5 terabytes in total. Therefore, System A requires 7.5 terabytes more. b. In system A, 2 blocks need to be written (one for the original data, one for the copy). In the worse case, the two blocks are written sequentially, and takes 30 × 2 = 60 ms. In system B, before writing, the old data block and the parity block have to be read for calculating new parity block. After that, the new data block and new parity are written. If all these happen one by one, it takes 30 × 4 = 120 ms c. Yes. System A can potentially accommodate more failures since it has more redundant disks. System A has n data disks and n check disks. System B has n data disks and n/4 check disks. However, two failures in the same group will cause a loss of data in both systems.

8.16 (20 pts) The total time for processing one block = (Seek time + Rotational delay + Transfer time + Overhead) × 2 + Processing time = (0.008 sec + 0.5 / (10000 RPM / 60) sec + 0.002 sec + 4000 / (50 × 106 )) × 2

  • (20 × 106 cycles) / (5 × 10 9 cycles per sec) = (0.008 + 0.003 + 0.002 + 0.08 × 10 -3^ ) × 2 + 0. = 0.03016 seconds Block processed/second = 1/0.03016 ≈ 33

8.43 (20 pts) Maximum I/O rate of the bus: 1,000,000,000/8000 = 125,000 I/O/second CPU bottleneck restricts throughput to 10,000 I/O / second Time per I/O at disk = 6ms + 8KB / 75MB/sec ≈ 6.11 ms Each disk can complete 1000/6.11 = 163.67 I/O/second To saturate the CPU requires 10,000 I/O second. 10,000/ 163.67 = 61 disks. 61 disks / 7 disk per controller ≈ 9 controllers. The bandwidth required for each controller is 8KB × 7 / 6.11 ms ≈ 9.2 MB/sec < 320MB/sec Therefore, it is fine to link 7 disks to a controller in this case.

8.44 (20 pts) First, check that neither the memory nor the I/O bus is a bottleneck. Sustainable bandwidth into memory is 4 words every 8 clock cycles, i.e. 1 word (or 4 bytes) per 2 clock cycles, which is 4 / (2 / (800 × 106 )) = 1600 MB/sec. The I/O bus can sustain 100 MB/sec. Both of these are faster than the disk bandwidth of 40 MB/sec, so when the disk transfer is in progress there will be negligible additional time needed to pass the data through the I/O bus and write it into memory. Thus, we ignore this time and focus on the time needed by the DMA controller and the disk. This will take 0.1 ms to initiate, 8 ms to seek, 16 KB/40 MB to transfer: total = 0.1 ms + 8 ms + 16× 103 / ( × 106 ) × 103 ns = 8.5 ms.