1 6 further system fundamentals (hl) 6.2 magnetic disk storage

11
1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

Upload: estella-kennedy

Post on 11-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

1

6 Further System Fundamentals (HL)

6.2 Magnetic Disk Storage

Page 2: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

6.2.1 Magnetic Disk Storage

Page 3: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

3

Basics

•Binary code is magnetised on a spinning disk.

•They are reusable (rewritable, rw).

•Non-volatile.

•Can store data either sequentially or by direct access.

Page 4: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

4

Platters

Page 5: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

5

Platters

Page 6: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

6

Tracks and sectors

•A = track

•B = sector

•C = block

•D = file

Page 7: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

7

Blocking

•Block size is effectively the smallest unit of storage as it is the number of bytes that are read or written in one R/W operation.

•They can cover more than one sector.

•In some OS’s, they are called clusters.

•4kB for Windows.

Page 8: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

8

Cylinders

•The same track on all the surfaces of all platters taken together.

•Why is this important?

Page 9: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

9

Capacity

•Capacity = number of surfaces x

number of tracks x number of sectors per track x

number of bytes per sector.

Page 10: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

10

Access

• A file may be fragmented across many sectors when written.

•Direct access is possible by indexing the track and sector of first part of the file, then following pointers to subsequent fragments.

•For sequential access, the sectors should be contiguous.

Page 11: 1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage

11

Access time•Seek time = time taken for the read/write

head to move over the track.

•Latency = time waiting for the desired sector to spin into place.

•Transfer time = to get data to the CPU.

•Access time = seek time + latency + transfer time.

•Takes milliseconds (compare with CPU speed).