UNIHIVE

Study Hub UNIPORT CSC 283

CSC 283 · Information Systems and File Structures

Magnetic tape: storage and timing

How tape stores records, inter-block gaps, blocking, and how to calculate tape length and read time.

Our notes

2 min read

How tape stores data

Data is recorded along the tape in frames across its width (one byte per frame on 9-track tape: 8 data bits plus a parity bit). Recording density is in bytes per inch (bpi): 800, 1,600, 6,250 bpi on classic reels; modern LTO cartridges hold terabytes using many tracks.

Inter-block gaps

The tape must speed up and slow down between reads, so blocks are separated by inter-block gaps (IBG), about 0.6 inch on classic 9-track tape. Gaps hold no data, so small blocks waste most of the tape.

Worked example: why blocking matters

Records of 100 bytes, density 1,600 bpi, gap 0.6 inch, 10,000 records.

  • Unblocked (one record per block): each block is 100 ÷ 1,600 = 0.0625 inch of data plus 0.6 inch of gap = 0.6625 inch. Total = 10,000 × 0.6625 = 6,625 inches ≈ 552 feet. Only 0.0625 ÷ 0.6625 = 9.4% of the tape holds data.
  • Blocking factor 20: each block is 2,000 ÷ 1,600 = 1.25 inch of data plus 0.6 inch of gap = 1.85 inch. Blocks = 10,000 ÷ 20 = 500. Total = 500 × 1.85 = 925 inches ≈ 77 feet, with 1.25 ÷ 1.85 = 67.6% of the tape used for data.

Blocking cut the tape needed by about 86%.

Read time

If the tape moves at v inches per second and each gap costs a start-stop time, time ≈ (data length ÷ v) + (number of gaps × gap time).
Example: tape speed 100 inches per second, gap time 6 ms (0.6 inch at 100 in/s), the blocked file above: data 500 × 1.25 = 625 inches → 6.25 s; gaps 500 × 0.006 = 3 s; total ≈ 9.25 s. Unblocked: data 625 inches → 6.25 s, gaps 10,000 × 0.006 = 60 s; total ≈ 66.25 s.

Features of tape

  • Sequential access only: to reach a record near the end, the tape must wind past everything before it.
  • Cheap per gigabyte, portable, long-lived: still used for backups and archives (LTO).
  • Cannot update records in place: a new tape is written (see the sequential update).
  • Labels: header and trailer labels record the file name, generation and date; a write-protect ring (or tab) prevents accidental overwriting.

Exams usually ask

  • Explain inter-block gaps and why blocking is used.
  • Calculate tape length, percentage used and read time for blocked and unblocked files.
  • State the advantages and limits of tape.

Common mistake

Forgetting the gaps. With small records the gaps, not the data, decide how long the tape must be.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

No reading links here yet

Our team adds free books, videos and practice for each topic, and opens every link before it goes up.

All CSC 283 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.