Skip to content

Instantly share code, notes, and snippets.

@chrisdel101
Last active March 21, 2021 22:37
Show Gist options
  • Save chrisdel101/d8d7a11d585e2bc04b82855dd2b962df to your computer and use it in GitHub Desktop.
Save chrisdel101/d8d7a11d585e2bc04b82855dd2b962df to your computer and use it in GitHub Desktop.
Get sector access time
basic: Access Time = Seek time + Rotational latency + Transfer time (https://superuser.com/a/841680/855619)
Solution: tsector = Ts + L + T
Ts = seek time; average time to position head over track
r = rotation speed of the disk, in revolutions per second
n = bits per sector (capacity of sector)
N = bits per track (capacity of track)
tsector = time to access a sector
FOR L
Get Rotational latency in ms. Multiple by 60, then by 10,000
L = (0.5 ÷ r ) * 60 * 10,000 (from class instruction)
Get Transfer rate. Multiply
general formula from text book
FOR T
T = bytes to transfer ÷ (rotations per sec)(num of bytes per track)
= total sector capacity ÷( RPS * (bits per track * 8))
byes to transfer must be total capacity of sector here n
we are give bits but need bytes, so must multiple by 8
T = N ÷ (r)(n * 8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment