Question

In: Computer Science

Consider a hard disk drive that has 5 double-sided platters, each surface has 1000 tracks, each...

Consider a hard disk drive that has 5 double-sided platters, each surface has 1000 tracks, each track has 256 sectors of size 512 bytes. Each block (disk page) comprises of 8 sectors. The seek time between adjacent tracks in 1ms and the average seek time between two random tracks is 25ms. The disk rotates at a speed of 7200 rpm (revolutions per minute).

Let’s say, we have a file of size 1 MB and it contains 2048 equal-sized records.
1. What is the size of a block? How many records fit in a block? How many blocks are required to store the

entire file?
2. What is the capacity of each cylinder?

3. What is maximum time (worst case) to read two blocks from the disk (the blocks to be read are part of the same read request and no external factors affect the read latency)?

4. If the file is stored “sequentially”, how long will it take to read the whole file? Assume that for sequential writes data are written in adjacent tracks once a track is full.

5. If the blocks in the file are spread “randomly” across the disk, how long will it take to read the whole file?

Solutions

Expert Solution

Given:

5 platters, double sided ( 2 surfaces, (upper surface and lower surface))

Each surface has 1000 tracks;

Each track has 256 sectors;

Each sector has 512 bytes;

Each block contains 8 sectors = so size = 8 512 = 4096 bytes;

Seek time between adajacent tracks = 1 ms;  (Seek time is time taken to move from one track to another);

Average seek time between two random tracks = 25 ms; worst case = 50 ms

Disk rotates at 7200 rpm = 7200/60 = 120 rps; so 1 rotation = 1/120 sec

in 1 sec disk rotates 120 times; so data it traverse = 120 track size = 120 256 512 = 15,728,640 bytes

so transfer rate = 15,728,640 Bps

File size: 1 MB; containing 2048 equal sized records; Each record size = 1 MB / 2048 = 512 bytes

1. Size of a block = number of sectors sector size = 8 512 = 4096 bytes;

each record size = 512 bytes; number of records fit in a block = block size/ record size = 4096/512 = 8 records;

number of blocks required to store 1MB = 1MB/4096 = 256 blocks

2. Capacity of cylinder;

(hierarchy is like: cyliinder -> platters -> surfaces -> tracks -> sectors ->size of data)

capacity = 1 5 2 1000 256 512 = 1,310,720,000 bytes = 1,310,720 Kbytes

3. Want to read 2 blocks, i.e 2 4096 = 8192 bytes ;

Disk access time = seek time + rotation time + rotaional latency + data trasfer time;

= 50 ms + 1/120 sec + 1/120 sec + 8192/15,728,640 sec

= 50 ms + 0.0083 sec + 0.0083 sec + 0.00052 sec

= 50 ms + 8.3 ms + 8.3 ms + 0.52 ms = 67.12 ms;

4. if file is stored sequentially, it covers = file size/track size = ceil[1000 000 bytes / (256 512) bytes ] = 8 tracks;

seek time of adjacent tracks = 1 ms; so 8 tracks sequentially need = 8 1 = 8 ms;

file access time = seek time + rotation time + rotational latency + data transfer time

= 8 1 ms +  8.3 ms + 8.3 ms + 1000 000 / 15, 728, 640

= 8 ms + 8.3 ms + 8.3 ms + 63.5 ms = 88.1 ms

5. if the blocks are spread randomly;

file access time = avg seek time + rotation time + avg rotational latency + data transfer time

= 25 ms + 8.3 ms + (1/2) 8.3 + 1000 000 / 15, 728,640

= 100.95 ms


Related Solutions

What is a traditional Hard Disk Drive (HDD) composed?
What is a traditional Hard Disk Drive (HDD) composed?
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of...
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of producing 25,000 drives in the prior year was: Direct material $625,000 Direct labor 375,000 Variable overhead 125,000 Fixed overhead 1,500,000 Total cost $2,625,000 At the start of the current year, the company received an order for 3,800 drives from a computer company in China. Management of PowerDrive has mixed feelings about the order. On the one hand they welcome the order because they currently...
Hard Drive Corporation (HDC) manufactures three types of disk drives, designated as Galaxy, Classic and Trendy...
Hard Drive Corporation (HDC) manufactures three types of disk drives, designated as Galaxy, Classic and Trendy for the computer industry. The company has been using a traditional, volume- based product costing system that allocates manufacturing overhead costs based on direct labour dollars. The average direct labour rate is $15 per hour. Data relevant to the three products are as follows: Gallery Model Classic Model Trendy Model Annual sales (units) 5,000 18,000 10,000 Actual current selling price per unit $ 150.00...
Suppose that a disk drive has 6,000 cylinders, numbered 0 to 5999. The drive is currently...
Suppose that a disk drive has 6,000 cylinders, numbered 0 to 5999. The drive is currently serving a request at cylinder 3150, and the previous request was at cylinder 1805 (Hint: this indicates the reading head's moving direction). The queue of pending requests, in FIFO order, is: 3511, 2332, 2800, 3192, 658, 1296, 1918, 1356, 5936, 2527 Starting from the current head position, what is the total distance in cylinders) that the disk arm moves to satisfy all the pending requests for...
Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently...
Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently serving a request at cylinder 2,150, and the previous request was at cylinder 1,805. The queue of pending requests, in FIFO order, is: 2,069, 1,212, 2,296, 2,800, 544, 1,618, 356, 1,523, 4,965, 3681 Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms?...
12-How sound sample is measured? 13-How the Hard Disk Drive speed is measured? 14-What are the...
12-How sound sample is measured? 13-How the Hard Disk Drive speed is measured? 14-What are the two type of hard drives? 15- What are the two common standardized form factors of Hard Disk Drive?
Consider a single-platter disk with the following parameters: rotation speed: 7200 rpm; number of tracks on...
Consider a single-platter disk with the following parameters: rotation speed: 7200 rpm; number of tracks on one side of platter: 30,000; number of sectors per track: 600; seek time: one ms for every hundred tracks traversed. Let the disk receive a request to access a random sector on a random track and assume the disk head starts at track 0. a. What is the average seek time? b. What is the average rotational latency? c. What is the transfer time...
Consider two bonds. Each has a face value of $1000 and matures in 5 years. One...
Consider two bonds. Each has a face value of $1000 and matures in 5 years. One has no coupon payment, and the other pays $100 per year. Calculate the present value of each bond if the interest rate is 4 percent and if the interest rate is 8 percent. (Show Work)
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of producing 25,000 drives in the prior year was:
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of producing 25,000 drives in the prior year was:       Direct material $625,000 Direct labor 375,000 Variable overhead 125,000 Fixed overhead 1,500,000 Total cost $2,625,000   At the start of the current year, the company received an order for 3,200 drives from a computer company in China. Management of PowerDrive has mixed feelings about the order. On the one hand they welcome the...
A company manufactures computers, whose hard disk has a capacity of 20 GB and others of...
A company manufactures computers, whose hard disk has a capacity of 20 GB and others of 30 GB. In the previous month, 35% of the computers sold were those with a 20 GB hard drive. Of buyers of computers with a 20 GB hard drive, 45% buy those with 356 MB of RAM, while 30% of buyers of computers with a 30 GB hard drive also do so. (a) What is the probability that a randomly selected computer will have...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT