Storage Management: Mass-Storage Structure

This chapter discusses the hard disk, basically.

Overview of Mass Storage

Disks are attached to the computer via I/O bus.

Magnetic disks provide bulk secondary storage.

Solid state disks are smaller, cost more, are faster.

Magnetic tapes are relatively permanent and hold large quantities of data.

Disk Structure

Disk drives are addressed as large 1D arrays of logical blocks.

TODO Diagram and explanation of how the logical blocks are mapped to the sectors of the disk.

In theory, this lets us convert logical block numbers into old-school disk addresses (cylinder number, track number, sector number), but this is difficult due to:

We assume all tracks can contain the same amount of info.

Disk Scheduling

Disk bandwidth: Totla number of bytes transferred, divided by total time between first request and completion of last transfer.

When a process need I/O, it issues a system call that specified:

OS maintains a queue of request, per disk/device.

Remember than optimization algorithms only make sense when a queue exists. TODO seems self evident, why the note

FCFS

Intrinsically fair, but generally not the fastest.

TODO We calculate absolute value of distance and add them all together to get total head movements (???)

TODO Copy diagram.

SSTF

Shortest Seek Time First selects request with minimum seek time from the current head position.

TODO Copy diagram.

Most operating system use this.

SCAN / Elevator

Disk arm starts at one end of disk and moves to the other end, services requests as it reaches each cylinder, where the head movement is reverse and servicing continues.

TODO The above explanation sucks. It’s basically ping-ponging around.

TODO Copy diagram.