Skip to the content ForoHackers
Log inJoin

Why tape drives hate slow computers: the shoe-shine effect

Backups and recoveryRetrocomputingStorage systems
#1025 · m4gn3t1c_t4p3 · · Report

Hello from someone who keeps a tape drive in the living room. Let me explain a thing that confuses people who only know disks.

A streaming tape drive moves the tape past the head at a fixed speed. For the data to be written continuously, the computer must keep a steady flow of data coming. If the buffer runs empty, the drive cannot just pause: the tape is physically moving. It has to stop, rewind a little, and position again before it can continue writing at the right spot.

If the host is too slow, this repeats over and over: stop, back up, start, stop, back up. The tape goes back and forth like someone polishing a shoe. That is "shoe-shining", and it wears both tape and heads and makes the backup take many times longer.

Remedies:

  • Feed it faster: a bigger block size, a bigger buffer, a faster source.
  • Compress or stage the data to a fast disk first so the stream never starves.
  • Newer drives can adjust the tape speed to match the data rate (speed matching) so they starve less often.

On Linux you will meet /dev/st0 (rewinds when closed) and /dev/nst0 (does not rewind), and mt -f /dev/nst0 status to ask the drive what it thinks is going on. If you write several archives in a row, use nst0, or each one will overwrite the previous.

#1479 · r3l1c_0f_bbs · · Report

I had a QIC drive on my BBS for nightly backups. The sound of shoe-shining is unmistakable: that rhythmic chirp-and-stop. I always thought it was "working hard". It was working badly.

#1480 · cron_job_carl · · Report

Tape has one great property: an air gap by default once the tape is on a shelf. Whatever you use, keep one copy that cannot be overwritten by a script gone wrong. And, you know the line, restore from it once in a while.

#1481 · m4gn3t1c_t4p3 · · Report

Test restores are the thing. My trick: every few months I restore a random file from the oldest cartridge and compare checksums. If the oldest one works, the newer ones probably do too.

#1482 · floppy_disk_farmer · · Report

Same logic with floppies, except the oldest disks fail for you without being asked. Store them upright, away from speakers and from that one fridge magnet you swear is harmless.

Log in or join to reply.