Lecture 022

Storage

Interface

Key features of storage:

Address Space:

Reading/writing:

Note: hardware only guarantee "atomic" with respect to requests. If OS needs some storage to be atomic (resilient to power failure), it needs to pack them in one request. OS can further disable write-cache or "flush all pending writes".

Hardware

Disk Hardware

Disk sectors

Disk sectors

Historical Cylinder Layout: Although each sector has different physical size, they store the same amount of data (512 bytes).

Polarization of magnetic field stores data.

Modern Cylinder Layout: amount of data scales with physical size.

To select a position:

There are big numbers to locate sector id (green), and blue is actual data

There are big numbers to locate sector id (green), and blue is actual data

Cylinders shared arm. While active head is exactly aligned, other heads are close. So cylinder switching is efficient.

Cylinders shared arm. While active head is exactly aligned, other heads are close. So cylinder switching is efficient.

Typical speed:

Solid State Drive (SSD)

Solid state: no moving parts (as supposed to "no vacuum tubes" for "solid state" in electronics)

NAND flash:

Strategy dealing with erase:

If SSD has to erase every time, it might not be faster than disk. But in the future, there will be more SSD and disks.

Table of Content