Hard Disk Drive (HDD) Secondary Memory | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE) PDF Download

Introduction


A hard disk is a memory storage device that looks like this:
Hard Disk Drive (HDD) Secondary Memory | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

The disk is divided into tracks. Each track is further divided into sectors. The point to be noted here is that outer tracks are bigger in size than the inner tracks but they contain the same number of sectors and have equal storage capacity. This is because the storage density is high in sectors of the inner tracks whereas the bits are sparsely arranged in sectors of the outer tracks. Some space of every sector is used for formatting. So, the actual capacity of a sector is less than the given capacity.
Read-Write(R-W) head moves over the rotating hard disk. It is this Read-Write head that performs all the read and writes operations on the disk and hence, the position of the R-W head is a major concern. To perform a read or write operation on a memory location, we need to place the R-W head over that position. Some important terms must be noted here: 

  • Seek time: The time taken by the R-W head to reach the desired track from its current position.
  • Rotational latency: Time is taken by the sector to come under the R-W head.
  • Data transfer time: Time is taken to transfer the required amount of data. It depends upon the rotational speed.
  • Controller time: The processing time taken by the controller.
  • Average Access time: seek time + Average Rotational latency + data transfer time + controller time.

Note: Average Rotational latency is mostly 1/2*(Rotational latency).
In questions, if the seek time and controller time are not mentioned, take them to be zero.
If the amount of data to be transferred is not given, assume that no data is being transferred. Otherwise, calculate the time taken to transfer the given amount of data.
The average rotational latency is taken when the current position of the R-W head is not given. Because the R-W may be already present at the desired position or it might take a whole rotation to get the desired sector under the R-W head. But, if the current position of the R-W head is given then the rotational latency must be calculated. 

Example: Consider a hard disk with: 

4 surfaces
64 tracks/surface
128 sectors/track
256 bytes/sector 

1. What is the capacity of the hard disk? 

Disk capacity = surfaces * tracks/surface * sectors/track * bytes/sector 

Disk capacity = 4 * 64 * 128 * 256 

Disk capacity = 8 MB

2. The disk is rotating at 3600 RPM, what is the data transfer rate? 

60 sec -> 3600 rotations 

1 sec -> 60 rotations 

Data transfer rate = number of rotations per second * track capacity * number of surfaces (since 1 R-W head is used for each surface) 

Data transfer rate = 60 * 128 * 256 * 4 

Data transfer rate = 7.5 MB/sec

3. he disk is rotating at 3600 RPM, what is the average access time? 

Since seek time, controller time and the amount of data to be transferred is not given, we consider all three terms as 0. 

Therefore, Average Access time = Average rotational delay 

Rotational latency => 60 sec -> 3600 rotations 

1 sec -> 60 rotations 

Rotational latency = (1/60) sec = 16.67 msec. 

Average Rotational latency = (16.67)/2 

= 8.33 msec. 

Average Access time = 8.33 msec.

A hard disk system has the following parameters :

  • Number of tracks = 500
  • Number of sectors/track = 100
  • Number of bytes /sector = 500
  • Time taken by the head to move from one track to adjacent track = 1 ms
  • Rotation speed = 600 rpm.

Question: What is the average time taken for transferring 250 bytes from the disk ?
(a) 300.5 ms
(b) 255.5 ms
(c) 255.0 ms
(d) 300.0 ms

Correct Answer is Option (d)

Avg. time to transfer = Avg. seek time + Avg. rotational delay + Data transfer time

  • Avg Seek Time:  time taken  to move from 1st track to 1sr track : 0ms, 1st to 2nd : 1ms, 2ms, 3ms,….499ms
  • Avg Seek time =( ∑0+1+2+3+…+499)/500 = 249.5 ms
  • Avg Rotational Delay: RMP : 600 , 600 rotations in 60 sec (one Rotation = 60/600 sec = 0.1 sec) So, Avg Rotational Delay = 0.1/2= 50 ms
  • Data Transfer Time: In One 1 Rotation we can read data on one track = 100 * 500 = 50,000 B data is read in one rotation. 250 bytes -> 0.1 * 250 / 50,000 = 0.5 ms

Therefore ATT = 249.5+50+0.5 = 300 ms

The document Hard Disk Drive (HDD) Secondary Memory | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Computer Architecture & Organisation (CAO).
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
20 videos|86 docs|48 tests

Top Courses for Computer Science Engineering (CSE)

20 videos|86 docs|48 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Semester Notes

,

Free

,

Summary

,

Viva Questions

,

Extra Questions

,

Sample Paper

,

Hard Disk Drive (HDD) Secondary Memory | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

past year papers

,

Exam

,

practice quizzes

,

pdf

,

study material

,

Objective type Questions

,

mock tests for examination

,

Hard Disk Drive (HDD) Secondary Memory | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

Previous Year Questions with Solutions

,

video lectures

,

shortcuts and tricks

,

ppt

,

MCQs

,

Important questions

,

Hard Disk Drive (HDD) Secondary Memory | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

;