GATE CSE
First time here? Checkout the FAQ!
x
+2 votes
54 views
Consider a disk with seek time of 4 ms, rotation speed of 15,000 rpm and 512-byte sectors with 500 sectors per track. Suppose that we wish to read a file consistinh of 2500 sectors for a total of 1.28 Mbytes. We would like to estimate the total time for the transfer?
asked in Operating System by (155 points) 2 9 | 54 views
26 ms????
Answer will depend on how files are stored in the disk
Me too think 26ms..

2 Answers

+2 votes
We just want to find transfer time

15000 revolution in 60 sec

1 revolution in $\frac{60}{15000}$ or

1 revolution in 4 mili second

1 revolution = covering one entire track = 500 sector

500 sector = 4 mili second

1 sector = 8 micro second

Now there are 2 different things 1) 2500 sectors so time = 2500* 8 mili seconds = 20 mili second

                                                    2) 1.28 MB= 1342177.28 Bytes or 2621.44 sectors = 2622 sectors = 20.976 mili seconds

Total time  case 1) 4 + 2 +20= 26 ms or case 2) 4+2+20.976=26.976 ms
answered by Boss (9.4k points) 4 29 58
0 votes
Given data
Seek time = 4ms (considering its average seek time)
Rotation Speed = 15,000 RPM
Number of Sector = 500
Size of each sector = 512 B
We have to read 2500 Sector which is approx 1.23 MB
We know Disk access time = Avg Seek time + Avg rotation latency + Transfer Time

15,000 Rotation require 60 Sec
1 Rotation we can do in 4 ms
So avg rotation latency = 2 ms

Case 1 : Data are store in continuous way

To read 2500 sector we need to read 5 track and in 1 rotation we are reading 1 track
So to read 5 track we need 5* 4 ms  = 20 ms
So transfer time will be 20ms
Since data is store in continuous manner we only have to deal with Avg seek time and Avg rotation latency for first time
So disk access time  = 4+2+20 ms  = 26 ms

Case 2 : Data store in random way

As we know 1 track or 500 sector can be read in 4 ms
So 2500 sector we can read in 20 ms or 0.02 sec
Since data is store in random way every time we have to deal with seek time = 2500 * 4ms = 10,000 ms or 10 sec
Similarly every time we have to deal with rotation latency  = 2500 * 2ms = 5,000 ms or 5 sec
So total disk access time = 0.02 sec + 10 sec + 5 sec = 15.02 sec
answered by Boss (6.4k points) 3 11 31

No related questions found



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users Oct 2017
  1. Arjun

    23220 Points

  2. Bikram

    17018 Points

  3. Habibkhan

    6982 Points

  4. srestha

    5918 Points

  5. Debashish Deka

    5430 Points

  6. jothee

    4908 Points

  7. Sachin Mittal 1

    4762 Points

  8. joshi_nitish

    4278 Points

  9. sushmita

    3954 Points

  10. Silpa

    3698 Points


Recent Badges

Notable Question A_i_$_h
Great Question jothee
Popular Question Xylene
Popular Question Sanjay Sharma
Famous Question aditya dhanraj
Popular Question jothee
Popular Question Vikranth Inti
Famous Question jothee
Popular Question akankshadewangan24
Nice Comment Rajesh Pradhan
27,249 questions
35,070 answers
83,728 comments
33,183 users